Temperature is an inference parameter that directly influences the randomness and creativity of content generated by a foundation model.
During text generation, a language model assigns probabilities to potential next tokens. Temperature adjusts this probability distribution, affecting how predictably the model selects subsequent tokens.
A lower temperature generally produces more deterministic, consistent responses, making it useful for factual question answering and structured business applications.
A higher temperature increases the likelihood of selecting less probable tokens, potentially producing more diverse and creative responses.
Token length controls output size, while an end token sequence determines when generation stops.
Top K also affects output diversity by restricting the number of candidate tokens. However, temperature is the standard answer because it directly regulates sampling randomness and creativity.
AWS documents both temperature and Top K as generation-control parameters.
Submit