Skip to content

Commit

Permalink
test again
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Dec 16, 2024
1 parent bc1c638 commit 95d45e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum_benchmark/backends/py_txi/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def create_no_weights_model(self) -> None:
self.generation_config.save_pretrained(save_directory=self.no_weights_model)

def load_model_with_no_weights(self) -> None:
self.config.volumes = {self.tmpdir.name: {"bind": "/var/no_weights_folder", "mode": "rw"}}
original_model, self.config.model = self.config.model, "/var/no_weights_folder/no_weights_model"
self.config.volumes = {self.tmpdir.name: {"bind": "/data", "mode": "rw"}}
original_model, self.config.model = self.config.model, "/data/no_weights_model/"
self.load_model_from_pretrained()
self.config.model = original_model

Expand Down

0 comments on commit 95d45e5

Please sign in to comment.