MODEL INTERFACE / SAMPLING

Candidate filtering and renormalization

Keep temperature at τ=1. Change the count on the left or probability threshold on the right. Green marks the last cumulative value retained by top-p.

Kept: p′ᵢ = pᵢ / retained massExcluded: p′ᵢ = 0
Temperature τ = 1 · top-k and top-p applied separately
2
90%

Scroll the table to see filtered probabilities →

Candidates sorted by original probability. Compare the sampling probabilities after top-k and top-p filtering. Cumulative mass uses the original probabilities.
Token / IDOriginalCumulativeAfter top-kAfter top-p

Top-p includes the token that reaches or crosses the threshold. The filters are applied separately. On a narrow screen, scroll the table horizontally.