QUESTION 5 OF 10

How is top-p sampling different from top-k?

Reveal the answer and explore the explanation.

05
MediumHigh priority

How is top-p sampling different from top-k?

Answer
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 ↗

Last 30 min revisionHigh-yield interview Q&As