FlashAttention 2: Up to 10x Faster Than Standard Attention

FlashAttention-2 delivers approximately 2x speedup over its predecessor, FlashAttention 1, and can be up to 9-10x faster compared to standard PyTorch attention implementations, achieving up to 230 TFLOPs/s on A100 GPUs.

Sources

Open the full topic