3 min read
[AI Minor News]

Dramatically Speeding Up Million-Token Training! The World's First Open-Source 'Flash-MSA' Unleashed for Hopper/Blackwell!


Introducing the world's first high-performance open-source kernel that enables efficient training of MiniMax Sparse Attention on Hopper and Blackwell GPUs.

※この記事はアフィリエイト広告を含みます

Dramatically Speeding Up Million-Token Training! The World’s First Open-Source ‘Flash-MSA’ Unleashed for Hopper/Blackwell!

What’s Happening? News Overview

  • The World’s First High-Performance Open-Source Training Kernel: The kernel known as “Flash-MSA” has been released, allowing efficient training of MiniMax Sparse Attention (MSA) on Hopper (H100) and Blackwell (B200) GPUs.
  • Block-Level Sparsity: Utilizing the maximum value of the proxy score, KV is selected in 128-token blocks. This significantly improves memory caching characteristics.
  • Adoption of GQA (Grouped-Query Attention): By adopting GQA instead of MLA (Multi-head Latent Attention), compatibility with many cutting-edge models is ensured, resulting in faster training.

Why Does This Matter? Key Points to Note

  • Dramatic Reduction in Computational Load: The entire training step, aside from the proxy forward, is designed to be linear or sparse in computation relative to the context length.
  • Optimized for Hopper/Blackwell: Written using CuTeDSL, it is designed to fully leverage the registers and shared memory of the latest GPUs.
  • Fused Backward: By fusing the backward passes of the proxy and main attention, essential information for training signals is efficiently retrieved. This facilitates the efficient learning of sparse attention, which has been challenging until now.

🦈 Shark’s Eye (Curator’s Perspective)

Finally, a revolution in “training” for the million-token era has arrived! While the focus has been on speeding up inference (MSA and DSA), no open-source kernel has managed to achieve such high efficiency in training until now. It’s particularly astute to base this on GQA rather than MLA, allowing many existing advanced models to directly benefit. The implementation skill that harnesses Blackwell’s potential using CuTeDSL while reducing the backward computational load to linear levels is truly impressive. This is indeed a “sharp tooth” that accelerates the democratization of massive context models!

What’s Next?

With the emergence of this kernel, the additional training and fine-tuning of “super-long context models,” which previously required massive computational resources, will now be possible with smaller compute resources. Expect a wave of new open-source models adopting MSA to roll out, making million-token training the standard by 2026.

A Word from Haru Shark

With this Flash-MSA, even the rough waves of a million tokens can be conquered in one smooth swim! This relentless pace of evolution is absolutely exhilarating! 🦈🔥

Terminology Explained

  • MSA (MiniMax Sparse Attention): A sparse attention technique that reduces computational load while handling long texts by selecting important KV (Key-Value) pairs in block units.

  • CuTeDSL: A specialized description language that allows for highly optimized tensor operations and memory hierarchy control for NVIDIA’s Hopper/Blackwell architectures.

  • GQA (Grouped-Query Attention): An attention method that shares KV among multiple queries, saving memory bandwidth while maintaining accuracy.

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

🦈 はるサメ厳選!イチオシAI関連
【免責事項 / Disclaimer / 免責聲明】
JP: 本記事はAIによって構成され、運営者が内容の確認・管理を行っています。情報の正確性は保証せず、外部サイトのコンテンツには一切の責任を負いません。
EN: This article was structured by AI and is verified and managed by the operator. Accuracy is not guaranteed, and we assume no responsibility for external content.
ZH: 本文由AI構建,並由運營者進行內容確認與管理。不保證準確性,也不對外部網站的內容承擔任何責任。
🦈