Team releases open-source sparse attention for 10M-token contexts
A research team released an open-source sparse-attention method for training and serving models with very long contexts, including kernels, SGLang integration, a paper and implementation details. The team reports that sparsifying attention in Qwen 3.8 27B showed no observed accuracy loss. It also reports that training sparse attention with next-token-prediction loss alone matched full attention's validation loss while running faster. At contexts extending to 10 million tokens, the team reports accuracy losses on some specific tasks, while most tasks, including NIAH, remained unaffected.
The release makes the method, kernels, SGLang integration, paper and implementation details openly available. The team says it can be applied to smaller open-weight models to make longer contexts cheaper on local hardware, while its current work focuses on H200 and B300 GPUs and larger-scale systems.
I am on the team behind the attached open-source research on novel approaches to attention - specifically we show:
• You can sparsify the attention of Qwen 3.8 27B without observed loss on accuracy
• Extending context up to 10M tokens loses accuracy on some specific tasks - but most, like NIAH is still fine (interesting insights)
• You can natively train sparse attention on next-token prediction loss alone and achieve the same validation loss as full attention - but faster
Hope the community likes it - while we focus on H200/B300 GPUs and larger scale system - I wanted to share our research here as well - as it can be applied to small open-weight models (making longer context cheaper on local hardware)
Everything is fully open: kernels / SGLang integration / paper / details
Hope you find it interesting / useful!
(No hype - we try to be as transparent as possible)