Skip to main content
Sshuhari.ai
  • Courses
    • Start here
    • Learning paths9 paths
    • Modules15 modules
    • Projects10 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep12 question banks
    • Cheat sheets15 sheets
    • Glossary292 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
SearchStart here
Menu
  • Courses
    • Start here
    • Learning paths9 paths
    • Modules15 modules
    • Projects10 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep12 question banks
    • Cheat sheets15 sheets
    • Glossary292 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
Part of the courseBack to Generative AI
  1. Reference
  2. Top-p (nucleus sampling)

Glossary

Top-p (nucleus sampling)

A sampling filter that keeps the smallest set of tokens whose cumulative probability reaches p. It keeps few tokens when the model is confident and more when it is unsure.

Where it is explained

  • Sampling parameters and the model landscapeLLM foundations

See also

Terms explained in the same lessons.

  • API-only model
  • Batch invariance
  • Context window
  • Greedy decoding
  • Open-weight model
  • Sampling
Previous termTop-kNext termTrace

All terms, A to Z

Sshuhari.ai

Learn the fundamentals. Break the limits. Build what's next.

  • Privacy
  • Search