Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Dec 16, 2024
1 parent e17e220 commit 307df81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimum_benchmark/backends/py_txi/backend.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Any, Dict, List, Union
Expand Down Expand Up @@ -68,7 +69,7 @@ def create_no_weights_model(self) -> None:
def load_model_with_no_weights(self) -> None:
original_volumes, self.config.volumes = (
self.config.volumes,
{Path(self.tmpdir.name) / "hub": {"bind": "/data", "mode": "rw"}},
{self.tmpdir.name: {"bind": "/data/hub/", "mode": "rw"}},
)
self.load_model_from_pretrained()
self.config.volumes = original_volumes
Expand Down

0 comments on commit 307df81

Please sign in to comment.