Understand / 01
One piece at a time.
Where does the next token come from?
TRY THISChange the context or temperature, then choose the next token.
The model’s output scores can be normalized into a distribution. Here the scores are authored, and the probabilities are computed.
The sky is
Higher temperature spreads probability more evenly. Probability is not factual confidence.
Teaching simulation
What this helps you see
A model assigns probabilities to possible next tokens using the text so far. A token may be a word, part of a word, or punctuation. The chosen token joins the context for the next step.
The scores below are authored for a small toy vocabulary. They are not probabilities or activations measured from a commercial model.
Ask about what you’re seeing
Authored learning guide · no live AI generation or web search
What if the next output requests a tool?