Explain it in 60 seconds
Temperature, top-p and top-k
Machine Learning · LLM Fundamentals · Beginner
What do temperature, top-p and top-k control in LLM generation?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Temperature: low is focused and deterministic; high is more random and creative.
- Top-k: sample only from the k most likely tokens.
- Top-p (nucleus): sample from the smallest set covering probability p.
- Low settings for extraction and factual tasks; higher for creative writing.
- Greedy decoding always picks the top token.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.