Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
13e875cc
"tests/vscode:/vscode.git/clone" did not exist on "aab08297903de0ae39d4a6d87196b5056d76f110"
Unverified
Commit
13e875cc
authored
Jun 10, 2022
by
Patrick von Platen
Committed by
GitHub
Jun 10, 2022
Browse files
[Generation Test] Make fast test actually fast (#17661)
parent
b4eef63a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/generation/test_generation_utils.py
tests/generation/test_generation_utils.py
+2
-2
No files found.
tests/generation/test_generation_utils.py
View file @
13e875cc
...
...
@@ -2633,8 +2633,8 @@ class GenerationIntegrationTests(unittest.TestCase):
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment