Decoding & sampling concept illustration

Decoding & sampling

Top-p

top-p

A setting that limits word choice to the smallest set of options whose combined probability passes a threshold p. Another way to tune randomness.

In practice

top-p 0.1 keeps only the most likely words, making output very predictable.

Related terms

See what your tokens really cost

Track usage and spend across every model and platform, free.

Image: Codioful on Pexels. Definition free to reuse under CC BY 4.0.