← All entries
Other#627

Flash-MSA: Accelerating Million-Token Training With Sparse Attention Kernels

Summary

Flash-MSA implements MSA training (proxy block-sparse attention + fused proxy/main backward with an atomic KL trick so proxy grad = p_proxy − p_main) in CuTeDSL for H100/B200, CUDA 13. Tweet claims 400%+ speedup vs dense flash at long context. Warmup kernels run dense flash then train the proxy in the backward. Correctness vs eager PyTorch cosine sim typically ≥0.998. Requires adding kernel KL loss to CE. Inference kernels remain MiniMax-AI/MSA.

Venue
nanduruganesh.github.io
Source
web
Access
free
License
MIT
License family
Permissive
Language
en
Purpose
Open CuTeDSL training kernels for MiniMax Sparse Attention on Hopper/Blackwell
Scale
H100 bf16 sweeps seq 4k–8k, 8–32 Q heads. Tweet 400%+ vs dense flash. GitHub 27 stars / 3 forks at check.
Time period
Repo created 2026-07-10. Tweet 2026-07-12. Discord posted 2026-07-12. Pushed 2026-07-13.
Author type
human
Added
Aug 14, 2026
Verified
Aug 14, 2026
Research status
done
Found via
#random-papers

Tags

flash-msasparse-attentioncutehopperblackwellminimaxkernelsblogx

Topics

sparse attention, CUDA kernels, long-context training

Research notes

  • Primary: technical blog. Discord/X https://x.com/gnanduru1/status/2076342414915342718 via fxtwitter. Code https://github.com/nanduruganesh/flash-msa (MIT); PyPI flash-msa; Megatron-LM fork https://github.com/nanduruganesh/Megatron-LM. Underlying MSA paper arXiv 2606.13392; official inference https://github.com/MiniMax-AI/MSA. Kernel/code item, not a hosted corpus, so no datasets_local row.

Similar entries