Views
No views yet
nvidia/MiniMax-M2.7-NVFP4 (experts-only NVFP4), produced with TensorRT Model Optimizer 0.44.0| Method | PTQ, NVFP4 (FP4 weights+activations, FP8 per-16 block scales + FP32 global) |
| Tool | nvidia-modelopt 0.44.0, transformers main (native minimax_m3_vl) |
| Calibration | 512 samples × 2048 tokens: cnn_dailymail + nvidia/OpenCodeReasoning + nvidia/OpenMathReasoning |
| Quantized | routed experts (w1/w2/w3) + shared experts, all 57 MoE layers |
| Excluded | attention (incl. MSA indexer), router/gate, embeddings, lm_head, vision tower, projectors |
| KV cache | not quantized (v1; MSA is young in engines — don't stack experiments) |
| Task | MXFP8 (official) | NVFP4 (this repo) |
|---|---|---|
| GSM8K (5-shot, strict) | 93.93 | 92.57 |
| GPQA diamond (CoT zero-shot) | 76.26 | 69.70 |
| MMLU (flan CoT few-shot, 25% sample) | 77.36 | 74.16 |
swiglu_alpha=1.702, swiglu_limit=7.0, +1 beta — same family as GPT-OSS). Without the patch the model loads but generates garbage. The patched files ship in this repo under sglang_patch/ (upstream PR pending; the second file makes the unsupported flashinfer-trtllm MoE backend fail fast instead of producing garbage).1docker run --runtime=nvidia --gpus '"device=0,1"' --ipc=host --shm-size 32g \
2 -v $MODEL_DIR:/model \
3 -v $MODEL_DIR/sglang_patch/modelopt_quant.py:/sgl-workspace/sglang/python/sglang/srt/layers/quantization/modelopt_quant.py:ro \
4 -v $MODEL_DIR/sglang_patch/flashinfer_trtllm.py:/sgl-workspace/sglang/python/sglang/srt/layers/moe/moe_runner/flashinfer_trtllm.py:ro \
5 -p 30014:30014 lmsysorg/sglang:dev-cu13-minimax-m3 \
6 sglang serve --model-path /model --tp 2 \
7 --quantization modelopt_fp4 \
8 --attention-backend fa4 --page-size 128 \
9 --moe-runner-backend flashinfer_cutlass \
10 --context-length 131072 --mem-fraction-static 0.90 \
11 --reasoning-parser auto --tool-call-parser auto \
12 --trust-remote-code --host 0.0.0.0 --port 30014--page-size 128 is mandatory (MSA indexing). Sampling: temperature 1.0, top-p 0.95, top-k 40.--moe-runner-backend flashinfer_cutlass is the only supported MoE backend: the flashinfer-trtllm FP4 kernels cannot run M3's parameterized clamped swiglu (they ignore gemm1_alpha/gemm1_beta; the patched code fails fast with a clear error instead of generating garbage).MiniMaxAI/MiniMax-M3 (revision 3a41b31) on 8× NVIDIA B300. During bring-up, two upstream gaps were found and fixed: modelopt's fused-experts detector did not recognize M3's _apply_gate expert module (experts silently skipped — PR pending), and SGLang's NVFP4 cutlass MoE path dropped custom swiglu parameters (PR pending).