AnyLearn
All cursus
AIadvanced

FlashAttention and the Art of Finding the Real Bottleneck

For five years attention was optimised by cutting FLOPs, and the faster algorithms kept not being faster. They were solving the wrong problem: attention spends its time moving a matrix between GPU memory tiers, not computing. This path follows the diagnosis and the fix, from the memory hierarchy through the rescaling identity that lets softmax be tiled, to writing fused kernels yourself, and ends where the same signature shows up next: normalisation, the optimizer step, and the logits tensor nobody thinks about.

0 of 4 lessons complete
Sign in to track progress and earn a certificate.

Lessons, in order

  1. 1
    AI
    Attention Is Memory-Bound, and Nobody Noticed for Five Years
    Start
  2. 2
    AI
    Online Softmax: Tiling Across a Reduction
    Start
  3. 3
    AI
    Writing Fused Kernels Without Writing CUDA
    Start
  4. 4
    AI
    Finding the Next One: Fusion Beyond Attention
    Start