Skip to content
Learn Motion
ExploreHow it worksMembership
Log in
Learn Motion

How ChatGPT Writes One Token at a Time

1From Your Words to Tokens2Predicting the Next Token3Choosing a Token and Looping4Why the Answer Reads as Coherent Text
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

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.

Previous1 / 4Next

Learn Motion

Generate a course. Learn it properly.

Operated by Wuhan Daoyin Technology Co., Ltd.

Contact: [email protected]
Privacy PolicyTerms of Service

© 2026 Learn Motion