FlashMask: Faster, More Flexible Attention for Long-Context Training
We’re excited to share FlashMask, a high-performance Attention library for LLM training!
🔸 Flexible support for complex attention masks
🔸 Up to 1.55× faster than FlashAttention-4
🔸 Efficient context parallelism with load balancing and computation–communication overlap
🔸 PaddlePaddle & PyTorch support via CuTe DSL
🔸 SM90 & SM100 support
🔸 Large head dimensions: 192/128, 256/256, 512/512, 576/512
FlashMask-3 is accepted at NeurIPS 2026!
🌐 GitHub: https://github.com/PaddlePaddle/FlashMask
💻 Paper: https://arxiv.org/pdf/2610.17901
🤗 Project: https://enigmatisms.github.io/flashmask-3
