How is top-p sampling different from top-k?
Reveal the answer and explore the explanation.
05MediumHigh priorityHow is top-p sampling different from top-k?
Answer
MediumHigh priority
How is top-p sampling different from top-k?
Answer
Restricts sampling to a smallest high-probability set meeting a cumulative mass threshold.
Practical example
Adapt candidate count to uncertainty at each step.
Reference: Further reading ↗