AI GLOSSARY

Logits, Softmax, and Sampling

Generation is a repeated score → probability → token selection process.

Simple explanation

The model produces one score per candidate token. Softmax converts those logits into probabilities, and a decoding strategy chooses the next token from that distribution.

Technical explanation

The model produces one score per candidate token. Softmax converts those logits into probabilities, and a decoding strategy chooses the next token from that distribution.

Example

Trace how Logits becomes Next token through softmax + decoder.

Related lesson

Logits, Softmax, and Sampling: visual lesson →

Browse all glossary terms →