How Language Models Work
Take the lid off the black box.
Thirteen short interactive lessons, three to five minutes each. No math required, no hype allowed. You’ll click buttons, break sentences, and leave knowing exactly what the robot is actually doing. Works with zero internet.
Short on time? The five marked core lessons are the whole story in about fifteen minutes. The rest go deeper.
- 01Next-token prediction
It’s guessing the next word. That’s the whole trick.โ - 02Tokens
The model reads pieces, not letters.โ - 03Embeddings
Meaning becomes geometry.โ - 04Attention
Every word watches every other word.โ - 05Training
A trillion tiny nudges.โ - 06Scale
The same recipe, a much bigger pot.โ - 07The assistant act
From autocomplete to answering.โ - 08The context window
Its whole memory is the prompt.โ - 09Hallucination
Confidently finishing a sentence that was never true.โ - 10Prompting
Steering by choosing the words it continues.โ - 11Limits
The failures are the mechanism showing through.โ - 12Tools
When predicting isn’t enough, hand it better text.โ - 13The whole picture
One loop, end to end.โ
Press M anywhere for the lesson map. Presenting? Toggle presenter mode from the map, or add ?mode=presenter to any lesson URL.