Modules
Modules are the building blocks of LLMs Unplugged: each one is a self-contained hands-on activity teaching one idea about how language models work. For a ready-to-run session built from them (slides, timings, materials), start from the lessons. New here? Do Training, then Generation, then pick whichever extensions catch your eye.
There are three ways to run a paper model:
- Grid: pen, paper and a d10. Tally word pairs into a table, then roll to sample (a 60/40 split is “1–6 the first word, 7–10 the second”). It plugs straight into the probability curriculum.
- Ledger: one row per word on a sheet, with a tally in a coloured box for each word that followed it. To generate, put one counter per tally mark in a cup and draw one without looking: the cup does the maths, so there are no dice or percentages. The Materials page has ready-to-print sets.
- Search sheets: the whole text dealt across the room, one sheet each, and the room generates by show of hands. No training and no cutting: it's how we run the activity as a talk, or with a big class and thirty minutes. See Search Sheets.
Training and Generation have a toggle at the top of the page for the grid, the ledger and a third version for younger groups, cutouts: printed word pairs spread on a table and matched by colour. All three teach the same ideas.
Fundamentals
Training
Build a bigram language model that tracks which words follow which other words in text.
years 5 and up · 20 min · grid, ledger, cutouts
Generation
Use your hand-built bigram model to generate new text through weighted random sampling.
years 5 and up · 20 min · grid, ledger, cutouts
Search Sheets
Deal a whole text's token pairs across the room, one sheet each, and generate as a crowd: call a word, hands go up, pick one at random. The generation activity for a hall, a lecture, or a big class with thirty minutes.
years 5 and up, any room size · 10-15 min · sheets
Extensions
These can be done in any order after the Fundamentals. Each one explores a different aspect of how modern language models work.
Scaling up
Run a model you didn't train, and see what a second word of context buys you and what it costs.
Pre-trained Model Generation
Use a provided pre-trained booklet to generate text without training your own model.
years 5 and up · 20 min · booklet
More Context
Generate from a bigram booklet and a trigram booklet of the same book and compare: two words of context makes the text far more coherent and the booklet far thicker. Then build a trigram by hand, and add cheap extra context with a skip grid.
years 7 and up · 20-30 min · booklet, grid
Extending the model
Give the model tools, so it can pause, ask for something outside itself, and carry on.
Shaping behaviour
Change what a model says without changing the mechanism: the sampler, the training data, the judges, and its own output.
Sampling
Same model, different output: experiment with temperature, truncation strategies, and your own house rules, then put it all together in a poetry slam.
years 7 and up · 20-30 min (60 min with the slam) · grid, ledger, booklet
Beam Search
Keep several candidate sentences alive at once, score each by how likely the whole thing is, and find out why the most likely sentence isn't always the best one.
years 9 and up · 30-40 min · grid, booklet
Fine-tuning and LoRA
Teach a finished model a new text without starting again. Tally it straight in, keep it on a separate adapter sheet you can turn up or take off, then squeeze the adapter into a few strips of numbers, the way LoRA does.
years 9 and up · 50-60 min (add 10 for the flattering adapter) · grid
Rewards
Two tables tune the same model toward the same goal, one judged by a human panel and one by a rule card. The rule table moves faster and learns to game the rule; then the whole room votes thumbs up or down and teaches a model to flatter.
years 9 and up · 40 min (55 min with the thumbs-up round) · grid
Synthetic Data
Run a relay round the room. Each table trains a fresh model on nothing but the twenty words the last table wrote, then passes on twenty of its own. Count the different words each round, then let a widget run the chain to its end.
years 9 and up · 40-50 min · grid
Looking inside
Run by hand two things a real model does that a bigram can't: learn from the page in front of it, and know that cat is like dog.
In-context Learning
Make your model finish a pattern it never trained on, purely from what's already on the page, then give it a short-term memory that keeps the text on topic. The tricks behind few-shot prompting and attention.
years 9 and up · 20 min · grid, cutouts, booklet
Word Embeddings
Guess which two words in your grid behave alike, prove it by swapping them in your text, and check one distance by hand, then let the widget do all the pairs at once.
years 9 and up · 20 min · grid