Skip to content

Commit

Permalink
[Generation Test] Make fast test actually fast (huggingface#17661)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored and elusenji committed Jun 12, 2022
1 parent f5c9783 commit d707ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/generation/test_generation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2633,8 +2633,8 @@ def test_constrained_beam_search_example_integration(self):
self.assertListEqual(outputs, ["Wie alter sind Sie?"])

def test_constrained_beam_search_mixin_type_checks(self):
tokenizer = AutoTokenizer.from_pretrained("t5-base")
model = AutoModelForSeq2SeqLM.from_pretrained("t5-base")
tokenizer = AutoTokenizer.from_pretrained("patrickvonplaten/t5-tiny-random")
model = AutoModelForSeq2SeqLM.from_pretrained("patrickvonplaten/t5-tiny-random")

encoder_input_str = "translate English to German: How old are you?"
input_ids = tokenizer(encoder_input_str, return_tensors="pt").input_ids
Expand Down

0 comments on commit d707ade

Please sign in to comment.