From b458e28a49517004d90dd69aa1375b30fe2801ee Mon Sep 17 00:00:00 2001 From: IlyasMoutawwakil Date: Tue, 28 May 2024 13:09:21 +0200 Subject: [PATCH] change input text --- tests/onnxruntime/test_modeling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/onnxruntime/test_modeling.py b/tests/onnxruntime/test_modeling.py index fa74b7ee438..35361baff32 100644 --- a/tests/onnxruntime/test_modeling.py +++ b/tests/onnxruntime/test_modeling.py @@ -2279,7 +2279,7 @@ def test_inference_old_onnx_model(self, use_cache): tokenizer = get_preprocessor(model_id) model = AutoModelForCausalLM.from_pretrained("gpt2") tokenizer = get_preprocessor(model_id) - text = "This is a sample output" + text = "The capital of France is" tokens = tokenizer(text, return_tensors="pt") onnx_model = ORTModelForCausalLM.from_pretrained(model_id, use_cache=use_cache, use_io_binding=use_cache)