Skip to content

Commit

Permalink
Update tests/onnxruntime/test_modeling.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ella Charlaix <[email protected]>
  • Loading branch information
IlyasMoutawwakil and echarlaix authored May 28, 2024
1 parent 7a41a42 commit 4a6bda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/onnxruntime/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2276,7 +2276,7 @@ class ORTModelForCausalLMIntegrationTest(ORTModelTestMixin):
@parameterized.expand([(False,), (True,)])
def test_inference_old_onnx_model(self, use_cache):
model_id = "optimum/gpt2"
tokenizer = get_preprocessor("gpt2")
tokenizer = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelForCausalLM.from_pretrained("gpt2")

text = "The capital of France is"
Expand Down

0 comments on commit 4a6bda2

Please sign in to comment.