Interactive explainer

How a language model writes,
one word at a time

A language model reads the text so far, gives every possible next word a probability, picks one — and repeats. Step through a real example below.

The sentence, so far
What comes next? Step 0 of 10
1.0
balanced — the model's natural confidence