Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Sep 18, 2023
1 parent dfe7e5e commit 8d102f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions optimum/onnxruntime/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ def _from_transformers(
task=task,
do_validation=False,
no_post_process=False,
legacy=False,
subfolder=subfolder,
revision=revision,
cache_dir=cache_dir,
Expand Down
2 changes: 1 addition & 1 deletion tests/onnxruntime/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ def test_merge_from_onnx_and_save(self, model_arch):
self.skipTest("Unsupported export case")

with tempfile.TemporaryDirectory() as tmpdir:
main_export(model_id, tmpdir, task=task)
main_export(model_id, tmpdir, task=task, legacy=True)

model = ORTModelForCausalLM.from_pretrained(tmpdir)

Expand Down

0 comments on commit 8d102f7

Please sign in to comment.