-
Notifications
You must be signed in to change notification settings - Fork 208
Add MiniMax-M3 NVFP4 B300 Dynamo vLLM benchmarks #1931
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
Oseltamivir
wants to merge
5
commits into
main
Choose a base branch
from
feat/minimaxm3-nvfp4-b300-dynamo-vllm
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.
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9bacb24
feat: add MiniMax-M3 NVFP4 B300 Dynamo vLLM
Oseltamivir 75f3c54
chore: link PR 1931 in performance changelog
Oseltamivir ab22a90
fix: disable FlashInfer autotune for MiniMax-M3 B300
Oseltamivir 0297969
fix: use updated MiniMax-M3 NVFP4 image
Oseltamivir 8602631
Merge remote-tracking branch 'origin/main' into feat/minimaxm3-nvfp4-…
Oseltamivir 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
35 changes: 35 additions & 0 deletions
35
benchmarks/multi_node/srt-slurm-recipes/configs/minimax-m3-nvfp4-vllm-fixes.sh
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,35 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| # MiniMax-M3 ModelOpt NVFP4 support from vllm-project/vllm#46380. | ||
| VLLM_NVFP4_COMMIT="6c08558112acd2fd8b4bfc270104d556eb77f9bf" | ||
| VLLM_ROOT="$(python3 -c 'import os, vllm; print(os.path.dirname(vllm.__file__))')" | ||
| for file in \ | ||
| model_executor/layers/fused_moe/experts/trtllm_nvfp4_moe.py \ | ||
| model_executor/layers/quantization/modelopt.py \ | ||
| model_executor/layers/quantization/utils/flashinfer_utils.py | ||
| do | ||
| curl -fsSL \ | ||
| "https://raw.githubusercontent.com/vllm-project/vllm/${VLLM_NVFP4_COMMIT}/vllm/${file}" \ | ||
| -o "${VLLM_ROOT}/${file}" | ||
| done | ||
|
|
||
| python3 - <<'PYEOF' | ||
| from importlib.util import find_spec | ||
| from pathlib import Path | ||
|
|
||
| spec = find_spec("vllm") | ||
| if not spec or not spec.origin: | ||
| raise RuntimeError("vllm is not installed") | ||
| path = Path(spec.origin).parent / "models/minimax_m3/nvidia/sparse_attention_msa.py" | ||
| source = path.read_text() | ||
| old = " prefill_topk = topk[:, nd:num_tokens, :]\n" | ||
| new = " prefill_topk = topk[:, nd:num_tokens, :].contiguous()\n" | ||
| if new not in source: | ||
| if source.count(old) != 1: | ||
| raise RuntimeError(f"missing or ambiguous patch anchor in {path}") | ||
| path.write_text(source.replace(old, new, 1)) | ||
| PYEOF | ||
|
|
||
| python3 -c \ | ||
| "from vllm.model_executor.layers.fused_moe.experts.trtllm_nvfp4_moe import TrtLlmNvFp4ExpertsModular; print('[nvfp4-patch] OK')" | ||
79 changes: 79 additions & 0 deletions
79
...marks/multi_node/srt-slurm-recipes/vllm/minimax-m3/b300-fp4/1k1k/1p1d-dep2-tep8-1k1k.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,79 @@ | ||
| name: "minimax-m3-vllm-disagg-b300-1p1d-fp4-dep2-tep8-1k1k" | ||
|
|
||
| model: | ||
| path: "nvidia/MiniMax-M3-NVFP4" | ||
| container: "vllm/vllm-openai:vllm-minimax-m3-perf-x86_64-13.0.1-7a67223" | ||
| precision: "fp4" | ||
|
|
||
| resources: | ||
| gpu_type: "b300" | ||
| gpus_per_node: 8 | ||
| prefill_nodes: 1 | ||
| decode_nodes: 1 | ||
| prefill_workers: 1 | ||
| decode_workers: 1 | ||
| gpus_per_prefill: 2 | ||
| gpus_per_decode: 8 | ||
|
|
||
| dynamo: | ||
| install: true | ||
| version: 1.3.0.dev20260614 | ||
|
|
||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
|
|
||
| backend: | ||
| type: vllm | ||
| connector: null | ||
|
|
||
| prefill_environment: | ||
| UCX_TLS: "cuda_copy,rc" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
|
|
||
| decode_environment: | ||
| UCX_TLS: "cuda_copy,rc" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
|
|
||
| vllm_config: | ||
| prefill: | ||
| tensor-parallel-size: 1 | ||
| data-parallel-size: 2 | ||
| data-parallel-rpc-port: 13345 | ||
| enable-expert-parallel: true | ||
| trust-remote-code: true | ||
| no-enable-prefix-caching: true | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| block-size: 128 | ||
| gpu-memory-utilization: 0.90 | ||
| max-model-len: 2304 | ||
| language-model-only: true | ||
| stream-interval: 32 | ||
| max-cudagraph-capture-size: 2048 | ||
| max-num-batched-tokens: 2048 | ||
|
|
||
| decode: | ||
| tensor-parallel-size: 8 | ||
| enable-expert-parallel: true | ||
| trust-remote-code: true | ||
| no-enable-prefix-caching: true | ||
| kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' | ||
| block-size: 128 | ||
| gpu-memory-utilization: 0.90 | ||
| max-model-len: 2304 | ||
| language-model-only: true | ||
| stream-interval: 32 | ||
| max-num-seqs: 4096 | ||
| max-num-batched-tokens: 16384 | ||
| max-cudagraph-capture-size: 8192 | ||
|
|
||
| health_check: | ||
| max_attempts: 360 | ||
| interval_seconds: 10 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1024 | ||
| osl: 1024 | ||
| concurrencies: "4x16x64x128x4096" | ||
| req_rate: "inf" |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.