Top p y temperature recommended for exactitud
- User
Top p y temperature recommended for exactitud
- Assistant
When using text generation models, top-p (nucleus sampling) and temperature are two key parameters that influence the randomness and creativity of the output.
-
Top-p (nucleus sampling): This parameter controls the cumulative probability threshold for token selection. The model considers only the smallest set of tokens whose cumulative probability exceeds p. Typical recommended values for high accuracy and more deterministic output are around 0.8 to 1.0. Lower values (like 0.7) make the output more focused and conservative, whereas values closer to 1.0 allow more diversity.
-
Temperature: This parameter scales the logits before applying softmax. Lower temperature (<1) makes the output more deterministic and focused on high-probability tokens; higher temperature (>1) increases randomness. For accuracy and exactitude, temperatures between are generally recommended.
-
- User
What king of results with both set to 1
- Assistant
Setting both temperature = 1 and top-p = 1 means:
-
Temperature = 1: The model samples tokens proportional to their original probabilities, without scaling. This leads to the "default" level of randomness — neither more focused nor more random than the base model distribution.
-
Top-p = 1: This means the model considers the entire probability distribution (all tokens) when sampling — no tokens are excluded based on cumulative probability.
What kind of results to expect?
-