Skip to content

Commit 8af4ddf

Browse files
committed
Mark test_prompt_lookup_decoding as flaky
1 parent 5c6d6be commit 8af4ddf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/generation/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
)
4141
from transformers.testing_utils import (
4242
CaptureLogger,
43+
is_flaky,
4344
require_accelerate,
4445
require_flash_attn,
4546
require_flash_attn_3,
@@ -732,6 +733,7 @@ def test_assisted_decoding_matches_greedy_search(self, assistant_type):
732733
self._check_generate_outputs(output, model.config, use_cache=True)
733734

734735
@pytest.mark.generate
736+
@is_flaky
735737
def test_prompt_lookup_decoding_matches_greedy_search(self):
736738
# This test ensures that the prompt lookup generation does not introduce output changes over greedy search.
737739
# This test is mostly a copy of test_assisted_decoding_matches_greedy_search

0 commit comments

Comments
 (0)