Home › Glossary › Top P

Top P

Also known as nucleus sampling, this inference parameter restricts token selection to the most probable share of the distribution; 0.1 keeps the top 10%. It shapes diversity, not length, and should be tuned instead of temperature, not with it.

Also called nucleus sampling.

Read more: Microsoft Learn

In the Ultra Transcenders books

AI-901AI-103

Each book explains Top P in context, with comparison tables and the common traps.

Terms in this definition

Related terms

See Top P in the full glossary