How LLMs Actually Work — An Interactive Explainer
I built a scrollable, animated walkthrough of what happens inside a language model — from a word becoming a number to the next token being chosen
I built a scrollable, animated walkthrough of what happens inside a language model — from a word becoming a number to the next token being chosen
Everyone uses language models now. Almost no one has a mental model of what's happening between hitting enter and the answer streaming back. The explanations on offer split into two useless extremes: the cocktail-party version ("it's just autocomplete") and the graduate-seminar version (twelve equations and a reference to Attention Is All You Need).
I wanted the thing in the middle — a page you can scroll through in ten minutes that shows each step with a live animation, lets you poke at the parts that are interactive, and never asks you to take a leap of faith. So I built one.
Open the interactive explainer → llms.davidstancel.com
A single self-contained page. No login, no setup — just scroll.
The page follows one short prompt all the way through a transformer, one concept per section, each with its own animation:
The goal was never to make you an ML engineer. It's to replace "it's magic" with a working intuition — enough that the next time a model surprises you, you have somewhere to put it.
The conceptual skeleton was inspired by this excellent explainer; the page, the animations, and the framing here are my own ELI5 take.
I advise founders, funds, and institutions on crypto, DeFi, and multijurisdictional setups. Tell me what you're after.
Book a consultation →