Repository navigation
Combine #4537 and #4463 for MiniMax-M3.1-Flash MI355X vLLM: K7 at C16/C32, CPU offload at C64 / 合并 #4537 与 #4463:MiniMax-M3.1-Flash MI355X vLLM C16/C32 使用 K7、C64 使用 CPU 卸载 - #4671
Conversation
…CPU offload 合并 #4537(c16/c32 使用 K7、0.85 显存)与 #4463(c64 CPU KV 卸载),保持 Quark 检查点。 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
将 MiniMax-M3.1-Flash 合并条目链接到 PR 4671。 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Thanks for the contribution!
中文感谢你的贡献!
|
| # Sequence-parallel prefill, from #4463. Upstream (vllm#63491) supports | ||
| # the MXFP4 W4A4 MoE; whether the Quark export's dense layers reach its | ||
| # MXFP8 kernel is untested, so this arm is the first check. |
There was a problem hiding this comment.
🟡 nit (optional): The new recipe comments record PR history and testing status, which AGENTS.md's comment rules ban. sweep:#4463|#4537|first check Example: agentic.yaml:145-147 says "Sequence-parallel prefill, from #4463" and "this arm is the first check". Fix: cut these comments down to short technical notes on the line they sit above. Leave PR provenance and validation status in perf-changelog.yaml, which already records them.
Why this was flagged
AGENTS.md (Comments, mandatory) bans history comments, meaning how code evolved, where it came from, or past results, and names git and perf-changelog.yaml as the record. The comment this diff adds at agentic.yaml:145-147 cites #4463 as the source of the setting. It also calls the arm "the first check" of an untested path. Once a sweep runs, that note goes stale and still sits in the recipe. The perf-changelog.yaml block added by this same diff already carries the #4463/#4537 provenance and the untested-on-Quark caveat.
Verification: The diff adds a comment to agentic.yaml at lines 145-147, in override_tp4_dspark3_c64_offload, reading "from #4463" and "this arm is the first check". AGENTS.md:54-58 says: "No history: how code evolved, what it replaced, where it came from, or past results. Git and perf-changelog.yaml are the record." Nothing breaks at runtime.
|
Upstream vLLM recipe PR for this lane: vllm-project/vllm#64805 (adds the 中文本 lane 对应的上游 vLLM recipe PR:https://github.com/vllm-project/vllm/pull/64805(在 MiniMax-M3.1-Flash recipe 中新增 |
|
/reuse-sweep-run 41003224750 |
…e diff - Image unchanged: vllm/vllm-openai-rocm:minimax-m31-flash (vLLM 0.32.0rc1.dev364+g8d0f05a0c) on amd/MiniMax-M3.1-Flash-Quark-MXFP4, so no upstream framework change. - Search space: TP4 c1-c32 without KV offloading, and c64 moves to a new TP4 point with host-DRAM KV offload (vllm-simple); dram-utilization 0.80 -> 0.90. - C1-C8 are unchanged. - C16/C32: DSpark 3 -> 7 on the NVFP4 KV cache with DBO; base gpu-memory-utilization 0.9 -> 0.85. The golden AL covers 7 drafts. - C64: DSpark 3 at 0.9, max-num-seqs 128, SimpleCPUOffloadConnector (eager, 1349 GB): about 23.7M CPU tokens beside the 14.6M-token GPU KV cache in run 41003224750. - C64 also sets PYTHONHASHSEED=42 and VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1; SP prefill stays off on the Quark checkpoint at 8d0f05a0c, and every rank logs it as off. - Draft data types unchanged: the dspark/ draft runs with its own MXFP8 config and an FP8 draft KV cache; only its length changes, at C16/C32. - 镜像不变:vllm/vllm-openai-rocm:minimax-m31-flash(vLLM 0.32.0rc1.dev364+g8d0f05a0c),检查点 amd/MiniMax-M3.1-Flash-Quark-MXFP4,无上游框架变化。 - 搜索空间:TP4 c1-c32 不卸载 KV;c64 改为新的 TP4 主机 DRAM KV 卸载点(vllm-simple);dram-utilization 0.80 -> 0.90。 - C1-C8 不变。 - C16/C32:在 NVFP4 KV 缓存与 DBO 上 DSpark 3 -> 7;基础 gpu-memory-utilization 0.9 -> 0.85。golden AL 覆盖 7 个草稿 token。 - C64:DSpark 3,显存 0.9,max-num-seqs 128,SimpleCPUOffloadConnector(eager,1349 GB):运行 41003224750 中,在 14.6M token 的 GPU KV 缓存之外另有约 23.7M token 的 CPU 缓存。 - C64 还设置 PYTHONHASHSEED=42 与 VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1;在 8d0f05a0c 上 Quark 检查点的 SP 预填充保持关闭,每个 rank 均记录为 off。 - 草稿模型数据类型不变:dspark/ 草稿按其自身的 MXFP8 配置运行,草稿 KV 缓存为 FP8;仅 C16/C32 的草稿长度变化。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Draft data types: no change. The DSpark draft (
At vLLM Sign-off evidence (PR review checklist)The CODEOWNER sign-off links this comment as its additional detail section. Evidence for each item, assessed at
中文草稿模型数据类型:不变。 DSpark 草稿模型(
在 vLLM 签核证据(PR 审查清单)CODEOWNER 签核将本评论链接为其附加说明部分。各项证据,评估于
|
There was a problem hiding this comment.
As a PR reviewer and CODEOWNER, I have reviewed this and have:
Checklist items
- Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
- Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
- Verified that this PR has passed PR validation. Please link to GitHub Action workflow that shows this.
- Verified that this PR passes evals. Please link to GitHub Action workflow that shows this.
- Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
- Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL. Explicitly verified that
SGLANG_NVFP4_CKPT_FP8_NEXTN_MOEis 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. - For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
- Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
- Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
- Verified that new models disable integer all-reduce, with SGLang ROCm explicitly setting
ROCM_QUICK_REDUCE_QUANTIZATION=NONE. Existing models are grandfathered per MODELS.md - For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
- If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
- For official InferenceX (non-preview), verified that established models use upstream engine images built from
master(or the equivalent default development branch), with new models transitioning within a reasonable time after release. See MODELS.md - If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
- Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
- 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.
- Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/
<PR_NUMBER>.md](https://github.com/SemiAnalysisAI/InferenceX/tree/main/inferencex-e2e/docs/waiver)%60%3CPR_NUMBER%3E.md%60) — 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. - If this PR uses
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. - If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
- Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details
Additional detail section:
-
insert any additional info here
-
recipe vllm-project/vllm#64805
Signed: seungrokj
✅✅✅ Verdict: PASS ✅✅✅Passed and not applicable checks✅ Check 0 (CODEOWNER): PASS — ✅ Check 1 (Sweep on in-PR commit): PASS — Run 41003224750 (attempt 2, conclusion success) on in-PR commit ✅ Check 2 (Evals): PASS — The evals ran in the same run on ✅ Check 3 (Upstream recipe): PASS — vllm-project/vllm#64805 is ✅ Check 4 (Reuse command): PASS — ✅ Check 5 (Checklist template): PASS — All 20 items in the current template, including the recipe sub-item, appear in the sign-off, and all are checked. ✅ Check 6 (Upstream image): PASS — The image is the upstream, digest-pinned ✅ Check 7 (Deprecated models): PASS — MODELS.md lists ✅ Check 8 (No arch hacks): PASS — There are no ✅ Check 9 (Chat template): PASS — AgentX replays traces through ✅ Check 10 (No engine patches): PASS — The pinned recipe has no patches, setup scripts, overlays, or wheel installs, so the pinned image runs as shipped. ✅ Check 11 (Golden AL): PASS — ✅ Check 13 (Draft precision): PASS — The draft is the checkpoint's own ✅ Check 14 (Pareto coverage): PASS — There is one curve: minimaxm31flash / agentic-coding / MI355X vLLM / fp4 / p90 E2EL, from run 41003224750 ✅ Check 15 (PR description): PASS — The body's claims match the pinned code and run 41003224750: the image and checkpoint, the per-concurrency settings, the master search-space split, dram-utilization 0.90, SP prefill being off, and validation on ✅ Check 18 (Recipe/image consistency): PASS — ➖ Check 12 (Append-only): N/A — The new changelog entry does not set ➖ Check 16 (NVIDIA overview): N/A — Only MI355X is affected; no NVIDIA configurations are. ➖ Check 17 (Metrics publication): N/A — This is direct vLLM serving with no Dynamo or TRT-LLM, so these Dynamo settings do not apply. Assessed commit: |
|
Ingest report — ✅ Results ingested into the Ingest workflow · Merge Ingest run · Benchmark source run
benchmarkFiles 8, rawBenchmarkRows 8, coveredByPerJobFiles 0, purgedPoints 0, failedRunRows 1, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 3957, gpuMetricSamplesNew 108792, powerPublicationPoints 7, changelogEntriesWritten 1 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. 中文Ingest 报告 — ✅ 结果已写入 上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。 |
Summary
Combines #4537 (C16/C32) and #4463 (C64 CPU KV offload) for
minimaxm31flash-fp4-mi355x-vllm-agentic-dspark. It stays on the Quark checkpointamd/MiniMax-M3.1-Flash-Quark-MXFP4and the unchanged imagevllm/vllm-openai-rocm:minimax-m31-flash(vLLM0.32.0rc1.dev364+g8d0f05a0c).SimpleCPUOffloadConnector(eager, 1349 GB host),PYTHONHASHSEED=42,VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1The master config splits the search space into TP4 c1-c32 without offloading and TP4 c64 with DRAM offload (
vllm-simple,agentic.yaml:override_tp4_dspark3_c64_offload), and raisesdram-utilizationfrom 0.80 to 0.90.Notes:
_mxfp8_kernelreadslayer.quant_method.kernel(sp_prefill.py#L266). The Quark linear method keeps its MXFP8 kernel on the scheme instead, somake_o_proj_fullreturns None (#L291). The run confirms this: every rank logsMiniMax-M3 sequence-parallel prefill …: off. The env var is harmless but has no effect on this checkpoint.dspark/draft loads with its own MXFP8 config: FP8 E4M3 attention and FFN projections with 1×32 UE8M0 scales, and BF16 fc, Markov head, confidence head and norms. It uses an FP8 draft KV cache. Only the draft length changes, at C16/C32. The golden AL covers 7 drafts.This PR does not automatically supersede either source PR; close or rebase them as appropriate.
Validation
a328b4435passed: agentic c1, c2, c4, c8, c16, c32 and c64 (DRAM offload), plus evals at c8, c32 and c64.中文
摘要
为
minimaxm31flash-fp4-mi355x-vllm-agentic-dspark合并 #4537(C16/C32)与 #4463(C64 CPU KV 卸载),仍使用 Quark 检查点amd/MiniMax-M3.1-Flash-Quark-MXFP4,镜像vllm/vllm-openai-rocm:minimax-m31-flash不变(vLLM0.32.0rc1.dev364+g8d0f05a0c)。SimpleCPUOffloadConnector(eager,1349 GB 主机内存),PYTHONHASHSEED=42,VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1主配置将搜索空间拆分为无卸载的 TP4 c1-c32 与使用 DRAM 卸载的 TP4 c64(
vllm-simple,agentic.yaml:override_tp4_dspark3_c64_offload),dram-utilization由 0.80 提高到 0.90。说明:
_mxfp8_kernel读取layer.quant_method.kernel(sp_prefill.py#L266),而 Quark 线性层方法把 MXFP8 kernel 放在 scheme 上,因此make_o_proj_full返回 None(#L291)。运行日志也证实了这一点:每个 rank 都记录MiniMax-M3 sequence-parallel prefill …: off。该环境变量无害,但对此检查点不起作用。dspark/草稿模型按其自身的 MXFP8 配置加载:注意力与 FFN 投影为 FP8 E4M3(1×32 UE8M0 缩放),fc、Markov 头、置信度头和各 norm 为 BF16,草稿 KV 缓存为 FP8。仅 C16/C32 的草稿长度发生变化;golden AL 覆盖 7 个草稿 token。本 PR 不会自动取代两个源 PR,请视情况关闭或 rebase。
验证
a328b4435上的 sweep 运行 41003224750 通过:agentic c1、c2、c4、c8、c16、c32 与 c64(DRAM 卸载),以及 c8、c32、c64 的评测。AI model disclosure
🤖 Generated with Claude Code