Skip to content

Commit 6aad387

Browse files
authored
fix (#17337)
Co-authored-by: ydshieh <[email protected]>
1 parent 1762ded commit 6aad387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transformers/generation_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,8 @@ def generate(
942942
If set to float < 1, only the most probable tokens with probabilities that add up to `top_p` or higher
943943
are kept for generation.
944944
typical_p (`float`, *optional*, defaults to 1.0):
945-
The amount of probability mass from the original distribution to be considered in typical decoding.
946-
If set to 1.0 it takes no effect. See [this paper](https://arxiv.org/pdf/2202.00666.pdf) for more details.
945+
The amount of probability mass from the original distribution to be considered in typical decoding. If
946+
set to 1.0 it takes no effect. See [this paper](https://arxiv.org/pdf/2202.00666.pdf) for more details.
947947
repetition_penalty (`float`, *optional*, defaults to 1.0):
948948
The parameter for repetition penalty. 1.0 means no penalty. See [this
949949
paper](https://arxiv.org/pdf/1909.05858.pdf) for more details.

0 commit comments

Comments
 (0)