What is Top-p Sampling (Nucleus Sampling)?
Top-p sampling, also called nucleus sampling, keeps the smallest group of tokens whose probabilities add up to p, then samples from that group. The shortlist adapts automatically to how confident the model is.
