Skip to content
AgenticAIWiki
  1. Glossary
  2. Top-p

Glossary term

Top-p

Nucleus sampling: pick the next token only from the smallest set whose probabilities add up to p.

Also called nucleus sampling.

Open lesson 6.2

Top-p and top-k · Chapter 6

In plain words

It trims the unlikely tail of the distribution. Adjust temperature or top-p, not both.

Taught in

  1. 6.2Top-p and top-kChapter 6, Sampling · main lesson