Transformers and Attention Lab
Watch a translation, step by step
Type an English sentence and watch the paper's model translate it into German, one sub-layer at a time: the architecture of Figure 1 lights up on one side, and every calculation, with the model's real numbers, appears on the other.
An interactive course in how the transformer works, as the 2017 paper Attention Is All You Need describes it and as today's models use it. A real, tiny model built to the paper's design translates English into German in front of you, step by step, and every number on the page comes from the lab's own engine.
Written for engineers and tech leads who call an LLM every day and never studied machine learning: the little mathematics it needs comes first, with pictures. By the end you can read the paper itself and follow it, section by section.
All 25 chapters, every section of the paper and every tool are open; the lab guide shows the way around, and the notation sheet lists every symbol of the paper on one page.
The models read English and write German, the paper's own task, whatever language this page is in: a model only knows the languages it was trained on.