AlgoViz

Sampling and trustworthy answers

easy 6 min

A decoder turns the model’s scores into a choice.

Where it shows up

The same pattern appears across everyday software.

  • Which words survive a nucleus cutoff?

    Hold logits and temperature fixed. These three tokens form the complete vocabulary in this worked example. A alone covers 0.60 of the mass. Adding B reaches 0.90, so the smallest qualifying prefix contains both. Sampling uses the retained mass. A is more likely than B, but either can be drawn. Neither probability measures the truth of a factual claim.