Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Oct 10, 2024
1 parent 9b6c221 commit 2e6ed87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/onnxruntime/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ def test_trust_remote_code(self):
)

@parameterized.expand(("", "onnx"))
def test_loading_with_config_in_root(self, subfolder):
def test_loading_with_config_not_from_subfolder(self, subfolder):
# config.json file in the root directory and not in the subfolder
model_id = "sentence-transformers-testing/stsb-bert-tiny-onnx"
# hub model
Expand All @@ -1276,6 +1276,7 @@ def test_loading_with_config_in_root(self, subfolder):
local_dir = Path(tmpdirname) / "model"
api.snapshot_download(repo_id=model_id, local_dir=local_dir)
ORTModelForFeatureExtraction.from_pretrained(local_dir, subfolder=subfolder, export=subfolder == "")
remove_directory(tmpdirname)


class ORTModelForQuestionAnsweringIntegrationTest(ORTModelTestMixin):
Expand Down

0 comments on commit 2e6ed87

Please sign in to comment.