What’s the capital of France?
Scripted example · illustrative tokens, scores & timing
Assembling the layers…
The machine couldn’t load.
Follow one token.
Drag to turn the stack. Scroll or pinch to zoom. Choose any numbered layer, or use the layer menu, to pause and inspect its parallel paths.
Amber balls represent individual sample weights. Each layer owns a numbered drawer of twelve examples. Open it to see the values: stored balls stay put while read copies travel to the devices. A layer reuses its own weights on every token pass.
Click a word above the machine or a teal carrier to inspect it. Its label stays fixed while its four pins change. “Layer input” holds the entering values; “Now” shows the current values. Selecting a token keeps the clock where it is; “Show this carrier in a layer” can seek to its pass. Finished carriers keep their final values while later tokens travel.
The cutter makes tokens; the pin assembly gives them numerical carriers. Prefill processes the question through the 32 illustrated layers. Each layer keeps K/V information on its paired storage shelves.
A layer’s sizing jaws represent normalization. Three representative attention heads use stored context in parallel. Their outputs join; a feed-forward press expands and reshapes the carrier. Bypasses preserve inputs for residual additions.
Prefill produces the scores for “Paris”. That token is selected and fed back to predict “.”. The period makes one more pass to predict the end signal. The gate closes and the answer remains. No weight ball is a stored word or a lookup for Paris.
Set Total animation to the number of seconds you want the whole stack to take. Every layer and operation scales together, preserving overlaps.
This fixed example is scripted, not a running language model. Tokens, pin heights, candidate scores, 32 layers, three heads and timing proportions are illustrative. The cache shelves summarize stored K/V vectors; individual projection matrices, tensor arithmetic, positional encoding and sampling probabilities are not simulated.
- Space
- Play / pause
- ← →
- Step 0.5 viewing seconds
- Home
- Whole layer stack
- C
- Lift selected layer cover