Zenaique
Glossary · Inference

FlashAttention

Also known as: FlashAttention-2, FlashAttention-3

A memory-aware attention kernel that's 2-4x faster than vanilla, with identical math.

An IO-aware exact attention algorithm that avoids materializing the full N×N attention matrix in HBM by tiling the computation and keeping intermediates in fast SRAM. 2-4x faster training and inference with no quality change.

In practice

The reason long-context training stopped being prohibitively slow. Senior infra interviews probe the tiling strategy and HBM vs SRAM bandwidth.

Related topics

Related terms