"vscode:/vscode.git/clone" did not exist on "37bc0b4e536cda4b2b2e4c3864a558a96cbd8a4e"
Unverified Commit 13e875cc authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

[Generation Test] Make fast test actually fast (#17661)

parent b4eef63a
...@@ -2633,8 +2633,8 @@ class GenerationIntegrationTests(unittest.TestCase): ...@@ -2633,8 +2633,8 @@ class GenerationIntegrationTests(unittest.TestCase):
self.assertListEqual(outputs, ["Wie alter sind Sie?"]) self.assertListEqual(outputs, ["Wie alter sind Sie?"])
def test_constrained_beam_search_mixin_type_checks(self): def test_constrained_beam_search_mixin_type_checks(self):
tokenizer = AutoTokenizer.from_pretrained("t5-base") tokenizer = AutoTokenizer.from_pretrained("patrickvonplaten/t5-tiny-random")
model = AutoModelForSeq2SeqLM.from_pretrained("t5-base") model = AutoModelForSeq2SeqLM.from_pretrained("patrickvonplaten/t5-tiny-random")
encoder_input_str = "translate English to German: How old are you?" encoder_input_str = "translate English to German: How old are you?"
input_ids = tokenizer(encoder_input_str, return_tensors="pt").input_ids input_ids = tokenizer(encoder_input_str, return_tensors="pt").input_ids
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment