Top-p (nucleus sampling)

Appears in 2 tutorials

An alternative to temperature: the model samples only from the most probable tokens whose combined probability reaches p.

As used in Prompt Engineering →

An alternative to temperature: the model samples only from the most probable tokens whose combined probability reaches p.

As used in LLM Infrastructure →

Methods that restrict sampling to the most likely tokens (smallest set summing to probability p, or the top k).