Skip to content

Commit c0c5acf

Browse files
authored
Fix bamba tests amd (#36535)
1 parent 3750881 commit c0c5acf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/models/bamba/test_modeling_bamba.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def test_simple_generate(self):
510510
EXPECTED_TEXTS = {
511511
# 7: "",
512512
8: "<|begin_of_text|>Hey how are you doing on this lovely evening? I hope you are all having a good time.",
513-
# 9: """,
513+
9: "<|begin_of_text|>Hey how are you doing on this lovely evening? I hope you are doing well. I am here",
514514
}
515515

516516
self.model.to(torch_device)
@@ -549,7 +549,10 @@ def test_simple_batched_generate_with_padding(self):
549549
"<|begin_of_text|>Hey how are you doing on this lovely evening? I hope you are doing well. I am here",
550550
"!!!<|begin_of_text|>I am late! I need to get to work! I have to get to the",
551551
],
552-
9: [],
552+
9: [
553+
"<|begin_of_text|>Hey how are you doing on this lovely evening? I hope you are doing well. I am here",
554+
"!!!<|begin_of_text|>I am late! I need to be at the airport in 20 minutes! I",
555+
],
553556
}
554557

555558
self.model.to(torch_device)

0 commit comments

Comments
 (0)