Use latest configs for MiniMax M3.1 B300 AgentX / 更新 MiniMax M3.1 B300 AgentX 配置 #4467
<!-- recipe-reminder -->
Thanks for the contribution!
@SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.<details>
<summary>中文</summary>
感谢你的贡献!
@SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。</details>
🟡 (optional) B300 MiniMax M3.1 Flash results can come from a different vLLM build than the sibling rows, and can change silently between reruns. The new entry uses the bare tag vllm/vllm-openai:minimax-m31-flash. Every other x86 entry on that same day-zero tag pins @ sha256:86f582dae25ea92802353727164ae4eb03b37b18baf9119b805ffaec2a7ef07c. Fix: pin the image by digest, either the same sha256 the h100/h200/b200 rows use or the digest this config was actually validated on, so B300 runs the exact build it was tuned against.
<details>
<summary>Why this was flagged</summary>
The new key minimaxm31flash-fp4-b300-vllm-agentic-dspark sets image: vllm/vllm-openai:minimax-m31-flash at nvidia-master.yaml:5601 with no digest. The binder copies IMAGE from the master config into model.container (workload.py bind_workload), so each run pulls whatever the mutable tag points to at launch time. The sibling vLLM entries for the same model on h100, h200 and b200 (nvidia-master.yaml:5281, 5304, 5621) all pin this tag to sha256:86f582dae25e…. That shows the tag was deliberately frozen at a verified build. If upstream re-pushes the day-zero tag, the B300 sweep and later reruns use a different vLLM than the one these engine args were tuned for. The FLASHINFER_TS DSpark backend and the SimpleCPUOffloadConnector cpu_bytes_to_use settings depend on that build. Those B300 numbers are then not comparable with the other GPUs and can regress or fail to launch with nothing in the repo changing. No validation rejects unpinned images, so nothing catches this.
Verification: Trigger: the vllm/vllm-openai:minimax-m31-flash tag gets re-pushed after this config was validated. The new entry at nvidia-master.yaml:5601 is image: vllm/vllm-openai:minimax-m31-flash with no digest. Every other entry on that x86 tag is pinned: h100 (5281), h200 (5304) and b200 (5621). If the tag moves, B300 runs pull a different vLLM build than the sibling rows, and nothing records it.
</details>
<!-- bhfn:1:nit -->
🟡 (optional) The B300 DRAM-offload points can publish a CPU-DRAM allocation that differs from the vLLM offload budget without failing. The B200 sibling would stop that. No variant declares KV_OFFLOADING or TOTAL_CPU_DRAM_GB in benchmark.env, so validate_recipe (single_node.py:144) skips both checks. Fix: give each variant its KV_OFFLOADING (none for zip_override_tp4, dram for the four DRAM overrides). Also give each DRAM override a TOTAL_CPU_DRAM_GB equal to its cpu_bytes_to_use, as the B200 recipe does: '1499' for the TP4 ones, '749' for the TP2 ones.
<details>
<summary>Why this was flagged</summary>
select_recipe checks CONC, KV_OFFLOADING and TOTAL_CPU_DRAM_GB against the matrix point, but only for names the variant declares (single_node.py:144-146). The B200 sibling declares all three (b200-fp4-mtp/agentic.yaml:63, :81-82), so a mismatch fails at prepare. The new recipe declares only CONC. Its cpu_bytes_to_use literals (1499000000000 at agg-variants.yaml:75 and :109, 749000000000 at :87 and :99) equal today's share: min(3_976_192, MAX_AGENTIC_AVAILABLE_CPU_DRAM_MIB=2_861_022) MiB × dram-utilization: 1.0 × gpus/8 (generate.py:428-439). If that cap, the b300-dsxe DRAM figure or the master dram-utilization changes, the matrix total-cpu-dram-gb moves while vLLM keeps the old budget. Results still record allocated_cpu_dram_gb from TOTAL_CPU_DRAM_GB (results/agentic/__init__.py:192). The kv-offloading: none row uses the bare bundle (nvidia-master.yaml:5612), so it matches variants on CONC alone. A DRAM override that later shares a CONC of 1, 4, 8 or 16 makes that row fail with two matches instead of being filtered out.
Verification: In single_node.py:144-146, validate_recipe only compares CONC, KV_OFFLOADING and TOTAL_CPU_DRAM_GB when the name is present in benchmark.env. Every variant in the new agg-variants.yaml declares only CONC under benchmark.env. Today the values agree. A later edit to the DRAM knob would publish an allocation that differs from the real offload budget, and nothing would fail.
</details>
<!-- bhfn:1:nit -->
Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.
<!-- bhrv:cbac46b381816b12 -->
<!-- inferencex-unofficial-run-visualizer -->
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=40340506758
View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=40340506758
/use 40340506758
@xinli-sw staged run 40340506758.
This run remains available across future /stage-results requests. Staging the same run ID again updates its staged data. Staging workflow
/use 40340506758
[by Claude Code]
As a PR reviewer and CODEOWNER, I have reviewed this and have:
SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.- [x] I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source repo and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
<PR_NUMBER>.md — named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section.append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it.Additional detail section:
4d58756a439a6c7be49793259d0d21f495d1fdb3 (policy checked at InferenceX main @ 9b45b789). Config minimaxm31flash-fp4-b300-vllm-agentic-dspark (single-node vLLM on cluster:b300-dsxe, image vllm/vllm-openai:minimax-m31-flash@sha256:86f582da…, unchanged by this PR). The sweep ran on 615ee422; the only later commit, 4d58756a, appends description lines to this PR's perf-changelog entry (no config, recipe or matrix change; validate_perf_changelog passes).pull_request on 615ee422, final attempt 3, success). All 13 benchmark points succeeded: TP4 GPU-resident c1/c4/c8/c16/c32, TP4 host-DRAM (SimpleCPUOffloadConnector) c24/c40/c48/c56, TP2 host-DRAM c24/c32/c40/c48. TP2 c24 failed in attempt 1 (worker hang, RPC call to sample_tokens timed out) and passed in attempt 2; per-point readers use the latest attempt. 0 error-dropped requests on every point. Eval: gsm8k em_strict 0.9651 ± 0.0051 (n=1319) on the selected eval point TP4 DRAM c56, within 2σ of the previous run for this key (run 39904040374: TP4 c32 0.9644, DEP4 c256 0.9689). Eval coverage note: the TP2 lanes use the FLASHINFER_TS draft attention backend while every TP4 lane (including the eval point) uses FLASH_ATTN; no eval runs a TP2 point in this sweep. /use 40340506758 was posted by @xinli-sw and staged.minimaxm31flash_dspark.yaml thinking_on, 7 tokens = 4.04, and the job configs show rejection_sample_method: synthetic with synthetic_acceptance_length: 4.04. The eval-only point uses real block verification./v1/chat/completions.dspark/ subfolder (MiniMaxAI/MiniMax-M3.1-Flash @ 262ae683, DSparkMiniMaxDraftModel, 5 layers). Shipped: quantization_config: mxfp8 (dynamic, block 1x32); the safetensors header stores the decoder linear weights as MXFP8 (35 F8_E4M3 tensors, 1,667M params, with 35 E8M0 U8 scales) and the confidence head, fc and norms as BF16 (27 tensors, 291M params). Pinned-image default (read from vllm/vllm-openai@sha256:86f582da…, amd64, __commit_id__ = g8744dd2fb): _get_minimax_m3_dspark_draft loads the checkpoint's dspark/ subfolder; for DSparkMiniMaxDraftModel the draft keeps its own quantization_config (the target's is copied only when the draft has none); SpeculativeConfig.kv_cache_dtype defaults to None, documented as "the draft inherits the target model's --kv-cache-dtype", and llm_base_proposer.py overrides the draft cache dtype only when it is set. So the baseline is the MXFP8 drafter with nvfp4 draft KV (inherited from the target). Effective (run 40340506758 server logs: TP2 c32 attempt 3, TP4 c1, TP4 c56 eval): Resolved architecture: DSparkMiniMaxDraftModel, engine quantization=mxfp8, dtype=torch.bfloat16, target kv_cache_dtype=nvfp4; the draft loads in a separate 0.7-2 s pass with no quantization step, then Using KV cache scaling factor 1.0 for fp8_e4m3 for the draft cache. The only draft-related submission setting is "kv_cache_dtype": "fp8" in --speculative-config, which is higher precision than the nvfp4 default; there is no draft weight quantization, dtype override or checkpoint substitution. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is SGLang-only and absent.a75277a0 on main, approved by @wzhao18). It adds two opt-in B300 presets to recipes/models/MiniMaxAI/MiniMax-M3.1-Flash.yaml, both pinned to this lane's image and source.revision 615ee422: b300_agentx_tp4 (TP4, --gpu-memory-utilization 0.92, FLASH_ATTN draft attention; GPU-resident points c1/c4/c8/c16/c32 and SimpleCPUOffloadConnector host-DRAM points c24/c40/c48/c56 with cpu_bytes_to_use 1,499 GB and lazy_offload) and b300_agentx_tp2 (TP2, --gpu-memory-utilization 0.9, FLASHINFER_TS, host-DRAM offload with 749 GB at c24/c32/c40/c48), each point with its --max-num-seqs, plus the shared --max-num-batched-tokens 32768, capture-size list up to 8192, --stream-interval 20 and the 600 s keep-alive/chat-template-render timeouts. All 13 rendered points match this PR's effective lane settings, and the TP4 c24 and TP2 c24 renders match the launch commands logged in run 40340506758 (apart from synthetic acceptance). Publication: at the time of this edit recipes.vllm.ai still renders from vLLM main @ 5f1a5641, which predates the merge, so the presets will appear there after the site's next source update. InferenceX-only settings excluded: concurrency lists, synthetic acceptance, AIPerf settings, served-model-name, VLLM_ENGINE_READY_TIMEOUT_S, PYTHONUNBUFFERED, uvicorn access logging, and VLLM_USE_SIMPLE_KV_OFFLOAD (only read for --kv-offloading-backend native; these lanes set the connector explicitly).vllm/vllm-openai image, unchanged. The DEP4 vllm-router.sh setup script is removed; the head recipe has no setup script, patch or pip install.minimaxm31flash agentic coding is active in MODELS.md. No architecture overrides. Not append-only. Dynamo TRT-LLM metrics: N/A (plain vLLM).cpu_bytes_to_use equals the harness allocation for dram-utilization: 1.0 on b300-dsxe (1499 GB for 4 of 8 GPUs, 749 GB for 2 of 8); jobs run node-exclusive (--exclusive, --mem=0).pareto_coverage.py.4d58756a). NVIDIA overview: the NVIDIA LLM Inference Quick Start Recipes overview now lists MiniMax-M3.1-Flash in its Framework Recipes table, with the vLLM cell linking recipes.vllm.ai/MiniMaxAI/MiniMax-M3.1-Flash and the SGLang cell linking the MiniMax-M3.1 cookbook (published 2026-10-27).Signed: Ankur-singh
[by Claude Code]
<!-- codeowner-signoff-verify signoff=issuecomment-6449123962 -->
✅✅✅ Verdict: PASS ✅✅✅
<details>
<summary>Passed and not applicable checks</summary>
✅ Check 0 (CODEOWNER): PASS — Ankur-singh is a listed owner (@ankur-singh) of inferencex-e2e/configs/nvidia-master.yaml and the */b300-/ srt-slurm recipes; perf-changelog.yaml falls under the catch-all only.
✅ Check 1 (In-PR sweep + evals): PASS — In-PR commit 615ee422 has all 13 agentic / benchmark jobs and the agentic eval / job at success in run 40340506758 (attempt 3). The only later commit, 4d58756a, adds description lines to this PR's changelog entry and is non-material (same config key, no recipe, matrix or launch change).
✅ Check 2 (Evals): PASS — gsm8k em_strict 0.9651 ± 0.0051 (n=1319) at TP4 DRAM c56 on the pinned vllm/vllm-openai:minimax-m31-flash@sha256:86f582da… image, gap −0.0008 against the exact-topology cohort (0.9644, run 39904040374) with a 2σ threshold of 0.0144. The eval covers SimpleCPU host-DRAM offload. The TP2 lanes' FLASHINFER_TS draft backend only changes draft proposals, which block verification still checks; that backend is the upstream NVIDIA default and was evaluated on the GB300 TP4 lane at 0.9682 (run 39949684795).
✅ Check 3 (Upstream recipe): PASS — vllm-project/vllm#64108 is MERGED (2026-10-27T18:04Z, a75277a0); vllm-project/vllm recipes/models/ is now the vLLM recipe source, and recipes.vllm.ai now shows the b300_agentx_tp4 and b300_agentx_tp2 presets rendered from vllm-project/vllm@a75277a. Every point's TP, max-num-seqs, gpu-memory-utilization, max-num-batched-tokens 32768, capture sizes, stream-interval, draft backend, SimpleCPU offload budget/lazy_offload, timeouts, and the base NVFP4 KV/indexer, block-size, parser, text-only and DSpark-7 settings match. Excluded InferenceX-only settings are justified.
✅ Check 4 (Reuse command): PASS — /use 40340506758 was posted by COLLABORATORs xinli-sw (2026-10-27T13:01Z) and Ankur-singh (17:36Z); that run is the Check 1 run on in-PR commit 615ee422.
✅ Check 5 (Latest checklist): PASS — All 17 items in the current template, including the upstream-recipe sub-item, are present and checked.
✅ Check 6 (Upstream images / ordering): PASS — framework: vllm on B300 uses upstream vllm/vllm-openai:minimax-m31-flash@sha256:86f582da…, and the PR changes only an open-source engine entry.
✅ Check 7 (Deprecated models): PASS — According to MODELS.md, MiniMax-M3.1-Flash (minimaxm31flash) agentic coding is active (added 2026-10-23; no deprecations).
✅ Check 8 (No architecture hacks): PASS — There are no --hf-overrides, model-override args or config edits. NVFP4 KV/indexer caches and prefill query quantization are the upstream Blackwell defaults for this QAT checkpoint and are covered by the Check 2 eval.
✅ Check 9 (Chat template): PASS — AgentX replays traces through /v1/chat/completions (infx/bench/server.py, backend_request_func.py).
✅ Check 10 (No engine patches): PASS — The head recipe removes the DEP4 vllm-router.sh setup script and has no setup script, patch, source edit or pip install on any reachable path.
✅ Check 11 (Golden AL): PASS — All points draft 7 DSpark tokens. The harness injects rejection_sample_method: synthetic, synthetic_acceptance_length: 4.04 (seen in the TP2 c48 job log), which equals minimaxm31flash_dspark.yaml thinking_on for 7 tokens (4.04); only the eval-only point uses real block verification.
➖ Check 12 (Append-only): N/A — The new changelog entry has no append-only: true.
✅ Check 13 (Draft precision): PASS — The draft is the checkpoint's own dspark/ head (DSparkMiniMaxDraftModel, 5 layers, stored quantization_config: mxfp8). The recipe sets no draft quantization, dtype override or checkpoint substitution. Its only draft setting, kv_cache_dtype: fp8, is above the baseline nvfp4 that vLLM's SpeculativeConfig.kv_cache_dtype=None would inherit from the target. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is absent (vLLM lane).
✅ Check 14 (Pareto coverage): PASS — Curve b300 / vllm / fp4 / agentic-coding, p90 E2EL vs total tput/GPU from run 40340506758 (615ee422, latest attempt per point): 9 of 13 measured points are on the frontier per pareto_coverage.py; TP4 c1/c4/c8/c56 are dominated.
➖ Check 15 (PR description): N/A — The PR body makes no technical configuration or validation claims beyond the title-level summary.
✅ Check 16 (NVIDIA overview): PASS — The NVIDIA overview Framework Recipes table lists MiniMax-M3.1-Flash with the vLLM cell linking recipes.vllm.ai.
➖ Check 17 (Metrics publication): N/A — This is plain vLLM with no Dynamo TRT-LLM serving path.
✅ Check 18 (Recipe/image/sweep consistency): PASS — All 13 master srt-recipe selectors (zip_override_tp4[0-3], override_tp4_c32, override_tp4_c24, zip_override_tp4_dram[0-2], zip_override_tp2[0-3]) resolve with matching TP, GPU count, KV-offload mode and concurrency, and there are no generation errors. There are no new images or orchestration pins, and the changelog description matches the diff. The removed DEP4 c64/c128/c256 points are dominated (none undominated). Re-tuned TP4 deltas: tput/GPU −0.08% to +1.35%, interactivity +0.6% to +16.9%. TP2 c32 was rerun in attempt 3 (111.2k vs 96.8k tput/GPU in attempt 1), which does not change the frontier count.
</details>
Assessed commit: 4d58756a439a6c7be49793259d0d21f495d1fdb3.
Approved these changes.
Approved these changes.
/reuse-sweep-run 40340506758
<!-- ingest-results-report merge-run=40582012375 -->
Ingest report — ✅ Results ingested into the production database.
Ingest workflow · Merge Ingest run · Benchmark source run
| Category | new | duplicate | skipped | unmapped | failed |
| --- | ---: | ---: | ---: | ---: | ---: |
| benchmark | 13 | 0 | 1 | 0 | 0 |
| eval | 1 | 1 | 1 | 0 | 0 |
| trace | 13 | 0 | 0 | 0 | 0 |
| power | 13 | 0 | 0 | 1 | 0 |
<sub>benchmarkFiles 14, rawBenchmarkRows 14, coveredByPerJobFiles 0, purgedPoints 0, failedRunRows 1, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 1319, gpuMetricSamplesNew 236184, powerPublicationPoints 13, changelogEntriesWritten 1</sub>
Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun.
<details>
<summary>中文</summary>
Ingest 报告 — ✅ 结果已写入 production 数据库。
上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。
</details>
Ankur-singh
xinli-sw
Use latest configs for MiniMax M3.1 B300 AgentX submission.
<details><summary>中文</summary>
更新 MiniMax M3.1 B300 AgentX 提交配置。
</details>
<details><summary>AI model disclosure</summary>
Prepared by Codex with delegated agents (exact model/version could not be verified from the runtime). Config update by Claude Opus 5.5 (claude-opus-5-5).
</details>