diff --git a/tests/models/helium/test_modeling_helium.py b/tests/models/helium/test_modeling_helium.py index 662fc24cf4ac..1d4bb3b51790 100644 --- a/tests/models/helium/test_modeling_helium.py +++ b/tests/models/helium/test_modeling_helium.py @@ -56,7 +56,7 @@ def test_model_2b(self): model_id = "kyutai/helium-1-preview" expected_texts = Expectations( { - ("rocm", (9, 5)): ["Hello, today is a great day to start a new project. I have been working on a new project for a while now, and I"], + ("rocm", (9, 5)): ["Hello, today is a great day to start a new project. I have been working on a new project for a while now, and I have"], (None, None): ["Hello, today is a great day to start a new project. I have been working on a new project for a while now and I have"], ("cuda", 8): ['Hello, today is a great day to start a new project. I have been working on a new project for a while now, and I'], } diff --git a/tests/models/openai/test_modeling_openai.py b/tests/models/openai/test_modeling_openai.py index c27f35656d7e..e47f031bfb2c 100644 --- a/tests/models/openai/test_modeling_openai.py +++ b/tests/models/openai/test_modeling_openai.py @@ -300,5 +300,5 @@ def test_lm_generate_openai_gpt(self): 481, ] # the president is a very good man. " \n " i\'m sure he is, " said the - output_ids = model.generate(input_ids, do_sample=False) + output_ids = model.generate(input_ids, do_sample=False, max_length=20) self.assertListEqual(output_ids[0].tolist(), expected_output_ids)