Skip to content

[Feat] quantization: Add the MiniMax-M3.1 NVFP4 MoE method - #46140

Merged
ispobock merged 22 commits into
mainfrom
m31-nvfp4-moe
Oct 25, 2026
Merged

ispobock merged 22 commits into
mainfrom
m31-nvfp4-moe

Conversation

@ispobock

@ispobock ispobock commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

minimax_m3_nvfp4 quantization for the MiniMax-M3.1 checkpoint: NVFP4 experts on the TRT-LLM routed runner, MegaMoE, or Marlin, with the deferred-finalize handoff for the routed runner, plus the MiniMax VL config and model-config helpers.

Changes to existing code

  • FusedMoE.supports_deferred_finalize is also true for packed NVFP4 experts on the TRT-LLM routed runner.
  • The FP4 deferred-finalize input check also accepts packed routed TopK.
  • QuantizationConfig.convert_mxfp8_to_block_fp8 (default None) lets a config decide whether its MXFP8 weights convert to block FP8 at load.
  • MegaMoE and the FlashInfer TRT-LLM routed MoE treat minimax_m3_nvfp4 as NVFP4 experts.

Verification

  • test_minimax_m31_nvfp4_trtllm_moe, test_mega_moe_deepgemm_api

Cut byte-for-byte from #45925 (MiniMax-M3.1-Flash support) at 10e655a.


CI States

Latest PR Test (Base): 🚫 Run #40181752276
Latest PR Test (Extra): 🚫 Run #40181752250
Latest PR Test (AMD ROCm 10): ❌ Run #40181752243

@github-actions

This comment has been minimized.

@ispobock

Copy link
Copy Markdown
Collaborator Author

/rerun-test --changed

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🚀 4-gpu-b200 (1 test): ✅ View workflow run

cd test/ && python3 registered/kernels/ops/moe/test_minimax_m31_nvfp4_trtllm_moe.py

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/unit/layers/moe/test_mega_moe_deepgemm_api.py

ispobock and others added 4 commits October 24, 2026 01:51
Co-authored-by: Chunan Zeng <[email protected]>
Co-authored-by: zhongyu <[email protected]>
Co-authored-by: Denji-kk <[email protected]>
Co-authored-by: Qiaolin Yu <[email protected]>
Co-authored-by: Chunan Zeng <[email protected]>
Co-authored-by: Denji-kk <[email protected]>
Co-authored-by: zhongyu <[email protected]>
Co-authored-by: Thanhhao <[email protected]>
Co-authored-by: Hao Phan <[email protected]>
Co-authored-by: Denji-kk <[email protected]>
Co-authored-by: Shuwen Wang <[email protected]>
Co-authored-by: Qiaolin Yu <[email protected]>
Base automatically changed from msa-nvfp4-kv-kernels to main October 25, 2026 09:41
@ispobock

Copy link
Copy Markdown
Collaborator Author

/rerun-test registered/kernels/ops/moe/test_minimax_m31_nvfp4_trtllm_moe.py

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🚀 4-gpu-b200 (1 test): ✅ View workflow run

cd test/ && python3 registered/kernels/ops/moe/test_minimax_m31_nvfp4_trtllm_moe.py

@ispobock ispobock added run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci) bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) labels Oct 25, 2026
@ispobock

Copy link
Copy Markdown
Collaborator Author

/rerun-failed-ci

@ispobock

Copy link
Copy Markdown
Collaborator Author

/rerun-test registered/unit/server_args/test_server_args.py registered/unit/layers/moe/test_mega_moe_decode_capacity.py registered/unit/layers/moe/test_mega_moe_deepgemm_api.py registered/unit/layers/quantization/test_modelopt_nvfp4_moe_dispatch.py registered/unit/layers/quantization/test_modelopt_nvfp4_moe_scales.py registered/unit/layers/quantization/test_mxfp4_sm100_trtllm_gen.py registered/unit/layers/quantization/test_compressed_tensors_fp4_schemes.py registered/unit/layers/moe/test_standard_dispatcher.py registered/unit/layers/quantization/test_flashinfer_trtllm_fp8_fallback.py registered/unit/configs/test_model_config.py registered/unit/model_loader/test_modelopt_loader.py registered/unit/model_executor/runner/test_dsv41_draft_metadata_glue.py registered/cuda_graph/breakable/test_deepseek_dual_stream_outputs.py

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🚀 ubuntu-latest (10 tests): ✅ View workflow run

cd test/ && python3 registered/unit/server_args/test_server_args.py
cd test/ && python3 registered/unit/layers/moe/test_mega_moe_decode_capacity.py
cd test/ && python3 registered/unit/layers/moe/test_mega_moe_deepgemm_api.py
cd test/ && python3 registered/unit/layers/quantization/test_modelopt_nvfp4_moe_dispatch.py
cd test/ && python3 registered/unit/layers/quantization/test_modelopt_nvfp4_moe_scales.py
cd test/ && python3 registered/unit/layers/quantization/test_compressed_tensors_fp4_schemes.py
cd test/ && python3 registered/unit/layers/moe/test_standard_dispatcher.py
cd test/ && python3 registered/unit/layers/quantization/test_flashinfer_trtllm_fp8_fallback.py
cd test/ && python3 registered/unit/configs/test_model_config.py
cd test/ && python3 registered/unit/model_executor/runner/test_dsv41_draft_metadata_glue.py

🚀 4-gpu-b200 (1 test): ✅ View workflow run

cd test/ && python3 registered/unit/layers/quantization/test_mxfp4_sm100_trtllm_gen.py

🚀 1-gpu-5090 (2 tests): ✅ View workflow run

cd test/ && python3 registered/unit/model_loader/test_modelopt_loader.py
cd test/ && python3 registered/cuda_graph/breakable/test_deepseek_dual_stream_outputs.py

@ispobock

Copy link
Copy Markdown
Collaborator Author

/rerun-test registered/unit/disaggregation/test_kv_events.py

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/unit/disaggregation/test_kv_events.py

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

Labels

blackwell SM100/SM120 bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant