Skip to content

Add SM12x MSA Support (Tested on DGX Spark, linux/arm64/SM121) - #1

Open
dbotwinick wants to merge 5 commits into
MiniMax-AI:mainfrom
dbotwinick:sm12x-parity
Open

dbotwinick wants to merge 5 commits into
MiniMax-AI:mainfrom
dbotwinick:sm12x-parity

Conversation

@dbotwinick

@dbotwinick dbotwinick commented Jun 11, 2026 •

Copy link
Copy Markdown

This pull request introduces support for NVIDIA SM120/SM121 architectures (tested on SM121, GB10) by adding a new fmha_sm12x package alongside the existing SM100 code. The documentation is updated to clarify architecture support and package separation, and the Python packaging is adjusted to include the new subpackage and its data. Two new reference implementations for SM12x (paged decode and FP4 indexer) are also added.

Note: Triton is the higher performing path (although not fully optimized) with pure torch fallback.

SM120/SM121 (GB10) support and new package:

  • Added the new fmha_sm12x Python package as a parallel namespace for SM120/SM121, exposing a public API facade and lazy attribute loading for its components. This package includes support for dense and sparse attention, paged decode, and quantization/dequantization utilities, mirroring the fmha_sm100 API where possible.
  • Implemented a reference SM12x paged decode kernel and wrapper (_decode.py), providing a correctness-first Torch-based path for block-sparse decode matching the SM100 surface.
  • Added a reference SM12x FP4 indexer (_fp4.py) for dequantizing FP4 tensors and computing per-page QK max scores, supporting both MXFP4 and NVFP4 formats.

Documentation updates:

  • Updated README.md to clarify the separation between SM100/SM103 and SM120/SM121 support, explain the purpose of the new fmha_sm12x package, and describe the architecture-specific kernels, helper utilities, and fallback mechanisms. Also added a new section on the SM12x status and usage. [1] [2] [3] [4] [5]

Packaging and distribution:

  • Modified pyproject.toml to auto-discover and include the new fmha_sm12x package and its data files, ensuring all necessary CUDA and Python sources are shipped for SM12x support. [1] [2]

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant