Given the token sequence so far, the model produces a raw score, called a logit, for every entry in its vocabulary. The vocabulary is fixed and large, so the output is a full row of scores, one per possible next token. These logits are not yet probabilities; they are unbounded numbers that can be positive or negative, and only their relative size matters at this stage.
How ChatGPT Writes One Token at a Time
Predicting the Next Token
One Score for Every Candidate
1 / 4
The prompt is now a row of token IDs sitting inside the context window. The model reads that row and does one thing: it asks which token should come next.
0:00 / 0:00