Skip to content

Commit f0d9cd1

Browse files
authored
Fixes 2 failing tests from AMD CI (huggingface#42777)
Fix failing tests
1 parent 66623a1 commit f0d9cd1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/models/helium/test_modeling_helium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_model_2b(self):
5656
model_id = "kyutai/helium-1-preview"
5757
expected_texts = Expectations(
5858
{
59-
("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"],
59+
("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"],
6060
(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"],
6161
("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'],
6262
}

tests/models/openai/test_modeling_openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,5 +300,5 @@ def test_lm_generate_openai_gpt(self):
300300
481,
301301
] # the president is a very good man. " \n " i\'m sure he is, " said the
302302

303-
output_ids = model.generate(input_ids, do_sample=False)
303+
output_ids = model.generate(input_ids, do_sample=False, max_length=20)
304304
self.assertListEqual(output_ids[0].tolist(), expected_output_ids)

0 commit comments

Comments
 (0)