Flash Attention: Exact Attention, Faster GPU Performance

Flash Attention dramatically speeds up and improves memory efficiency of standard Transformer attention on GPUs by optimizing memory movement. It uses tiling and recomputation to perform attention calculations within fast on-chip SRAM, minimizing costly transfers to slower high-bandwidth memory, without approximating the attention mechanism itself.

Sources

Open the full topic