# Flash-MSA: Accelerating Million-Token Training with Sparse Attention Kernels

> Hacker News story 48884618 · language: en · submitted 2026-07-12
> Web version: https://zeli.app/story/48884618
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 5 · by [rawsh](<https://news.ycombinator.com/user?id=rawsh>) · 💬 0
[original](<https://nanduruganesh.github.io/flash-msa/>) · [HN discussion](<https://news.ycombinator.com/item?id=48884618>)

## Summary

I introduce Flash-MSA, the first performant open-source training kernels for MiniMax Sparse Attention designed for Hopper and Blackwell GPUs. Developed on Spheron rentals, this implementation uses blockwise sparsity and GQA to overcome limitations in current frontier models. By optimizing memory usage and fusing backward passes, I enable efficient training of million-token contexts while maintaining high precision compared to eager PyTorch implementations.

## Key quote

> This one is particularly important because no western labs, to the best of my knowledge, have adopted MLA into their training, making the prevailing sparse attention formulation in frontier models like GLM-5.2, DSv4, which are fit to MLA, inaccessible to models here.

---

## Cite

- Page: https://zeli.app/story/48884618
- Date: 2026-07-12
- Source: nanduruganesh.github.io (https://nanduruganesh.github.io/flash-msa/)
- Hacker News: https://news.ycombinator.com/item?id=48884618

## Other languages

- zh: https://zeli.app/zh/story/48884618 · markdown: https://zeli.app/zh/story/48884618.md
- ja: https://zeli.app/ja/story/48884618 · markdown: https://zeli.app/ja/story/48884618.md
- ko: https://zeli.app/ko/story/48884618 · markdown: https://zeli.app/ko/story/48884618.md
- de: https://zeli.app/de/story/48884618 · markdown: https://zeli.app/de/story/48884618.md
- es: https://zeli.app/es/story/48884618 · markdown: https://zeli.app/es/story/48884618.md
