Who this is for. Teachers, workshop leads and anyone explaining language models to people who have only used a chat window. Neither you nor your students need any background: the background section gives the three ideas the exercises use, in plain words.
Background: three ideas to explain first (10 minutes)
1. Tokens: the pieces a model reads and writes
A model never sees letters or whole words. It reads and writes tokens: pieces of text from a dictionary fixed before it was trained. PSI calls them pieces. A common English word is often one piece; a rare word, a name or a number may be several. Every limit a model has (how much text it can hold, how fast it answers, what it costs) is counted in pieces.
2. The next piece, as odds
A model writes one piece at a time. Before each piece, it gives odds to every piece in its dictionary, and one is drawn. After "The sun rises in the", it might give " east" 90% and share the other 10% among everything else. A setting called creativity (temperature) reshapes those odds before the draw: lower makes the top choice more likely, higher spreads the chances. Because PSI draws without a fixed seed, asking again can give another answer.
The Generate view shows an answer as a fork map: one column per step, the piece the model wrote on top and the pieces it could have written below, each with its odds. In the text above the map, each piece is coloured by how torn the model was: the brighter, the more torn (a ▴ marks doubt past the colour scale, at 5 bits). Most steps are near-certain. A few are close calls, forks, where two choices have similar odds. Clicking a choice in the map makes the model write the rest from there, down that road; your pick is underlined dotted, so it is never mistaken for the model's own draw.
3. Surprise, in bits
Reading works the other way round. Give the model a text, and at each piece measure how unexpected the real next piece was. That is surprise, counted in bits:
| Odds the model gave the real next piece | Surprise |
|---|---|
| 100% (certain) | 0 bits |
| 50% (a coin flip) | 1 bit |
| 1 in 1,000 | about 10 bits |
| 1 in a million | about 20 bits |
The Read view colours every piece of a text by surprise: the brighter, the more surprising. Hover a piece for its odds, its surprise in bits and what the model expected instead. A piece that was not even among the model's top 20 guesses is off scale: drawn hatched and shown as "over N bits", because its exact surprise is unknown. A ▴ marks a piece past the colour scale, at 12 bits.
The difference between context and training is the point of Exercise 2. The model's dictionary and weights were fixed in training; the text you give it now is its context. It can use the context while it reads, without its weights changing.
What you need
- Laptops with PSI installed. Each needs Node.js and a llama.cpp release; see Install. The three views below run on the llama.cpp engine; nothing needs Python or a graphics card.
- One small GGUF model on each laptop. PSI ships no model: you bring your own, from Hugging Face or any download. Qwen3-1.7B at 8-bit fits most machines without a GPU.
- The model loaded before the lesson. On each laptop, press the gear button (⚙, Model settings) at the top right, pick the .gguf under Local model and press Load (or Scan folder to look in another folder). Wait until the line under the list says Loaded.
- A sheet for each student with three blanks:
| Measurement | My number |
|---|---|
| The probability at the first real fork (Exercise 1) | |
| Surprise of the invented word, first and second time (Exercise 2) | |
| Pieces for one sentence in five languages (Exercise 3) |
Exercise 1: the fork map (20 minutes)
- Open Generate (under Start here in the left menu).
- Replace the question in the box with a question with an opinion in it, and press Generate (or Ctrl+Enter). The answer appears, coloured by how torn the model was; the fork map appears below it.
- Look at the fork map: most columns have one tall bar at 90% or more, and a few have two bars of similar height.
- Ask students to find the first real fork, write down the probability of the top choice there, and click the road not taken. The answer that follows is the other future, written by the same model.
Discussion: where did the answer get decided, and how early?
Exercise 2: the invented word (15 minutes)
- Open Read (under Start here).
- Paste a paragraph that uses an invented word twice, such as "zorblax". Or press absorption: a word it has never seen, which fills the box with a paragraph that uses "zorblax" several times.
- Press Read it. The text comes back coloured by surprise.
- Hover the pieces of the first "zorblax" (an invented word is cut into several pieces) and add up their surprise; then do the same for the second. Where a piece is off scale, count its "over N bits" value: the true sum is at least that.
The first occurrence costs about 37 bits of surprise; the second about 4. If your students' numbers are close to these, the setup is right. Ask: did the model learn the word? It absorbed it for the length of the text; its dictionary did not change. That distinction, between context and training, is the one most people get wrong about these systems.
Exercise 3: five languages (15 minutes)
- Open Tokens (under Start here).
- Type one sentence and press Show the pieces. The line beside the button says how many characters became how many pieces.
- Press the language buttons in turn: English, Hindi, Chinese, Arabic, Spanish. Each puts the same sentence in that language and shows its pieces. Write down the five counts.
Watch how many pieces it costs in five languages. Hindi costs more than English. Ask what that means for a model's memory, speed and price in each language, and why a question about letters inside a word is a question the model cannot read.
What students take away
Three measurements they made: a probability at a fork, a surprise in bits, a token count. Each is a fact about the model in front of them, not a claim from a slide.
Going further
With one machine that has a GPU, the Neural net view shows where inside the layers the answer formed, and Emergence shows the training step where Pythia learned to use its context. Both make a second hour.
Questions people ask
Can students explore how a language model writes without a GPU?
Yes: the three exercises in this lab (the fork map in Generate, the invented word in Read, and token counts in Tokens) run in the Parameter Space Inspector (PSI) on the llama.cpp engine, on laptops with Node.js and a small GGUF model you supply, such as Qwen3-1.7B at 8-bit. Nothing needs Python or a graphics card.
Does an AI learn a new word when you use it in a prompt?
Only for the length of the text. In PSI's Read view, an invented word such as "zorblax" cost about 37 bits of surprise the first time and about 4 the second: the model absorbed it from the context, and its dictionary, which comes from training, did not change.
Does the same sentence cost more tokens in some languages?
Yes: in PSI's Tokens view, one sentence typed in five languages costs a different number of pieces, and Hindi costs more than English. The lab leaves students to work out what that means for the model's memory, speed and price in each language.
What does surprise mean, in plain words?
Surprise is how unexpected each piece of a text was to the model, counted in bits: 0 bits means the model was certain of the piece, 1 bit is a coin flip, and about 10 bits is one chance in a thousand. PSI's Read view colours every piece of a text by it, so students can see which words the model saw coming and which it did not.