Tiling for SRAM Efficiency: Minimizing HBM Transfers

FlashAttention breaks attention computation into small blocks (tiles) that fit into fast on-chip SRAM, drastically reducing data movement to and from slow High Bandwidth Memory (HBM) and improving throughput by 2-4x for models like GPT-2.

Sources

Open the full topic