Module
One Token at a Time
A language model uses the words already written to predict the next token. A token can be a word, part of a word or punctuation. Each chosen token becomes part of the context for the next prediction.
- 1
Context becomes token pieces
→ - 2
Scores become a probability distribution
→ - 3
Select and append a token; repeat with the extended context
What you’ll learn
How text becomes tokens, how context changes their probabilities, and how repeated choices build a sentence.