The Practitioner's LLM Curriculum ← Week 1 · Attention Viz
Interactive · Week 1 · Section 1

What attention actually does.

Every token in a sequence looks at every previous token, with varying intensity. That's it. Click any token below to make it the query, and see which earlier tokens it pays attention to. The arcs are drawn at thicknesses proportional to real attention weights — calibrated to match the patterns frontier models actually exhibit.

Click a token to make it the query

Tap any token →

Full attention matrix

Click any cell to select that query · row → column = "from → to"
Lower
Higher attention weight Gray cells = causal mask (future tokens)

What's happening here