Flash Attention: Optimizing Transformer Memory Access

Flash Attention speeds up Transformer models by using an IO-aware algorithm that reorganizes attention computation with 'tiling,' keeping data blocks in fast on-chip SRAM to minimize slower High Bandwidth Memory (HBM) transfers.

Sources

Open the full topic