Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
e95d433d
Unverified
Commit
e95d433d
authored
Aug 19, 2022
by
Joao Gante
Committed by
GitHub
Aug 19, 2022
Browse files
Generate: add missing `**model_kwargs` in sample tests (#18696)
parent
e54a1b49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/generation/test_generation_utils.py
tests/generation/test_generation_utils.py
+2
-0
No files found.
tests/generation/test_generation_utils.py
View file @
e95d433d
...
@@ -327,6 +327,7 @@ class GenerationTesterMixin:
...
@@ -327,6 +327,7 @@ class GenerationTesterMixin:
remove_invalid_values
=
True
,
remove_invalid_values
=
True
,
**
logits_warper_kwargs
,
**
logits_warper_kwargs
,
**
process_kwargs
,
**
process_kwargs
,
**
model_kwargs
,
)
)
torch
.
manual_seed
(
0
)
torch
.
manual_seed
(
0
)
...
@@ -361,6 +362,7 @@ class GenerationTesterMixin:
...
@@ -361,6 +362,7 @@ class GenerationTesterMixin:
**
kwargs
,
**
kwargs
,
**
model_kwargs
,
**
model_kwargs
,
)
)
return
output_sample
,
output_generate
return
output_sample
,
output_generate
def
_beam_search_generate
(
def
_beam_search_generate
(
...
...
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