Transformer Explainer
An interactive web page showing, step by step, how a GPT-style AI model predicts the next word.
- Your data
- Stays on your device
- Coding needed
- No
- Cost
- Free
- Runs on
- Web browser
- Computer
- An ordinary computer is fine
An interactive web page showing, step by step, how a GPT-style AI model predicts the next word.
Transformer Explainer is a visual teaching tool. It runs a small real AI model, GPT-2, right in your web browser. You type some text and watch how the model's inner parts process it to predict what comes next.
It was made by university researchers and is described in a research paper. It is designed so anyone can learn how the technology behind ChatGPT-like tools works, without installing anything.
Students, teachers and curious people who want to understand how AI language models work inside.
Yes. Use the live demo in a web browser; running your own copy needs developer tools. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?