-
Notifications
You must be signed in to change notification settings - Fork 181
[NV] Add MiniMax-M2.5 FP4 GB300 Dynamo vLLM recipes #1641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jasonlizhengjian
wants to merge
4
commits into
main
Choose a base branch
from
nv/jasonli/minimaxm2.5-fp4-gb300-only
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,032
−2
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ac23274
Add MiniMax-M2.5 FP4 GB300 Dynamo vLLM recipes
jasonlizhengjian 97fbd88
fix: pin minimax gb300 sweep to nv runners
jasonlizhengjian 45759a7
Fix GB300 eval artifact copy
jasonlizhengjian 66b7e04
Merge remote-tracking branch 'inferencex/main' into merge-gb300-fp4-p…
jasonlizhengjian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m2.5/1k1k/dep2-2p3d-c6144.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: "minimax-m2.5-vllm-disagg-gb300-decode-2p3xdep2-c6144" | ||
|
|
||
| model: | ||
| path: "minimax-m2.5-nvfp4" | ||
| container: "vllm/vllm-openai:v0.20.1" | ||
| precision: "fp4" | ||
|
|
||
| dynamo: | ||
| install: true | ||
| wheel: "1.2.0.dev20260526" | ||
|
|
||
| setup_script: install-deps.sh | ||
|
|
||
| resources: | ||
| gpu_type: "gb300" | ||
| gpus_per_node: 4 | ||
| prefill_nodes: 2 | ||
| decode_nodes: 3 | ||
| prefill_workers: 2 | ||
| decode_workers: 3 | ||
| gpus_per_prefill: 1 | ||
| gpus_per_decode: 2 | ||
| spread_workers: true | ||
|
|
||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
|
|
||
| backend: | ||
| type: vllm | ||
| connector: null | ||
|
|
||
| prefill_environment: | ||
| VLLM_ENGINE_READY_TIMEOUT_S: "3600" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
| UCX_TLS: "cuda_copy,rc" | ||
|
|
||
| decode_environment: | ||
| VLLM_ENGINE_READY_TIMEOUT_S: "3600" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
| UCX_TLS: "cuda_copy,rc" | ||
|
|
||
| vllm_config: | ||
| prefill: | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| kv-cache-dtype: "fp8" | ||
| trust-remote-code: true | ||
| no-enable-prefix-caching: true | ||
| max-model-len: 2048 | ||
| max-cudagraph-capture-size: 2048 | ||
| max-num-batched-tokens: 2048 | ||
| stream-interval: 128 | ||
|
|
||
| decode: | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| kv-cache-dtype: "fp8" | ||
| data-parallel-size: 2 | ||
| data-parallel-rpc-port: 13345 | ||
| enable-expert-parallel: true | ||
| no-enable-prefix-caching: true | ||
| max-model-len: 2048 | ||
| max-cudagraph-capture-size: 2048 | ||
| max-num-batched-tokens: 2048 | ||
| max-num-seqs: 864 | ||
| gpu-memory-utilization: 0.90 | ||
| stream-interval: 128 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1024 | ||
| osl: 1024 | ||
| concurrencies: "6144x8192" | ||
| random_range_ratio: 0.8 |
73 changes: 73 additions & 0 deletions
73
benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m2.5/1k1k/dep2-2p3d.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: "minimax-m2.5-vllm-disagg-gb300-decode-2p3xdep2" | ||
|
|
||
| model: | ||
| path: "minimax-m2.5-nvfp4" | ||
| container: "vllm/vllm-openai:v0.20.1" | ||
| precision: "fp4" | ||
|
|
||
| dynamo: | ||
| install: true | ||
| wheel: "1.2.0.dev20260526" | ||
|
|
||
| setup_script: install-deps.sh | ||
|
|
||
| resources: | ||
| gpu_type: "gb300" | ||
| gpus_per_node: 4 | ||
| prefill_nodes: 2 | ||
| decode_nodes: 3 | ||
| prefill_workers: 2 | ||
| decode_workers: 3 | ||
| gpus_per_prefill: 1 | ||
| gpus_per_decode: 2 | ||
| spread_workers: true | ||
|
|
||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
|
|
||
| backend: | ||
| type: vllm | ||
| connector: null | ||
|
|
||
| prefill_environment: | ||
| VLLM_ENGINE_READY_TIMEOUT_S: "3600" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
| UCX_TLS: "cuda_copy,rc" | ||
|
|
||
| decode_environment: | ||
| VLLM_ENGINE_READY_TIMEOUT_S: "3600" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
| UCX_TLS: "cuda_copy,rc" | ||
|
|
||
| vllm_config: | ||
| prefill: | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| kv-cache-dtype: "fp8" | ||
| trust-remote-code: true | ||
| no-enable-prefix-caching: true | ||
| max-model-len: 2048 | ||
| max-cudagraph-capture-size: 2048 | ||
| max-num-batched-tokens: 2048 | ||
| stream-interval: 32 | ||
|
|
||
| decode: | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| kv-cache-dtype: "fp8" | ||
| data-parallel-size: 2 | ||
| data-parallel-rpc-port: 13345 | ||
| enable-expert-parallel: true | ||
| no-enable-prefix-caching: true | ||
| max-model-len: 2048 | ||
| max-cudagraph-capture-size: 2048 | ||
| max-num-batched-tokens: 2048 | ||
| max-num-seqs: 864 | ||
| gpu-memory-utilization: 0.90 | ||
| stream-interval: 32 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1024 | ||
| osl: 1024 | ||
| concurrencies: "2048" | ||
| random_range_ratio: 0.8 | ||
70 changes: 70 additions & 0 deletions
70
benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m2.5/1k1k/dep8-2p1d.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| name: "minimax-m2.5-vllm-disagg-gb300-decode-2p1xdep8" | ||
|
|
||
| model: | ||
| path: "minimax-m2.5-nvfp4" | ||
| container: "vllm/vllm-openai:v0.20.1" | ||
| precision: "fp4" | ||
|
|
||
| dynamo: | ||
| install: true | ||
| wheel: "1.2.0.dev20260526" | ||
|
|
||
| setup_script: install-deps.sh | ||
|
|
||
| resources: | ||
| gpu_type: "gb300" | ||
| gpus_per_node: 4 | ||
| prefill_nodes: 1 | ||
| decode_nodes: 2 | ||
| prefill_workers: 2 | ||
| decode_workers: 1 | ||
| gpus_per_prefill: 1 | ||
| gpus_per_decode: 8 | ||
|
|
||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
|
|
||
| backend: | ||
| type: vllm | ||
| connector: null | ||
|
|
||
| prefill_environment: | ||
| VLLM_ENGINE_READY_TIMEOUT_S: "3600" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
|
|
||
| decode_environment: | ||
| VLLM_ENGINE_READY_TIMEOUT_S: "3600" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
|
|
||
| vllm_config: | ||
| prefill: | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| kv-cache-dtype: "fp8" | ||
| trust-remote-code: true | ||
| no-enable-prefix-caching: true | ||
| max-model-len: 2048 | ||
| max-cudagraph-capture-size: 2048 | ||
| max-num-batched-tokens: 2048 | ||
| stream-interval: 128 | ||
|
|
||
| decode: | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| kv-cache-dtype: "fp8" | ||
| data-parallel-size: 8 | ||
| data-parallel-rpc-port: 13345 | ||
| enable-expert-parallel: true | ||
| no-enable-prefix-caching: true | ||
| max-model-len: 2048 | ||
| max-cudagraph-capture-size: 2048 | ||
| max-num-batched-tokens: 2048 | ||
| max-num-seqs: 864 | ||
| gpu-memory-utilization: 0.90 | ||
| stream-interval: 128 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1024 | ||
| osl: 1024 | ||
| concurrencies: "1024x2048x4096" | ||
| random_range_ratio: 0.8 |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 All 12 new MiniMax-M2.5 recipes set
trust-remote-code: trueonly in the prefillvllm_configblock — the decode block is missing it. Since MiniMax-M2.5 ships custom HuggingFace modeling code and decode workers independently load the model, every decode engine will fail at startup with the HFtrust_remote_code=Truerequired error, blocking all 12 recipes from reaching a ready state. Addtrust-remote-code: trueunder eachdecode:block (the dsv4 reference recipes already do this — seebenchmarks/multi_node/srt-slurm-recipes/vllm/deepseek-v4/8k1k/disagg-gb300-1p6d-dep4-tp4.yamllines 75 and 94).Extended reasoning...
What's wrong
Every one of the 12 new MiniMax-M2.5 recipes added under
benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m2.5/setstrust-remote-code: truein theprefillblock ofvllm_configbut not in thedecodeblock. Verified by counting occurrences in each file — every recipe yields exactly 1 match, all in the prefill block:The reference dsv4 disagg recipe
benchmarks/multi_node/srt-slurm-recipes/vllm/deepseek-v4/8k1k/disagg-gb300-1p6d-dep4-tp4.yamlsetstrust-remote-code: truein both prefill (line 75) and decode (line 94) — that is the deliberate, established convention in this directory tree for models that need it.Why it manifests
The
vllm_config.prefillandvllm_config.decodeblocks are passed as independent CLI argument sets to two separate vLLM engine processes — one for each worker role. There is no inheritance: every other flag (kv-transfer-config,kv-cache-dtype,no-enable-prefix-caching,max-model-len,max-cudagraph-capture-size,max-num-batched-tokens,stream-interval) is explicitly repeated in both blocks in every minimax recipe, confirming the author knows the blocks don't inherit.Decode workers each spin up their own vLLM engine that independently calls HuggingFace's
AutoModelForCausalLM.from_pretrained(...)onnvidia/MiniMax-M2.5-NVFP4. MiniMax-M2.5 ships custom modeling code (modeling_minimax.py/configuration_minimax.py), so HF refuses to load it withouttrust_remote_code=Trueand raises:This fires at engine startup, before any inference happens, so the decode engine never reaches a ready state and the disaggregated job hangs indefinitely waiting for decode readiness.
Why this is provably a bug
The asymmetry cannot be intentional:
trust_remote_code, then the prefill setting in all 12 recipes is dead config — and the author wouldn't have added it.Both branches make the decode omission a bug. The existing in-repo launcher
experimental/token_position_decode_slo/minimax-m2.5/serve_minimax_tep8_sbatch.sh(line 49) passes--trust-remote-codeto vLLM, further confirming the model requires it. There is also no global default inrunners/launch_gb300-nv.shthat injects--trust-remote-codefor decode workers.Impact
All 12 recipes — driving the entire new
minimaxm2.5-fp4-gb300-dynamo-vllmconfig in.github/configs/nvidia-master.yaml(1k/1k and 8k/1k sweeps across TP4, TP4+EP, DEP2, DEP8, and multi-decode layouts) — will fail to start. No benchmark numbers will be produced for this entire config until the fix lands.Step-by-step proof (worked example:
1k1k/dep2-2p3d.yaml)conc-list: [2048]entry innvidia-master.yamlwhoseadditional-settingspoints torecipes/vllm/minimax-m2.5/1k1k/dep2-2p3d.yaml.srtctl applyreads that file; the YAML'svllm_config.prefillincludestrust-remote-code: true, butvllm_config.decode(lines 60–73 in the new file) does not.vllm serve nvidia/MiniMax-M2.5-NVFP4 --kv-transfer-config ... --kv-cache-dtype fp8 --data-parallel-size 2 ... --no-enable-prefix-caching ...— without--trust-remote-code.AutoConfig.from_pretrained('nvidia/MiniMax-M2.5-NVFP4', trust_remote_code=False). Because the repo ships customconfiguration_minimax.py, HF raisesValueError: The repository for nvidia/MiniMax-M2.5-NVFP4 contains custom code which must be executed to correctly load the model. ... passtrust_remote_code=Trueto remove this error.VLLM_ENGINE_READY_TIMEOUT_S=3600fires after an hour and the SLURM job is killed with no useful output.Fix
Add
trust-remote-code: trueto thedecode:block of every recipe underbenchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m2.5/(12 files total):This mirrors the dsv4 pattern at
benchmarks/multi_node/srt-slurm-recipes/vllm/deepseek-v4/8k1k/disagg-gb300-1p6d-dep4-tp4.yamlline 94.