Repository navigation
[Klaud Cold] minimaxm31flash-fp4-b300-sglang-agentic-dspark: day-zero MiniMax-M3.1-Flash B300 SGLang recipe #4441
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
802bc87
minimaxm31flash-fp4-b300-sglang-agentic-dspark: day-zero MiniMax-M3.1…
Oseltamivir 0b1a32b
perf-changelog: fill minimaxm31flash-fp4-b300-sglang-agentic-dspark p…
Oseltamivir e9fc47b
Merge origin/main into minimaxm31flash B300 SGLang
Oseltamivir 3b94819
Merge branch 'main' into feat/minimaxm31flash-b300-sglang
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
191 changes: 191 additions & 0 deletions
191
...benchmarks/single_node/srt-slurm-recipes/minimaxm31flash/sglang/b300-fp4-mtp/agentic.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,191 @@ | ||
| base: | ||
| schema: 2 | ||
| name: minimaxm31flash-fp4-b300-sglang-agentic | ||
| resources: | ||
| gpu_type: b300 | ||
| gpus_per_node: 8 | ||
| frontend: | ||
| type: sglang | ||
| enable_multiple_frontends: false | ||
| observability: | ||
| enabled: false | ||
| tachometer: | ||
| enabled: false | ||
| engine: sglang | ||
| # Cold loads of the 250 GB checkpoint plus JIT MSA kernel builds and graph capture outlast the default. | ||
| health_check: | ||
| max_attempts: 1440 | ||
| interval_seconds: 5 | ||
| roles: | ||
| agg: | ||
| nodes: 1 | ||
| workers: 1 | ||
| gpus: 4 | ||
| # Serve flags follow the cookbook's B300 cells at | ||
| # https://docs.sglang.io/cookbook/autoregressive/MiniMax/MiniMax-M3.1. | ||
| args: | ||
| served-model-name: MiniMaxAI/MiniMax-M3.1-Flash | ||
| trust-remote-code: true | ||
| reasoning-parser: minimax-m3 | ||
| tool-call-parser: minimax-m3 | ||
| # Seven-token DSpark, the bundled draft's dspark_block_size. Throughput runs | ||
| # switch to synthetic acceptance at the golden acceptance length. | ||
| speculative-algorithm: DSPARK | ||
| speculative-dspark-block-size: 7 | ||
| speculative-use-block-verification: true | ||
| cuda-graph-backend-prefill: breakable | ||
| tokenizer-worker-num: 8 | ||
| watchdog-timeout: 3600 | ||
| enable-metrics: true | ||
| env: | ||
| PYTHONNOUSERSITE: '1' | ||
| PYTHONUNBUFFERED: '1' | ||
| SGLANG_TIMEOUT_KEEP_ALIVE: '1800' | ||
| FMHA_SM100_ALLOW_JIT: '1' | ||
| benchmark: | ||
| env: | ||
| # Warmup can leave bytes unacknowledged past AIPerf's 30 s default. | ||
| AIPERF_HTTP_TCP_USER_TIMEOUT: '900000' | ||
| AIPERF_REQUIRED_SERVER_METRIC_PREFIX: 'sglang:' | ||
|
|
||
| # TP4 Balanced cell (TRT-LLM routed MoE). The scheduler batch is 2x CONC (AgentX | ||
| # subagent fan-out), capped at the cookbook's 128; the decode graph batch matches it. | ||
|
|
||
| override_tp4_c1: | ||
| roles: | ||
| agg: | ||
| args: | ||
| tensor-parallel-size: 4 | ||
| moe-runner-backend: flashinfer_trtllm_routed | ||
| chunked-prefill-size: 32768 | ||
| max-running-requests: 2 | ||
| cuda-graph-max-bs-decode: 2 | ||
| mem-fraction-static: 0.8 | ||
| benchmark: | ||
| env: | ||
| CONC: '1' | ||
| KV_OFFLOADING: none | ||
|
|
||
| override_tp4_c4: | ||
| roles: | ||
| agg: | ||
| args: | ||
| tensor-parallel-size: 4 | ||
| moe-runner-backend: flashinfer_trtllm_routed | ||
| chunked-prefill-size: 32768 | ||
| max-running-requests: 8 | ||
| cuda-graph-max-bs-decode: 8 | ||
| mem-fraction-static: 0.8 | ||
| benchmark: | ||
| env: | ||
| CONC: '4' | ||
| KV_OFFLOADING: none | ||
|
|
||
| override_tp4_c8: | ||
| roles: | ||
| agg: | ||
| args: | ||
| tensor-parallel-size: 4 | ||
| moe-runner-backend: flashinfer_trtllm_routed | ||
| chunked-prefill-size: 32768 | ||
| max-running-requests: 16 | ||
| cuda-graph-max-bs-decode: 16 | ||
| mem-fraction-static: 0.8 | ||
| benchmark: | ||
| env: | ||
| CONC: '8' | ||
| KV_OFFLOADING: none | ||
|
|
||
| override_tp4_c16: | ||
| roles: | ||
| agg: | ||
| args: | ||
| tensor-parallel-size: 4 | ||
| moe-runner-backend: flashinfer_trtllm_routed | ||
| chunked-prefill-size: 32768 | ||
| max-running-requests: 32 | ||
| cuda-graph-max-bs-decode: 32 | ||
| mem-fraction-static: 0.8 | ||
| benchmark: | ||
| env: | ||
| CONC: '16' | ||
| KV_OFFLOADING: none | ||
|
|
||
| override_tp4_c32: | ||
| roles: | ||
| agg: | ||
| args: | ||
| tensor-parallel-size: 4 | ||
| moe-runner-backend: flashinfer_trtllm_routed | ||
| chunked-prefill-size: 32768 | ||
| max-running-requests: 64 | ||
| cuda-graph-max-bs-decode: 64 | ||
| mem-fraction-static: 0.8 | ||
| benchmark: | ||
| env: | ||
| CONC: '32' | ||
| KV_OFFLOADING: none | ||
|
|
||
| # High-Throughput cell: TP8 with attention DP2 and EP8 (MegaMoE). The scheduler | ||
| # batch is 2x CONC up to the cookbook's 256, and each of the two attention-DP | ||
| # ranks captures decode graphs for half of it. | ||
|
|
||
| override_tp8_ep8_c64: | ||
| roles: | ||
| agg: | ||
| gpus: 8 | ||
| args: | ||
| tensor-parallel-size: 8 | ||
| attn-dp-size: 2 | ||
| enable-dp-lm-head: true | ||
| expert-parallel-size: 8 | ||
| chunked-prefill-size: 65536 | ||
| max-running-requests: 128 | ||
| cuda-graph-max-bs-decode: 64 | ||
| mem-fraction-static: 0.8 | ||
| env: | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: '32768' | ||
| benchmark: | ||
| env: | ||
| CONC: '64' | ||
| KV_OFFLOADING: none | ||
|
|
||
| override_tp8_ep8_c128: | ||
| roles: | ||
| agg: | ||
| gpus: 8 | ||
| args: | ||
| tensor-parallel-size: 8 | ||
| attn-dp-size: 2 | ||
| enable-dp-lm-head: true | ||
| expert-parallel-size: 8 | ||
| chunked-prefill-size: 65536 | ||
| max-running-requests: 256 | ||
| cuda-graph-max-bs-decode: 128 | ||
| mem-fraction-static: 0.8 | ||
| env: | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: '32768' | ||
| benchmark: | ||
| env: | ||
| CONC: '128' | ||
| KV_OFFLOADING: none | ||
|
|
||
| override_tp8_ep8_c256: | ||
| roles: | ||
| agg: | ||
| gpus: 8 | ||
| args: | ||
| tensor-parallel-size: 8 | ||
| attn-dp-size: 2 | ||
| enable-dp-lm-head: true | ||
| expert-parallel-size: 8 | ||
| chunked-prefill-size: 65536 | ||
| max-running-requests: 256 | ||
| cuda-graph-max-bs-decode: 128 | ||
| mem-fraction-static: 0.8 | ||
| env: | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: '32768' | ||
| benchmark: | ||
| env: | ||
| CONC: '256' | ||
| KV_OFFLOADING: none |
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
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
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.
🟡 nit (optional): The new config and recipe add header and provenance comments, which the mandatory comment rules in AGENTS.md:64-65 forbid. sweep:
^# (MiniMax-M3.1-Flash AgentX|TP4 Balanced cell|High-Throughput cell)|# Serve flags follow the cookbookFor example, nvidia-master.yaml:9362-9367 describes the config and says "manifest digest verified 2026-10-24". It is also dated a day after the PR was opened. Fix: delete these block, section and provenance comments. Keep only short per-line technical reasons, such as the dp-attn note. The cookbook URL and verification details already live in the perf-changelog entry.Why this was flagged
AGENTS.md:62-66 says the comment rules cover every file, recipes and configs included. It bans comments above a recipe, override or section, and comments that describe the config. It also bans comments saying where something came from. The diff adds a 6-line block above
minimaxm31flash-fp4-b300-sglang-agentic-dspark(nvidia-master.yaml:9362-9367) that describes the topology and records provenance ("day-zero image from the SGLang cookbook", "manifest digest verified 2026-10-24"). The recipe adds section comments above the override groups (agentic.yaml:51-52 and 129-131) and a cookbook-source comment (agentic.yaml:24-25). Reviewers and the CODEOWNER checklist have to flag these, and the comments are new rule violations that the base does not have. The verification date in the master config is after the PR's open date (2026-10-23), so that provenance claim is also unreliable.Verification: nit: this happens on every merge of these files as written. AGENTS.md "Code comments (mandatory)" says "No header comments" and "No history". The diff adds a 6-line block right above
minimaxm31flash-fp4-b300-sglang-agentic-dspark:in nvidia-master.yaml that describes the config and its provenance. The recipe adds the same kind of comments. Nothing breaks at runtime.