FlashAttention
What is FlashAttention?
In one sentence: FlashAttention is a clever way to compute attention on GPUs that is much faster and uses much less memory, while giving the same results.
What does FlashAttention look like?
Switching to FlashAttention can make training a model with long context several times faster.
Why does FlashAttention matter?
It made long context windows practical and is used in almost every modern training and inference system.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/flashattention/">FlashAttention, explained simply</a> (The AI Math Dictionary)