tensorfolk

Decoding and sampling

The model outputs a probability distribution for the next token; the decoding strategy decides which token is picked.

Stable: this rarely changes. Reviewed 17 Oct 2026.

Key ideas

Common mistakes