Predicting the next word
Lesson 2 of 20 · AI.Micro
A language model gives a probability to every possible next token, picks one and repeats.
This tiny model learned from a few sentences about a café. Given «I would like a», it counts what came next in its data and turns the counts into probabilities. Real models do the same with billions of examples and a neural network.
Check yourself
What does a language model compute at each step?
Do it in the browser: a real generative AI tool, a short mission and instant feedback. No install.
Start this lesson — free