Repository navigation
Add SM12x MSA Support (Tested on DGX Spark, linux/arm64/SM121) - #1
Open
dbotwinick wants to merge 5 commits into
Open
dbotwinick wants to merge 5 commits into
dbotwinick wants to merge 5 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for NVIDIA SM120/SM121 architectures (tested on SM121, GB10) by adding a new
fmha_sm12xpackage 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:
fmha_sm12xPython 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 thefmha_sm100API where possible._decode.py), providing a correctness-first Torch-based path for block-sparse decode matching the SM100 surface._fp4.py) for dequantizing FP4 tensors and computing per-page QK max scores, supporting both MXFP4 and NVFP4 formats.Documentation updates:
README.mdto clarify the separation between SM100/SM103 and SM120/SM121 support, explain the purpose of the newfmha_sm12xpackage, 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:
pyproject.tomlto auto-discover and include the newfmha_sm12xpackage and its data files, ensuring all necessary CUDA and Python sources are shipped for SM12x support. [1] [2]