@sameQCU in moe regime i feel like param-maxing attention is not the move, though i agree sparse routing for heads is a good idea. minimax pulled it off and is frontier
@profcelsofontes flash-msa is just for training, minimax themselves have uploaded inference code to both
vllm: https://t.co/8Lt5hpLLXJ
sglang: https://t.co/riaJv1ODBM
Introducing Flash-MSA, the world’s first open source sparse attention training kernels optimized for extreme context lengths. 4 simple kernels, 400%+ speedup over dense flash attention at long context ⚡
@allanzhangML@zxytim it currently is faster on blackwell, but not fully optimized, e.g. i didn't use sm100-specific MMAs yet to preserve compatibility with Hopper, but getting to 4x on blackwell is achievable
blog: https://t.co/AsyJJTBCvv
code: https://t.co/jDHFJ9p2on
very open to collab on flash-msa. I’m excited to see what people do with it, and I hope it encourages folks to bring their wild architecture ideas into the open, where the community is eager to optimize them 🚀
10/10
To verify kernel correctness, I ran sweeps of comparisons to eager MSA, for example this table sweeps over Q/B/S in bf16. I also implement Flash-MSA to be flexible- it supports various main and proxy attention configs, variable top-k, and the proxy dense warmup phase.
9/