STATES · COMPARISONS · MIXTURES

Attention and
Transformers.

One token at a time. Follow three states through a small calculation—and see exactly what changes.

Start reading →
One query, three attention weightsSynthetic example: query rises has attention weights grid 0.284, load 0.140, and rises 0.576. Each bar uses the same zero to one scale. The guide traces how those weights mix value vectors.ONE QUERY · THREE KEYSrises asks; values combine.grid0.284load0.140rises0.576Toy weights · shared scale from 0 to 1

Three weights, one mixture. Invented states make the computation visible; these are not learned token relationships.

A field guide for applied ML reading. Refresh vectors and notation as you go, calculate a single attention row, then place it inside a Transformer block. Six chapters, one runnable lab, and a complete script-free reading edition.