FlashAttention: Fused Kernels for IO-Aware Speed

FlashAttention significantly speeds up parallel attention by fusing multiple operations into a single GPU kernel and optimizing memory access, reducing slow High Bandwidth Memory (HBM) transfers. This 'IO-awareness' can lead to 2-4x speedups and substantial memory savings, especially for longer sequences.

Sources

Open the full topic