interpretability explorer
Real activations from GPT-2 small (124M parameters), computed with PyTorch: what a token attends to in each of the 144 heads, how large its residual stream gets, and what the model would predict if you stopped reading after each layer (the logit lens). Everything is precomputed on these prompts. For your own, run python3 explorer/precompute.py "your prompt" and rebuild.
Worth trying: on Indirect object, click the last token and pick head 9.6. It reads from "Mary", the answer. On Induction, head 5.5 puts 98% of its attention on "Dave", the token that followed the previous "Carol", and the model predicts it.
1. click a token (the query)
2. its attention in all heads: rows are layers 0 to 11, columns are heads 0 to 11. Click a cell.
3. the chosen head, all queries
4. size of the selected token's residual stream after each layer (log scale; faint lines are the other tokens)
5. final prediction for the selected token
6. logit lens: the model's best guess for the next token if you read out after each layer
Early layers mostly echo the current token. The right answer tends to appear in the middle or late layers and then sharpen.