Skip to main content

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; if that style of sampling is new to your group, run Weighted Randomness first.
  • Cutouts: printed tokens spread on a table and a colour-matching game. The maths happens automatically, so it works for any age; the cost is prep, since someone has to print and cut (the Materials page has ready-to-print packs).
  • 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.

The Fundamentals (and a couple of extensions) have a grid/cutouts toggle at the top of the page; both flavours teach the same ideas.

Fundamentals

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.

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.

Looking inside

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---run by hand.