IT lexicon › AI & ML › Top-p

Top-p Nucleus sampling

AI & ML På svenska → Updated: 2026-05-23

LLM parameter: only pick the next token from those that together make up p% of the probability.

top-p = 0.9 = "ignore the most unlikely tokens". Smarter than a fixed count (top-k) because it adapts to how confident the model is. Combined with temperature.

← Back to the lexicon