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
6aad3872
Unverified
Commit
6aad3872
authored
May 18, 2022
by
Yih-Dar
Committed by
GitHub
May 18, 2022
Browse files
fix (#17337)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
1762ded3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/generation_utils.py
src/transformers/generation_utils.py
+2
-2
No files found.
src/transformers/generation_utils.py
View file @
6aad3872
...
...
@@ -942,8 +942,8 @@ class GenerationMixin:
If set to float < 1, only the most probable tokens with probabilities that add up to `top_p` or higher
are kept for generation.
typical_p (`float`, *optional*, defaults to 1.0):
The amount of probability mass from the original distribution to be considered in typical decoding.
If
set to 1.0 it takes no effect. See [this paper](https://arxiv.org/pdf/2202.00666.pdf) for more details.
The amount of probability mass from the original distribution to be considered in typical decoding.
If
set to 1.0 it takes no effect. See [this paper](https://arxiv.org/pdf/2202.00666.pdf) for more details.
repetition_penalty (`float`, *optional*, defaults to 1.0):
The parameter for repetition penalty. 1.0 means no penalty. See [this
paper](https://arxiv.org/pdf/1909.05858.pdf) for more details.
...
...
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