AI & MLRecommendedAIML-LM-008

Top-k and Top-p Sampling

Pruning the tail: truncation rules that keep sampling honest and lively.

Difficulty
3 / 5
Importance
4 / 5
Study time
1–2 h
Kind of work
Mixed

Why it matters

The learner can compute kept sets under top-k and top-p and explain what each prunes.

The route to this topic

Route AIML-LM-008