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.
Open the full topic