Start here
FlashAttention & GPU Architecture, in plain language
GPU HBM vs SRAM bandwidth, online softmax tiling, IO-awareness, and Triton CUDA ops. FlashAttention shows how exact algorithmic results can become much faster by minimizing memory movement and matching GPU hardware.
For a small example, four query vectors attend to four key vectors. Compute one block at a time, maintain online softmax statistics, and reproduce the same output without storing all 16 scores. This is the mechanism to keep in view as the lesson becomes more technical. Before moving on, identify the input, transformation, output, and one observation that would falsify your conclusion.
Key points
- HBM, cache, shared memory/SRAM, registers, bandwidth, and arithmetic intensity.
- Standard attention intermediates and quadratic materialization.
- Stable softmax with running maxima and normalization sums.