Tokenize with BPE, watch attention heads, rotate positions with RoPE, size a KV cache, route tokens to experts and quantize weights.
The Transformer Lab takes apart the architecture behind ChatGPT, Claude and Gemini, one piece at a time. Each experiment isolates a single idea, such as how text is split into tokens or why attention scores are divided by the square root of the head size, and lets you change the numbers and see the effect immediately.
It suits students who have met the word "attention" and want to know what it actually computes, and engineers preparing for interviews where KV cache sizes and mixture-of-experts routing come up. You need no maths beyond multiplying and adding, and nothing to install: everything runs in your browser.
A good order is the one below, from the input side of a model to the output side, then the efficiency tricks that make large models affordable. Each experiment links to the lesson in the Large Language Models course that explains it in full.