Fix repetition penalty aligned with huggingface (#1577)
This commit is contained in:
@@ -42,9 +42,9 @@ class SamplingParams:
|
||||
model to use new tokens, while values < 0 encourage the model to
|
||||
repeat tokens.
|
||||
repetition_penalty: Float that penalizes new tokens based on whether
|
||||
they appear in the generated text so far. Values > 1 encourage the
|
||||
model to use new tokens, while values < 1 encourage the model to
|
||||
repeat tokens.
|
||||
they appear in the prompt and the generated text so far. Values > 1
|
||||
encourage the model to use new tokens, while values < 1 encourage
|
||||
the model to repeat tokens.
|
||||
temperature: Float that controls the randomness of the sampling. Lower
|
||||
values make the model more deterministic, while higher values make
|
||||
the model more random. Zero means greedy sampling.
|
||||
|
||||
Reference in New Issue
Block a user