# Top-K, Top-P, and Min-P Sampling

**URL:** <https://forum.kirupa.com/t/top-k-top-p-and-min-p-sampling/684131>\
**Category:** programming\
**Created:** [November 23, 2026, 7:13am UTC](https://forum.kirupa.com/t/top-k-top-p-and-min-p-sampling/684131 "2026-11-23T07:13:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [November 23, 2026, 7:13am UTC](https://forum.kirupa.com/t/top-k-top-p-and-min-p-sampling/684131/1 "2026-11-23T07:13:54Z")

</div>

Every token a model writes comes from a spin of a prize wheel, and a long tail of weird slices can sneak into the reply. This one shows how top-k, top-p, and min-p trim that wheel, and why the order you apply temperature in matters more than you’d think:

> **[Top-k vs. Top-p vs. Min-p: LLM Sampling Explained | KIRUPA](https://www.kirupa.com/ai_fundamentals/top_k_top_p_min_p.htm)**
>
> See how top-k, top-p, and min-p trim the list of tokens a model can pick from, how they combine with temperature, where each goes wrong, and good starting values.
