Skip to content

[AMD] MiniMax-M3.1-Flash MI355X vLLM agentic: MiniMaxAI checkpoint + MXFP4 MoE, SP prefill from c32, c64 CPU KV offload / [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic:MiniMaxAI checkpoint + MXFP4 MoE,c32 起开启 SP 预填充,c64 开启 CPU KV 卸载 - #4463

Open
benenzhu wants to merge 9 commits into
mainfrom
zty/m31flash-mi355x-sp-offload

Conversation

@benenzhu

@benenzhu benenzhu commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

minimaxm31flash-fp4-mi355x-vllm-agentic-dspark (MiniMax-M3.1-Flash AgentX, MI355X, vLLM), same image ae868121:

  • Checkpoint: MiniMaxAI/MiniMax-M3.1-Flash instead of amd/MiniMax-M3.1-Flash-Quark-MXFP4. quantization-config {"moe":"mxfp4"} quantizes the NVFP4 routed experts to MXFP4 at load, so the MoE still runs W4A4 on AITER (AITER_MXFP4_MXFP4).
  • SP prefill, conc 32-64: VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1 on top of DBO. The image turns it on for this checkpoint; on the Quark export it stays off, because the MXFP8 dense kernels sit where the SP code does not look.
  • Conc 64: SimpleCPUOffloadConnector (eager), 1349 GB of host memory (dram-utilization 0.9 of the TP4 lane), about 24M tokens. The c64 working set outgrows the 14.2M-token GPU KV cache; the CPU tier serves the misses.
  • Conc 16 moves to DSpark 7 + mono decode (FP8 KV) from DSpark 3 + DBO (NVFP4 KV). Both arms at c16 in run 40175252224 (~18 min of profiling): intvty p50 222 vs 184, p95 587 vs 340, output 623 vs 605 tok/s.
  • Conc 1-8 (DSpark 7 + mono decode) are unchanged apart from the checkpoint.
AI model disclosure
  • Model/version: Claude Opus 5.5 (claude-opus-5-5) via Claude Code, the only model involved.
  • Role: recipe and config edits, changelog entry, PR text.
PR checklist and change type

Type of Change

  • Bug fix
  • New feature
  • Configuration change
  • Documentation update
  • Other (please describe)

Checklist

  • I have completed the AI model disclosure and kept it current
  • I have tested my changes locally
  • I have updated documentation if necessary
  • If python -m infx.matrix.changed --base origin/main lists affected config keys, I have appended one new entry covering them to the physical end of inferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entries
  • If this PR appends an inferencex-e2e/perf-changelog.yaml entry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs): full-sweep-fail-fast (recommended), full-sweep-enabled, or non-canary-full-sweep-enabled. Optional modifiers all-evals, evals-only, and agentx-fast require a primary label; the last two block reuse while applied.
  • Before merging via reuse, an authorized maintainer (OWNER/MEMBER/COLLABORATOR) has commented /use <run_id> (or the legacy /reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.
中文

概要

minimaxm31flash-fp4-mi355x-vllm-agentic-dspark(MiniMax-M3.1-Flash AgentX,MI355X,vLLM),镜像不变(ae868121):

  • Checkpoint: 由 amd/MiniMax-M3.1-Flash-Quark-MXFP4 改为 MiniMaxAI/MiniMax-M3.1-Flash。quantization-config {"moe":"mxfp4"} 在加载时把 NVFP4 路由专家量化为 MXFP4,MoE 仍在 AITER 上以 W4A4 运行(AITER_MXFP4_MXFP4)。
  • 并发 32-64 开启 SP 预填充: 在 DBO 之上设置 VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1。镜像对该 checkpoint 启用 SP;Quark 导出的 checkpoint 上 SP 不生效,因为其 MXFP8 dense kernel 不在 SP 代码查找的位置。
  • 并发 64: 使用 SimpleCPUOffloadConnector(eager),主机内存 1349 GB(TP4 lane 的 dram-utilization 0.9),约 24M token。c64 的工作集超出 14.2M token 的 GPU KV cache,未命中的部分由 CPU 层提供。
  • 并发 16 改用 DSpark 7 + mono decode(FP8 KV),原为 DSpark 3 + DBO(NVFP4 KV)。run 40175252224 中两种配置的 c16 对比(profiling 约 18 分钟):intvty p50 222 对 184,p95 587 对 340,输出 623 对 605 tok/s。
  • 并发 1-8(DSpark 7 + mono decode)只更换 checkpoint,其余不变。

改动类型:配置变更。检查清单见上方折叠区。

AI 模型使用说明:Claude Opus 5.5(claude-opus-5-5),通过 Claude Code 使用,是唯一参与的模型,负责配方与配置修改、changelog 条目和 PR 说明。

…MXFP4 MoE, SP prefill from c16, c64 SimpleCPUOffload

Signed-off-by: Taoyu Zhu <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @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.
  • PR verification: Sweeps run only when the PR appends an 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.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 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 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment thread inferencex-e2e/perf-changelog.yaml Resolved
从 changelog 条目中删除测量结果行。

Signed-off-by: Taoyu Zhu <[email protected]>
@benenzhu benenzhu changed the title [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic: MiniMaxAI checkpoint + MXFP4 MoE, SP prefill from c16, c64 CPU KV offload [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic: MiniMaxAI checkpoint + MXFP4 MoE, SP prefill from c16, c64 CPU KV offload / [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic:MiniMaxAI checkpoint + MXFP4 MoE,c16 起开启 SP 预填充,c64 开启 CPU KV 卸载 Oct 24, 2026
…ation 0.9)

c64 的 CPU KV 层由 1199 GB 增加到 1349 GB(dram-utilization 0.9)。

Signed-off-by: Taoyu Zhu <[email protected]>
c16 同时运行两个 DSpark 配置:7 个草稿 + mono decode,以及 3 个草稿 + DBO + SP 预填充。

Signed-off-by: Taoyu Zhu <[email protected]>
按 review 删除概述性注释,只保留针对具体取值的单行说明。

Signed-off-by: Taoyu Zhu <[email protected]>
@benenzhu benenzhu added full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Oct 24, 2026
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

…entry after main's new entries)

Signed-off-by: Taoyu Zhu <[email protected]>
Comment thread inferencex-e2e/configs/amd-master.yaml Outdated
Comment on lines +1572 to +1574
# c16 runs on both DSpark arms.
- { tp: 4, kv-offloading: none, spec-decoding: mtp, conc-list: [16], srt-recipe: 'agentic.yaml:zip_override_tp4_dspark7_mono[4]' }
- { tp: 4, kv-offloading: none, spec-decoding: mtp, conc-list: [16], srt-recipe: 'agentic.yaml:zip_override_tp4_dspark3[0]' }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 If a rerun of failed jobs covers only one c16 arm, Klaud drops the other arm's c16 result and the final-sweep verification fails. The base branch had only one c16 point, so this could not happen. The two c16 rows have the same agentic_key because that key leaves out the recipe and its fingerprint. superseded_attempt_files treats an older-attempt file with the same key as replaced and discards it. Fix: keep the two c16 points from colliding, either by including recipe_fingerprint in agentic_key (artifacts.py:169-183) or by running c16 on only one arm. The first change is outside this diff.

Why this was flagged

After the split, c16 runs twice: once as 'agentic.yaml:zip_override_tp4_dspark7_mono[4]' and once as 'agentic.yaml:zip_override_tp4_dspark3[0]' (amd-master.yaml:1573-1574). Both rows produce mi355x / minimaxm31flash / vllm / fp4 / tp4 / pp1 / dcp1 / pcp1 / ep1 / dp_attention False / conc 16 / ('none',''), so agentic_key (infx/results/artifacts.py:169-183) is the same for both. superseded_attempt_files (artifacts.py:195-213) drops any file whose rows all have a lower run_attempt than the newest attempt seen for that key. If only one c16 job reruns in attempt 2, the other arm's attempt-1 file is dropped by agentic_point_files. check_coverage (klaud/validation.py:283-301) still expects both (recipe_fingerprint, 16, image) identities, so it raises "Full-sweep result coverage or consistency failed". On the base branch c16 ran on one arm only, so no two rows shared a key.

Verification: Trigger: a final sweep where only one of the two c16 jobs reruns while the other c16 job's attempt-N artifact is kept. agentic_key (infx/results/artifacts.py:123-183) leaves out recipe_fingerprint, so both c16 rows get the same key. superseded_attempt_files (artifacts.py:195-213) drops the other arm's file, and klaud/validation.py check_coverage raises "Full-sweep result coverage or consistency failed".

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in da4db81: c16 now runs on the DSpark 7 + mono arm only (it won the c16 A/B in run 40175252224), so no two points share an agentic_key.

…8 KV)

Run 40175252224, both c16 arms at ~18 min of profiling: DSpark 7 + mono
intvty p50 222 vs 184, p95 587 vs 340, output 623 vs 605 tok/s. One c16
point also keeps the two arms from sharing an agentic_key on partial reruns.

Signed-off-by: Taoyu Zhu <[email protected]>
@benenzhu benenzhu added the non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) label Oct 25, 2026
@benenzhu benenzhu changed the title [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic: MiniMaxAI checkpoint + MXFP4 MoE, SP prefill from c16, c64 CPU KV offload / [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic:MiniMaxAI checkpoint + MXFP4 MoE,c16 起开启 SP 预填充,c64 开启 CPU KV 卸载 [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic: MiniMaxAI checkpoint + MXFP4 MoE, SP prefill from c32, c64 CPU KV offload / [AMD] MiniMax-M3.1-Flash MI355X vLLM agentic:MiniMaxAI checkpoint + MXFP4 MoE,c32 起开启 SP 预填充,c64 开启 CPU KV 卸载 Oct 25, 2026
@benenzhu

Copy link
Copy Markdown
Collaborator Author

@benenzhu

Copy link
Copy Markdown
Collaborator Author

/use 40178276059

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

@benenzhu staged run 40178276059.

This run remains available across future /stage-results requests. Staging the same run ID again updates its staged data. Staging workflow

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AMD non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant