Top-p (Nucleus) Sampling
NLP & Text
Sampling from smallest set of tokens whose cumulative probability ≥ p
What is Top-p (Nucleus) Sampling?
Adaptive alternative to top-k that chooses tokens with total probability mass p, producing coherent but diverse outputs.
Real-World Examples
- •Top-p=0.9 commonly used
Related Terms
Learn more about concepts related to Top-p (Nucleus) Sampling