How this works
The animation on my home page is a real run of Qwen2.5-3B-Instruct, a small open-weight model, on my name. Every token, vector, attention weight, and probability in it comes from that run. I only picked the timing.
1. Tokens
The model reads tokens, not letters. “hunter” is one token. “scheppat” is three.
It also reads an instruction I wrote, inside a chat template:
You are the assistant on Hunter Scheppat's website. When a visitor types just his name, reply with one short, direct question: ask what they want to know about Hunter Scheppat.
All tokens it reads
2. Vectors
Each token ID picks a row of learned numbers. These are the striped columns in the animation. Maroon is above zero, blue below.
3. Layers
The columns pass through layers. In each one, attention lets a token pull from the tokens before it. The arcs in the animation are these weights. Here they are for every token, averaged over heads:
The first column is attention to the instruction and template. Shading uses a square-root scale. Hover a square for its value.
4. Next token
After the last layer, the model scores every token it knows and takes the top one. Then it appends that token and runs again. That’s the loop in the animation.
Top candidates
Best guess at each layer
The word riding the scan line is the model’s best guess so far. For the first word it passes through 你想, Chinese for “you want,” before landing on “What.”
It stops when it picks <|im_end|>, its end-of-turn token.
About the run
- Model
- Qwen/Qwen2.5-3B-Instruct, parameters
- Decoding
- Greedy, float32
There’s no server. The site replays one recording, so it can’t answer new questions.