๐Ÿง 

Large Language Model Visualizer

a plain-English, visual walk-through of how AI tools like ChatGPT and Claude guess the next word

โœ๏ธType a short prompt

This follows the real steps an AI language model uses to guess its next word โ€” it just uses toy, hand-picked numbers instead of the billions of real ones a trained model learns. Think of it as a working scale model, not the real engine.

This demo is based on the Transformer, the design behind today's AI language models, introduced in "Attention Is All You Need" (Vaswani et al., 2017).

To keep it small, it leaves out parts of a real model: words are split into sub-word pieces rather than whole words, the attention step is followed by a "thinking" layer and repeated dozens of times, and the final guess here gets a nudge from a short hand-written list of common word pairs that a real model would learn on its own.