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
d866b485
Unverified
Commit
d866b485
authored
Oct 10, 2022
by
Shivang Mishra
Committed by
GitHub
Oct 10, 2022
Browse files
Generate: corrected exponential_decay_length_penalty type hint (#19376)
parent
4dd784c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/generation_utils.py
src/transformers/generation_utils.py
+1
-1
No files found.
src/transformers/generation_utils.py
View file @
d866b485
...
...
@@ -953,7 +953,7 @@ class GenerationMixin:
forced_eos_token_id
:
Optional
[
int
]
=
None
,
remove_invalid_values
:
Optional
[
bool
]
=
None
,
synced_gpus
:
Optional
[
bool
]
=
False
,
exponential_decay_length_penalty
:
Optional
[
Tuple
[
Union
[
int
,
float
]]
]
=
None
,
exponential_decay_length_penalty
:
Optional
[
Tuple
[
int
,
float
]]
=
None
,
suppress_tokens
:
Optional
[
List
[
int
]]
=
None
,
begin_suppress_tokens
:
Optional
[
List
[
int
]]
=
None
,
forced_decoder_ids
:
Optional
[
List
[
int
]]
=
None
,
...
...
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