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
822f725a
Commit
822f725a
authored
Dec 23, 2019
by
patrickvonplaten
Browse files
duplicated line for repeating_words_penalty_for_language_generation
parent
aeef4823
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+0
-2
No files found.
src/transformers/modeling_utils.py
View file @
822f725a
...
@@ -585,8 +585,6 @@ class PreTrainedModel(nn.Module):
...
@@ -585,8 +585,6 @@ class PreTrainedModel(nn.Module):
Beginning of sentence token if no prompt is provided. Default to 0.
Beginning of sentence token if no prompt is provided. Default to 0.
**eos_token_ids**: (`optional`) int or list of int
**eos_token_ids**: (`optional`) int or list of int
End of sequence token or list of tokens to stop the generation. Default to 0.
End of sequence token or list of tokens to stop the generation. Default to 0.
**length_penalty**: (`optional`) int
Exponential penalty to the length. Default to 0.
**length_penalty**: (`optional`) float
**length_penalty**: (`optional`) float
Exponential penalty to the length. Default to 1.
Exponential penalty to the length. Default to 1.
**num_return_sequences**: (`optional`) int
**num_return_sequences**: (`optional`) int
...
...
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