Debug Foundry

Watch attention drop its memory bill, tile by tile.

Turn it, pause it, drag through the steps. Then flip to standard attention and compare the traffic.

Not a video. A small simulation of where the numbers travel — slow memory below, fast on-chip memory above.

Drag to turn · scroll or pinch to zoom

Finished state of the FlashAttention simulation

Slow-memory trips
0 elements

1/8First step sentence

    0.0s
    Compare with
    Phase
    Sequence length N = 1,024

    What it's for

    Good to know

    Same math, same output (up to float rounding). FlashAttention is an IO optimization, not an approximation.

    How it works, step by step

      Before you rely on it

      Tile counts and traffic numbers come from a small illustrative model, not measured on a GPU. The shape of the win is real; the exact ratio depends on hardware, head dim and block sizes.

      Reference