transformer-explainer

/about

About this project

This is a graphical, interactive explainer of the Transformer decoder. Type your own tokens, watch every operation execute, and sample the next token end-to-end. Every matrix you see is the actual value the server computed — the visualisations are not a separate model.

It exists for two readers. End users learning the Transformer get a step-by-step walk-through with three layers of depth (concept, maths, code) they can toggle inside any section. Source-readers get a real-world Next.js full-stack codebase that reads like a textbook, with shapes, formulas, and references in the JSDoc of every operation.

Built with

References

Licence

MIT. Use the code as a learning resource, fork it, ship it. See LICENSE for the text.

→ Start learning