FlashAttention's Top Speedup: Up to 9x Faster than Standard Attention
FlashAttention-2 can be up to 9 times faster than standard PyTorch attention implementations, and FlashAttention-3 further boosts performance to 740 TFLOPs/s (FP16) on H100 GPUs, significantly accelerating Transformer training and inference.