Why it matters
Flash Attention shapes long context. Understanding shapes optimization.
Advertisement
The architecture
Tile Q + K + V.
Online softmax.
Accumulate output tile.
SRAM-resident computation.
Advertisement
How it works end to end
Dao 2022 + FA-2 + FA-3.
O(N) memory instead of O(N^2).
Higher arithmetic intensity.