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
f2e7d270
Unverified
Commit
f2e7d270
authored
Nov 22, 2022
by
Joao Gante
Committed by
GitHub
Nov 22, 2022
Browse files
Generate: shorter XLA contrastive search tests (#20354)
parent
c3eb0101
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_tf_common.py
tests/test_modeling_tf_common.py
+1
-1
No files found.
tests/test_modeling_tf_common.py
View file @
f2e7d270
...
...
@@ -1854,7 +1854,7 @@ class TFModelTesterMixin:
Either the model supports XLA generation and passes the inner test, or it raises an appropriate exception
"""
self
.
_test_xla_generate
(
num_beams
=
1
,
num_return_sequences
=
1
,
max_new_tokens
=
6
4
,
penalty_alpha
=
0.5
,
top_k
=
4
)
self
.
_test_xla_generate
(
num_beams
=
1
,
num_return_sequences
=
1
,
max_new_tokens
=
1
6
,
penalty_alpha
=
0.5
,
top_k
=
4
)
@
slow
def
test_xla_generate_slow
(
self
):
...
...
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