Lab guide
Find your way around in ten minutes: what the lab is for, the Course, the Theory tab and the tools, how to read a trace, and three ways through it.
1. What the lab is for
The lab teaches you how a transformer works until you can read the paper that introduced it, Attention Is All You Need, and follow it.

- Attention on the paper's model: press Play and watch “it” find “dog”.
- The translation walkthrough: a whole translation, one step at a time.
- The menu: the Course, the Theory tab, the tools, the glossary, the notation sheet and this guide.
- Language, print, and light or dark theme.
It is written for engineers and tech leads who use LLMs every day and never studied machine learning. The little mathematics it needs comes first, with pictures.
Two tiny real models run inside the lab: one built to the paper's design translates English into German, one built like GPT-style models predicts the next English word. Every number on every page is computed by the lab's own engine from those models; nothing is typed in by hand.
2. Three areas: the Course, the Theory tab and the tools
The Course builds the ideas from zero, the Theory tab goes through the paper section by section, and the tools let you run the models yourself.

- A part of the course and its title.
- A chapter: open it from here or from the menu.
- The sections of the paper the chapter prepares you for.
- Open: every chapter is written.
The Course has 25 chapters in six parts: the pieces (tokens, vectors, softmax), attention, the layer, the paper's whole model, today's models, and two capstones that run everything end to end. Take them in order; each one says which section of the paper it prepares you for.
The Theory tab follows the paper in its own order, one page per section, with the paper's sentences quoted, every figure redrawn and every symbol explained. Keep the PDF open beside it. The notation sheet lists every symbol on one page.
The tools are the same pieces on their own: the attention explorer, Figure 1 live, the translation and next-word playgrounds, and the simulations. Chapters and Theory pages embed them or link to them.
3. How a chapter works
Every chapter has the same shape: the picture first, then the idea in plain words, a worked example with the models' real numbers, the formula symbol by symbol, why it matters at work, and where it fails.

- Where you are: the part and the chapter.
- Pick a sentence or type your own.
- The player: play, pause, step, skip to the end, restart, and the speed.
- The readout says in words what the picture shows, step by step.
Start with the picture: play the animation, step through it, or skip to the end, which always lands on the engine's result. Where a box is offered, type your own sentence; the models know only the simple English of their training sentences and name any word they do not know.
Each chapter ends with three to five exercises the engine checks, and “In the paper”, the passage of the paper the chapter prepares, with a link to its Theory page. Words in the glossary are linked the first time they appear.
4. The Theory tab: the paper beside you
Each Theory page takes one section of the paper and explains it so you can read the original alongside.

- The paper's section this page goes through.
- Open the paper itself, on arXiv, to read alongside.
- The section's figure, redrawn and interactive.
A page opens with the section's figure or table, redrawn and interactive, then says what the section says, quotes the key sentences in the paper's own English with a plain paraphrase, lists every symbol with the paper's value and our model's, and ends with three checks.
Our models are miniatures of the paper's: the same design, far smaller and trained on simple sentences. Each page says how ours differs, so a number from our model is never mistaken for one from the paper.
5. How to read a trace
A trace is every step of the model's work on one sentence, in the order the model computes it. The translation walkthrough plays it on the paper's Figure 1.

- The player: step forward or back, or play the whole translation.
- The paper's Figure 1: the current step's box is lit.
- The step: its name, what happens and why, with the paper's section.
- The step's formula and its numbers, from the real model.
Each step lights the box of Figure 1 where your sentence is, and beside it gives the step's name, one sentence on what happens and why with the paper's section, the formula, and the numbers: the first 8 of each token's 64, with the rest on demand. Step forward and back, or jump to any step in the list.
Read the encoder once, then follow one German word through the decoder: its masked self-attention over the German so far, its encoder–decoder attention back to the English, and the scores and probabilities that choose it. Chapters 24 and 25 give the same trace as a list you can open step by step, each linked to its chapter.
6. The tools
Each tool runs the models live on what you type or set, and has its own address you can share or embed in another page.

- A tool: what it does and where it is in the paper.
- Open it; its address keeps your sentence, so you can share it.
Begin with the translation playground or the next-word playground, then the attention explorer, which shows every head of every layer on your sentence. The simulations (√d_k, positions, the learning rate, label smoothing, dropout, Table 1 and Table 3) each belong to a chapter and a section of the paper.
The gentlest start is the translation chat: type a sentence, read the model's German, see the other translations it weighed, and open the walkthrough to watch how it got there. Words the model does not know are marked, with known words to swap in.
7. Printing and languages
Every page prints cleanly, and the whole lab is in English, Dutch, Polish and German.
The print button in the top bar prints the page without the menus; animations print at their final state and collapsed boxes print open. The notation sheet fits one A4 page.
The models read English and write German in every language of the lab, and their sentences, the paper's quotations, formulas and code stay as they are: a model only knows the languages it was trained on.
8. Suggested paths
Three ways through the lab, depending on how much time you have and who is with you.
A 30-minute tour
About 30 minutes
Anyone who wants to see what is inside an LLM before committing to the course.
- Chapter 1, what a language model does.
- Chapter 9, scaled dot-product attention.
- The translation walkthrough, one sentence end to end.
- Chapter 25, ending with temperature and top-k.
Read the paper in a weekend
Two days, a few hours each
An engineer or tech lead who wants to read Attention Is All You Need and understand it.
- Saturday: Parts A and B of the Course, chapters 1 to 12.
- Sunday morning: Parts C and D, chapters 13 to 21.
- Sunday afternoon: the Theory tab from the abstract to the conclusion, with the PDF open and the notation sheet printed.
- Last: the two capstones, chapters 24 and 25.
A team session
Two hours
A team that builds on LLMs and wants a shared picture of how they work.
- Watch the translation walkthrough together on one screen.
- Each person takes one capstone experiment, predicts the result, then runs it.
- Discuss chapter 23: what model size and context length cost.
- Finish with the Theory page of section 3.2.1 next to the paper.