[Tests] flaky test_constrained_beam_search_generate_dict_output (#37276)
This commit is contained in:
@@ -889,8 +889,7 @@ class GenerationTesterMixin:
|
|||||||
num_beams=beam_kwargs["num_beams"],
|
num_beams=beam_kwargs["num_beams"],
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO: @gante check why it is flaky
|
@is_flaky() # Some models have position-specific tokens, this test may try to force them in an invalid position
|
||||||
@is_flaky()
|
|
||||||
@pytest.mark.generate
|
@pytest.mark.generate
|
||||||
def test_constrained_beam_search_generate(self):
|
def test_constrained_beam_search_generate(self):
|
||||||
for model_class in self.all_generative_model_classes:
|
for model_class in self.all_generative_model_classes:
|
||||||
@@ -947,6 +946,7 @@ class GenerationTesterMixin:
|
|||||||
for generation_output in output_generate:
|
for generation_output in output_generate:
|
||||||
self._check_sequence_inside_sequence(force_tokens, generation_output)
|
self._check_sequence_inside_sequence(force_tokens, generation_output)
|
||||||
|
|
||||||
|
@is_flaky() # Some models have position-specific tokens, this test may try to force them in an invalid position
|
||||||
@pytest.mark.generate
|
@pytest.mark.generate
|
||||||
def test_constrained_beam_search_generate_dict_output(self):
|
def test_constrained_beam_search_generate_dict_output(self):
|
||||||
for model_class in self.all_generative_model_classes:
|
for model_class in self.all_generative_model_classes:
|
||||||
|
|||||||
Reference in New Issue
Block a user