One four-word sentence, run through seven different attention mechanisms. Every matrix comes from one seeded example — step through and watch the actual numbers, not a diagram of them.
Step through at your own pace · prerequisites: Attention & Transformers (08)
Pick a tab — MHA first if you're new to this, since every other tab reuses its vocabulary and its epilogue (concat, then one output projection). Every number below is computed by real matrix arithmetic in your browser from one seeded example (four tokens: "The cat sat down"), not hand-typed — the FlashAttention tab even checks its own answer against the plain-softmax result and shows you the difference.
B × — nothing about the math inside changes.d_model in the thousands and dozens of heads. The mechanisms are identical at that scale — only the grids would no longer fit on a screen.