# LLMs Unplugged — My First Language Model (2 hours)

> A 2-hour grid-flavour workshop for high schoolers to adults — train a language model on paper, generate text with dice, scale up with pre-trained booklets, then extend the model with tools (agentic AI)

# LLMs Unplugged

## Understand AI by building it yourself

> **notes:** Open with the promise: understand AI by building a language model by hand, with no computers or maths background needed.
>
> ---
>
> **Four facilitation habits for the session:**
>
> **Don't apologise for explaining things.** Opening with "sorry, this bit's a little dry" or "bear with me" tells the room the next few minutes are a chore. The explanations are why they came.
>
> **Don't call anything "the fun part".** Singling one section out as fun implies the rest is a slog, whether you're tallying, rolling the dice, or debating AGI at the end. Just introduce what comes next.
>
> **Turn questions back to the room before answering.** A clarifying question ("what draws you to that?") or opening it to the floor ("has anyone else hit this?") keeps people participating, and you can still add your own answer after they've weighed in.
>
> **Let them do the activity, then ask what they noticed.** When you reach a reflection slide, leave silence for the room to answer rather than supplying the takeaway yourself. A participant saying "the training text shapes what comes out" lands much better than you saying it.

---

## Acknowledgement of Country

> **notes:** Acknowledge the Traditional Custodians of the land you're meeting on, and pay respects to Elders past and present. Keep it brief and sincere; say it in your own words.

---

> **notes:** Quick intros: who's in the room and why you're here. A sentence each; don't let it run.

---

## Today, you're the class

we'll run this exactly as we would with your students

then we'll step out and talk about running it yourselves

> **notes:** The rest of the deck is pitched at their students; the best preparation for running the workshop is doing the activities the way a class will. Ask them to take the student role for the session and save questions about classroom delivery for the time set aside at the end.

---

**activity**

everyone stand up

> **notes:** Quick energiser. Read each line and let people sit; it speeds up, and by "the last 5 minutes" almost everyone's down. Lands the point that this stuff is already everywhere. \~2 min, don't linger.

---

sit down if you have

**never** used ChatGPT/Claude

---

sit down if you haven't

used it in the last **month**

---

sit down if you haven't

used it in the last **week**

---

sit down if you haven't

used it in the last **day**

---

sit down if you haven't

used it in the last **hour**

---

sit down if you haven't

used it in the last **5 minutes**

---

## What is this about?

you'll **build** your own language model from scratch with just a kids book,
pen & paper, and some dice rolling

you'll **learn** how language models work by spotting patterns in text to
generate new text

> **notes:** Frame the next stretch: build a model from a kids' book, pen, paper and dice, by spotting patterns. \~1 min, then move.

---

> **notes:** Talk over the build. AI is the umbrella term for any system doing things we'd call "smart" (chess engines, spam filters, route planners). Click: ML is the subset that learns patterns from data instead of following hand-written rules; the model you'll build today lives here. Click: LLMs are machine learning models trained on huge amounts of text to predict the next token, which is what you're about to do by hand at a smaller scale. Click: the chatbots in the news (Claude, ChatGPT, Gemini, DeepSeek) are LLMs wrapped in an app.

---

(qr: <https://www.llmsunplugged.org>)

---

# Training

---

## The recipe

> **notes:**
>
> 1. **tidy up** your text: lowercase everything, treat words and single
>    punctuation marks (`. , ! ? ; :`) as separate tokens
> 2. **set up** your grid: first token goes in both the row & column headers
> 3. **fill in** the grid: for each consecutive pair of tokens, add a tally mark
>    in that cell (add new rows/columns as needed)

walk through your text and tally up which tokens follow which in a grid

---

## Example

_"Hop, Joey, hop. See Joey hop."_

after tidying up:

`hop` `,` `joey` `,` `hop` `.` `see` `joey` `hop` `.`

---

## The empty grid

---

## Training: `hop` → `,`

---

## Training: `,` → `joey`

---

## Training: `joey` → `,`

> **notes:** `,` is already in our vocabulary, so no new column is needed

---

## Training: `,` → `hop`

---

## Training: `hop` → `.`

> **notes:** `.` is a new token; punctuation gets its own row and column too

---

## Complete model

> **notes:** with the rest of the text tallied the same way, the grid is complete. `hop` → `.` came up twice, so its cell has two marks; those counts make some next words more likely than others.

---

## A few more tips

you don't have to start at the beginning; any page will do

the last token in one sentence is followed by the first token in the next (even
over the page)

you can ignore quotation/speech marks (`"`)

work in pairs and divide the labour however you like, making sure you keep up
with the tally marks

> **notes:** Groups don't need to start at the beginning of the text: a model trained on page 5 is just as good as one trained on page 1, so let them open anywhere (and groups sharing a text can each take a different page). Treat the text as one continuous stream across sentences and page breaks: a full stop is followed by whatever word comes next. Skip quotation marks instead of giving them a row and column. Pairs work well if one person reads aloud while the other tallies, swapping partway through; the tally marks are the model, so a pair that races through the reading and skimps on tallying has nothing to generate from.

---

## Your turn

tidy up your text, then for each pair of tokens:

1. **find the row** for the first token (if it's new, add a row _and_ a column)
2. **find the column** for the second token (adding a row and column if it's new)
3. **add a tally mark** in the cell where they meet
4. **move along by one**: the second token starts the next pair

> **notes:** Leave this slide up while they work. Hand out the grids; each group tallies its own text. 10 min, circulate. Watch for groups adding duplicate rows or columns: each token gets a new row and column only the first time it appears.

---

## The _language_ of language models

- model
- token
- weights

> **notes:** Everyday sense first, then ours: a model is a fashion model or a model aeroplane; here it's the grid that captures the patterns. A token is a bus token or a token gesture; here it's one word or punctuation mark. Weights are what you lift at the gym, or what you weigh up before deciding; here they're the tally marks that make some next words likelier than others. Point at a cell: when you hear a model has billions of weights, that's what's being counted.

---

# Generation

---

## The recipe

> **notes:**
>
> 1. **choose** any starting word from your grid
> 2. **look** at that word's row to find all possible next words and their counts
> 3. **roll dice** weighted by the counts to pick the next word
> 4. **write down** the chosen word and make it your new starting word
> 5. **repeat** from step 2

use your grid to generate new text, rolling dice to choose each next word

---

## Generation: start with `see`

> **notes:** any word will do as a seed; we start from `see` (the last row) to show you can begin anywhere. Only one option here, so no roll.

---

## Generation: from `joey`

> **notes:** two options in this row (`hop` and `,`) with equal tallies: highlight both, then roll

---

## How the die chooses: `joey`

> **notes:** equal tallies, so the ten d10 faces split down the middle: `hop` gets 0-4 and `,` gets 5-9, reading the row's cells left to right (the same apportionment the printed booklets use). Pause here before rolling.

---

## How the die chooses: `joey`

> **notes:** now roll: a 7 lands in the `,` band

---

## Generation: `joey` → `,`

> **notes:** the 7 landed in the `,` band, so `,` is our next word

---

## Generation: from `,`

> **notes:** another two-option row (`hop` and `joey`), still equal: highlight both, then roll

---

## Generation: `,` → `hop`

> **notes:** rolled a 2, which lands in the `hop` band

---

## Generation: from `hop`

> **notes:** two options again, and `.` has two tallies to `,`'s one, so the split is uneven

---

## How the die chooses: `hop`

> **notes:** `.` has twice the tallies, so it gets more faces (3-9) than `,` (0-2). That's the closest 2:1 split on a ten-sided die: more tallies mean more faces and a higher chance. Pause here before rolling.

---

## How the die chooses: `hop`

> **notes:** now roll: a 6 sits in the `.` band

---

## Generation: `hop` → `.`

> **notes:** the 6 sits in the `.` band, so we pick `.`

---

## Generation: from `.`

> **notes:** only one option (`see`), so no roll. We keep rolling straight past the full stop; to the grid, `.` is a token like any other.

---

## Generation: back to `see`

> **notes:** we've looped back to where we started. Keep going for as long as you like; you decide when to stop.

---

## Generated text

_"see joey, hop. see"_

a new sentence that wasn't in the training data

---

## Your turn

write down a starting token, then repeat:

1. **find the row** for the last token you wrote
2. **share the ten faces** of the d10 across that row's cells, by their tallies
3. **roll** to see which band it lands in (skip the roll if there's only one option)
4. **write it down**, and look up its row next

> **notes:** Leave this slide up while they work. Groups generate from their own grid, rolling for each choice. 10 min, circulate.

---

# Shareback

> **notes:** Take a couple of groups' generated sentences; celebrate the weird ones. \~5 min.
>
> If the room has energy for it, close the shareback by turning it outward: does that change how you picture what's happening when you type into ChatGPT? Then wait; the silence is longer than feels comfortable and the first answer usually arrives just after you'd have given up. If nothing comes, narrow it: "did anything about that feel like something you've seen it do?"
>
> Don't answer your own question, and when someone raises something technical, flip it back before you take it: "what draws you to that?" or "has anyone else run into that?" The expertise in the room is more use to them than a lecture from the front.

---

## The _language_ of language models

- prompt
- completion

> **notes:** Everyday sense first, then ours: to prompt is to cue an actor who's forgotten a line; here the prompt is the starting text you give the model. A completion is finishing something off; here it's the text the model generates back. A hallucination is seeing something that isn't there, a malfunction, yet the sentence you just generated wasn't in the training text either and came from the same tallies and dice as everything else. The model runs one process throughout; we call the output a hallucination when the answer is wrong or unwanted.

---

# Pre-trained generation

---

## Why do it again?

**same recipe, more training text**: yours learnt from a few sentences, this one
learnt from a whole novel

first step on the road to the very big ones

> **notes:** From where they're sitting, the next twenty minutes can look like a repeat of the exercise they just did. Frame it as the first step up in scale: the model they've used so far, then a whole book in the booklet, then Frankenstein at full size in the scaling-up section, then a frontier model. Every step runs the same loop with more data; doing this one by hand lets them see what changes and what stays the same.
>
> Ask them to read their output as they generate: it will sound more like real prose, yet still won't be about anything. The booklet's stretch goal works well if the room needs a hook: try to guess the training text before checking the title on the cover.

---

## The recipe

> **notes:**
>
> 1. **choose** any bold word in the booklet as your starting word
> 2. **look up** that word's entry to see possible next words and their thresholds
> 3. **roll** your d10(s) and scan the thresholds to find the next word
> 4. **write down** the chosen word and make it your new starting word
> 5. **repeat** from step 2

use the booklet to generate new text, rolling one or more d10s to choose each
next word

---

## Pre-trained: start with `sleep`

> **notes:** a bigger model, though `sleep`'s five followers still fit on ten faces: roll **one** d10

---

## Pre-trained: from `again`

> **notes:** `again` has seven followers spread over 00 to 99, so roll **two** d10s: 80 is past `as`'s 76, landing on `I'd`

---

## Pre-trained: from `I'd`

> **notes:** back down to **one** die, roll a d10

---

## Pre-trained: from `float`

> **notes:** only one option, so no dice roll needed

---

## Pre-trained: from `;`

> **notes:** and so on...

---

## Your turn

same loop, from the booklet:

1. **look up** the current word (the bold words are the entries)
2. **read its numbers**: one beside each possible next word
3. **roll** a d10 (or two if the entry runs past 9, read as tens then units)
4. **take the first word** your roll doesn't go past, and look that one up next

> **notes:** Leave this up while they work. Same loop as before, now from the booklet with one or two d10s. 8 min, circulate.

---

# Shareback

> **notes:** Compare with the model they used before: a bigger training text gives more varied, natural-sounding output. Take about 5 groups. \~5 min.
>
> Ask the room: it reads better, but is it _saying_ anything? More data bought fluency: the booklet's output sounds like prose because Paterson sounds like prose, yet it was made the same way as theirs, by counting what follows each word and picking at random. Take one or two answers and move on to scaling up.

---

## The _language_ of language models

- pre-trained model
- open weight model

> **notes:** Everyday sense first, then ours: the weights are the numbers inside the model (in the booklet, the thresholds derived from the tallies), and _open weight_ means anyone can download a copy of those numbers. You can take the booklet home, read every number in it, and generate from it at the kitchen table; no-one can switch it off or change it under you. With most commercial chatbots, your text goes to someone else's servers, an answer comes back, and the weights stay behind closed doors. If anyone asks: open weight is narrower than open source (you get the numbers, not the training text or the training code), and running a frontier open-weight model still takes serious hardware, whereas the booklet only needs a d10.

---

# Agentic AI

> **notes:** An agent is a model that can pause, call a tool, and use the result. We bolt that onto your model.

---

## The recipe

> **notes:** An agent is a model that can pause, get information from outside itself, then continue. Here's how we bolt that onto your model:
>
> 1. **generate** from your model as before, rolling for each next word
> 2. when you land on a **punctuation token** (like `.` or `,`), pause for a tool
>    call
> 3. text **What comes next? "\[sentence so far]..."** (everything since the last
>    full stop) to 3 friends
> 4. **write down** the whole first reply, then the punctuation token you rolled
> 5. **continue** generating from the punctuation token

an agent is a model that can **call tools**: pause generation, get information
from "outside" the model, and continue

generate from your model as before, but every punctuation token triggers a
**tool call**: a real text message to 3 friends/group chats

---

## Worked example

your text so far is "the cat sat", and the next dice roll gives you `.` as the next
token: pause for a tool call

text `What comes next? "the cat sat..."` to 3 friends/group chats;
the first reply back might be "out on the verandah"

write `out on the verandah`, then the `.` you rolled anyway, and continue
generating from `.`

> **notes:** Walk it slowly: the punctuation is the trigger, the completion prompt plus the sentence so far is the tool input, and the whole first reply is the tool result. The prompt gives friends enough context to write a continuation. The punctuation still gets written; the tool result slots in just before it. If asked why we don't continue from the friend's reply: those words probably aren't in your model's vocabulary, so resuming from the punctuation token keeps generation inside the grid.

---

## Your turn

generate as before, but every punctuation token is a **tool call**:

1. **pause** when you roll a `.` or a `,`
2. **text** `What comes next? "[sentence so far]..."` to 3 friends or group
   chats
3. **write down** the whole first reply, then the punctuation token you rolled
4. **carry on** generating from that punctuation token

> **notes:** Leave this up while they work. 10 min. Texting latency is real, so keep groups moving; if a reply hasn't landed by the next punctuation token, back-fill it later. Circulate.

---

# Shareback

> **notes:** What did the tool calls add that the bare model didn't have (fresh, outside information)? Did the friends' words fit the text, or derail it? Take about 5 groups. \~5 min.
>
> If the room is up for it: they have just acted as the harness, deciding when to pause, who to ask, and what to splice back in. Automate that harness and you have an agent acting on its own, which is what "agentic AI" means in most of the coverage they read. Ask what they would let an agent do without checking with them first. Answers get specific fast (booking something, sending an email on their behalf, moving money, writing to a system of record), and the discussion quickly turns to where they draw the line and why: reversibility, who gets blamed, whether they'd notice a mistake. Leave the question open.

---

## The _language_ of language models

- agent/agentic loop
- tool call

> **notes:** Everyday sense first, then ours: an agent is a travel agent or a secret agent, someone who acts for you; here it's a model that can take action as well as generate text. The agentic loop is the cycle that action happens in: generate, call a tool, read the answer, generate again, repeating until the job is done. A tool call sounds like reaching for a hammer; here the model asks for something outside itself and waits for the answer. If anyone asks what runs the loop: _you_ did. The harness is the scaffolding around the model that pauses it, makes the call, and splices the result back. Here, that was the students themselves.

---

# Scaling up

> **notes:** What they just did by hand is the same core loop an LLM runs, at human scale: look at the context, weigh every possible next word, roll the dice, write it down, repeat.
>
> The next two slides cover how frontier models turn up three scale dials, and how post-training changes the kind of text they train on. Point people to the website lessons for why a table of counts can't be scaled and how transformers share weights instead. \~3 min.

---

## Now turn everything up

> **notes:** Ask first: hands up if you've told a chatbot not to do something and it did it anyway. Take two answers. In a frontier model your instruction stays inside the context window the whole time, where it competes as one more stretch of text against everything else in the window. What the model is looking at right now shapes what comes next, just as in their model.
>
> Then walk through the three dials. The shared axis is in powers of ten (thousand, million, billion, trillion), so each bar's length shows how many orders of magnitude it jumps:
>
> - Context: their model looked at one word; Claude looks at up to a million tokens, enough for a whole conversation and more.
> - Training text: one novel (about 84,000 words) versus forty-five trillion tokens, the training run Thinking Machines published for its open-weights Inkling model in July 2026 (about 530 million copies of the novel, or roughly 17 million years at the pace they just worked).
> - Model size: a table of counts for the whole novel, with a row and a column for every word, has 49 million cells, while Claude Fable 5 is estimated at about five trillion parameters (Anthropic doesn't publish the figure).
>
> Why can't you just scale up the table? The novel's table has a count in only 0.08% of its cells (one in 1,200), and reading more text makes it sparser because every new word adds an entire row and column. A trillion-cell table would be almost completely blank. A transformer shares its parameters instead: patterns are distributed across billions of weights, so a sentence about a cat helps predict a sentence about a dog, and the model can produce combinations that never appeared in its training data. Increasing context, data and parameter count improves performance predictably enough to plan large training runs around. Each dial has its own lesson on the website.

---

"Explain the moon landing to a 6 year old in a few sentences."
pre-trained
Explain the theory of gravity to a 6 year old. Explain the theory of relativity to a 6 year old in a few sentences. Explain the big bang theory to a 6 year old. Explain evolution to a 6 year old.
post-trained
People went to the moon, and they took pictures of what they saw, and sent them back to the earth so we could all see them.

same model, same next-word loop---**post-training** is a second round of
training on examples of instructions being followed

> **notes:** Beyond the three scale dials, post-training changes which text the model learns from.
>
> Read the prompt out, then the first reply, and pause for the room to spot what happened. That's GPT-3 straight out of pre-training, continuing the text just like their model. On the internet, "explain X to a 6 year old" usually appears in lists of homework prompts and writing exercises, so the most likely continuation is another question in the list.
>
> Then read the second reply. That's the same model after post-training (published by OpenAI in January 2022 as InstructGPT, the precursor to ChatGPT). OpenAI trained it further on examples of people writing helpful responses to instructions, then had human raters rank its attempts and reinforced the preferred ones. It still runs the same next-word sampling loop, but after training on instruction-response pairs, the likeliest continuation of an instruction is an answer.
>
> If you have time, mention sycophancy: ask who has pushed back on a chatbot and watched it immediately fold, even when the user was wrong. Human raters comparing two replies tended to prefer the agreeable one, so agreement was reinforced during post-training, and the model has no separate check for whether a claim is true.

---

still just **tokens in** → **tokens out**

> **notes:** A frontier model runs the same loop they ran by hand --- look at the context, weigh the options, roll the dice, write it down --- with every dial turned up, tally cells replaced by shared weights, and post-training on top. Every reply from Claude or ChatGPT is sampled one token at a time, which is why hitting "regenerate" gives a different answer.

---

## Running it in your class

pairs, each with a grid template, a d10 and a few pages of a kids' book

**60 minutes** trains and generates; **90** adds the pre-trained booklets; **2
hours** adds tool use

pairs that finish early can train on a second page, or move on to the Sampling
module

> **notes:** Step out of the student role here, cover the logistics briefly, and open for questions.
>
> The snags you saw today are the ones their class will hit: a token only gets a new row and column the first time it appears, quote marks are noise, and the full stop is followed by the next word, page break or not. Sharing ten dice faces across a row's tallies is the step students need modelled most.

---

## Where it fits

`AC9TDI10P02_E4` --- machine learning: an algorithm trained on a data set

`AC9TDI10P01_E6` --- the zero problem: an empty cell is a word it can never say

`AC9TDI10P10_E5` --- rare events are hard to capture: one tally against twenty

`AC9TDI8P11_E5` --- prompts shape the output: the starting word

> **notes:** Australian Curriculum v9.0 Digital Technologies elaborations, years 7--10. The curriculum names AI only in elaborations, which are optional, but they are the clearest statement of what ACARA wants students to understand about it. Years 11 and 12 aren't mapped: senior syllabi are set state by state, so teachers there should match these to their own course. Victoria, NSW and WA have their own codes too. The full mapping, module by module, is on the website's curriculum page.

---

(qr: <https://www.llmsunplugged.org/lessons/my-first-language-model/>)

---

## Questions

is there a term you've heard that we haven't covered?
what new questions do you have about large language models?
how will this change the way you think about and use LLMs in the future?

> **notes:** Three questions, revealed one at a time, easiest first. Don't put them all up at once; the third one lands differently after the room has already been talking.
>
> Open on the terms question. It's the lowest-stakes way into the Q\&A: naming a word you've heard is easier than forming a question, and it surfaces what they've actually been reading. Have prompts ready if the room is slow (data centre, the stack, transformer, agent, AGI), and make room for AGI when it comes up.
>
> When a term comes up, put it back to the room before you answer it: "does anyone else know this one, or have a sense of what it means?" You get to hear what they think it means, which is usually the more interesting problem, and it keeps the session from collapsing into a lecture from the front. Then give your answer.
>
> Do the same when a question is an opinion in disguise (is this taking jobs, is the rollout being handled badly, is any of this worth it). A clarifying question first ("what draws you to that?", "is it a particular industry?") gets a better conversation than answering the wrong question. Give the technical view second.
>
> Bring up the second question once terms thin out, and the third only when the questions are running down. That last one turns the conversation from how the grid works to what they'll do differently on Monday.

---

(qr: <https://anu.au1.qualtrics.com/jfe/form/SV_cA2ioVFWoQRj0KW>)

> **notes:** Feedback QR: give them a moment to scan before you wrap up.

---

> **notes:** Plug the next sessions and point at the Humanitix QR. Keep it brief.

---

(qr: <https://events.humanitix.com/host/anu-cecc-school-of-cybernetics>)

---

## We're here to help

this technology isn't going away, and working out what to do about it is the
interesting part

we work with organisations across all of it: how it actually works, how to get
something useful out of it, and how to keep people at the centre of the
decisions it opens up

**<lxconvenor.cybernetics@anu.edu.au>**

> **notes:** Keep this sign-off to 30 seconds. Say the middle line in your own words, pitched at the room in front of you: most audiences need help thinking through what this does to how they work. If someone has already asked a question that hints at a real problem in their organisation, name it back to them here.
>
> Leave the slide up while you take any last questions so the email address stays on screen.

Source: <https://www.llmsunplugged.org/decks/my-first-language-model-2h/>\
Licence: [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)\
Cite as: Swift, B. (2026). _LLMs Unplugged: Understand how AI language models work by building one yourself._ https://doi.org/10.5281/zenodo.17403824
