Nucleus Sampling · Top-p
unseel.com · sorted probs · cumulative ≥ p · sample the nucleus
p = 0.90
nucleus 0 tok
cum 0.00
sampling
token probability
cumulative curve
nucleus (kept, cum ≥ p)
tail (masked, dropped)
Unseel.com · Nucleus Sampling