Skip to content

[AMD] MiniMax-M3.1-Flash MI355X vLLM: PD-disaggregated AgentX over MoRI-IO / [AMD] MiniMax-M3.1-Flash MI355X vLLM:基于 MoRI-IO 的 PD 分离 AgentX - #4973

Closed
whx-sjtu wants to merge 1 commit into
mainfrom
whx/minimaxm31flash-mi355x-vllm-disagg-moriio
Closed

whx-sjtu wants to merge 1 commit into
mainfrom
whx/minimaxm31flash-mi355x-vllm-disagg-moriio

Conversation

@whx-sjtu

@whx-sjtu whx-sjtu commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Ready for review.

Adds minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg: MiniMax-M3.1-Flash AgentX on MI355X with vLLM PD disaggregation, TP4 prefill and decode engines exchanging KV over MoRI-IO RDMA WRITE behind vllm-router 0.1.16, at concurrency 40, 48, 64, 72 and 80. The engine flags are the mi355x_agentx_pd preset of recipes.vllm.ai (vllm-project/vllm#66268) on the single-node lane's checkpoint, seven-token DSpark and NVFP4 caches.

Risks:

  • srtctl has not launched MoRI-IO WRITE behind vllm-router 0.1.16 end to end; this PR's sweep is its first run.
  • srtctl does not pin each engine to its GPUs' NUMA node; the points were tuned with that pinning.
AI model disclosure
  • Model/version: Claude Opus 5.5, as exposed by the Cursor agent runtime.
  • Role: wrote the recipe, master config, changelog entry and this description at the author's direction.
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.
中文

可以 review。

新增 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg:MiniMax-M3.1-Flash 在 MI355X 上以 vLLM PD 分离方式跑 AgentX,TP4 的 prefill 与 decode 引擎通过 MoRI-IO RDMA WRITE 传输 KV,前端为 vllm-router 0.1.16,并发 40、48、64、72、80。引擎参数即 recipes.vllm.ai 的 mi355x_agentx_pd preset(vllm-project/vllm#66268),checkpoint、7-token DSpark 与 NVFP4 cache 与单机 lane 相同。

风险:

  • srtctl 还没有在 vllm-router 0.1.16 后端到端跑过 MoRI-IO WRITE,本 PR 的 sweep 是第一次。
  • srtctl 不把引擎绑定到其 GPU 所在的 NUMA 节点,而调优这些点时绑定了。

AI 模型说明:Claude Opus 5.5(Cursor agent 运行时提供的标识),按作者要求编写 recipe、master config、changelog 条目和本说明。

@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@whx-sjtu
whx-sjtu force-pushed the whx/minimaxm31flash-mi355x-vllm-disagg-moriio branch from c5a8acb to b2f47b8 Compare November 10, 2026 07:27

@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.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment on lines +31 to +33
+ # The Router's discovery flow serves both transfer modes; the recipe picks one.
+ if type(extra.setdefault("read_mode", True)) is not bool:
+ raise TypeError("discovery read_mode must be a JSON boolean")

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.

🟡 (optional) A recipe can now run prefill and decode in different MoRI-IO transfer modes without any error. The pinned srtctl ruled this out by forcing read_mode: true in both roles. The patch defaults each role's read_mode to True separately at line 32. Nothing compares the two roles' rendered values, and docs/vllm-router.md only says "Set the same value in both roles". Fix: check, when the recipe loads, that every prefill and decode MoRI-IO discovery connector renders the same read_mode, and fail before submission if they differ. That check should treat an unset value as true.

Why this was flagged

The trigger is a vLLM Router MoRI-IO recipe where only one role's template sets read_mode: false. disagg-variants.yaml already invites this: decode's read_mode:false lives in base (line 104), while prefill's comes from six separate override_1p2d_cNN blocks (lines 127-182). If an override drops or rewrites prefill's MoRIIO entry without read_mode, the patched check at patch line 32 (extra.setdefault("read_mode", True)) sets that role to true and passes. On the base branch that mismatch could not happen: _discovery_extra_config bound read_mode: True for every role and rejected any other value as a topology conflict. After this patch, decode allocates blocks and waits for prefill to write them, while prefill waits for decode to read. No safeguard catches this. The new TypeError check only looks at each value's type, and the patch's added tests only cover a single role at a time.

Verification: The pinned srtctl hard-coded "read_mode": True in _discovery_extra_config and rejected False as a topology conflict. The patch deletes it and adds a per-process extra.setdefault("read_mode", True) type check (patch lines ~32-34) that sees only one role's template. Nothing compares the prefill value with the decode value. disagg-variants.yaml is consistent today.

Comment on lines +1 to +7
# MiniMax-M3.1-Flash AgentX on MI355X, 1P2D: one TP4 prefill engine (GPUs 0-3 of
# its node) feeds two TP4 decode engines (one node) over MoRI-IO RDMA WRITE, behind
# vllm-router with consistent-hash routing (12 GPUs). Follows the mi355x_agentx_pd
# preset of https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3.1-Flash (vllm-project/recipes
# in vllm-project/vllm#66268), measured in ROCm/ATOM
# (m31-flash-vllm-moriio-rdma-1p2d-s65822-*). Checkpoint, DSpark and caches as in the
# single-node MI355X lane; prefill runs without DBO.

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.

🟡 (optional) Maintainers get header and provenance comments that the mandatory AGENTS.md Comments rule forbids in every file. Three new blocks describe topology, preset origin, ROCm/ATOM measurements and override layout, not a specific line. Fix: delete all three blocks, or reduce each to a one-line why-comment on the value it explains, which covers the 3 sites listed. Same pattern at 3 sites (disagg-variants.yaml:1-7, disagg-variants.yaml:120-122, configs/amd-master.yaml:929-932).

Why this was flagged

AGENTS.md:54-58 (Comments, mandatory, every file) bans header comments describing a file, topology, config, recipe, override or section. It also bans history, meaning where code came from or past results. disagg-variants.yaml:1-7 describes the 1P2D topology and cites vllm-project/vllm#66268 and the ROCm/ATOM run m31-flash-vllm-moriio-rdma-1p2d-s65822-*, which is provenance and a past measurement. disagg-variants.yaml:120-122 is a section header that explains all six override_1p2d_cNN blocks and restates their values. configs/amd-master.yaml:929-932 is a header for the new minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg entry that again describes topology and preset origin. The base branch has none of these comments; this diff adds all of them. The older header above minimaxm31flash-fp4-mi355x-vllm-agentic-dspark is precedent, not an exemption.

Verification: Triggered by merging the comments as written. AGENTS.md:54-58 says: "No header comments describing a file, topology, config, recipe, override, or section." disagg-variants.yaml:1-7 is a file header, disagg-variants.yaml:120-122 is a section header above all six override_1p2d_cNN blocks, and configs/amd-master.yaml:929-932 is a config header. Nothing breaks at runtime.

@whx-sjtu
whx-sjtu force-pushed the whx/minimaxm31flash-mi355x-vllm-disagg-moriio branch 2 times, most recently from 31c5eaf to 0851cfa Compare November 10, 2026 08:08
@whx-sjtu whx-sjtu changed the title [AMD] MiniMax-M3.1-Flash MI355X vLLM: 1P2D MoRI-IO disaggregated AgentX / [AMD] MiniMax-M3.1-Flash MI355X vLLM:1P2D MoRI-IO 分离式 AgentX [AMD] MiniMax-M3.1-Flash MI355X vLLM: PD-disaggregated AgentX over MoRI-IO / [AMD] MiniMax-M3.1-Flash MI355X vLLM:基于 MoRI-IO 的 PD 分离 AgentX Nov 10, 2026
@seungrokj

Copy link
Copy Markdown
Collaborator

@functionstackx @cquil11 FYI.
NVIDIA/srt-slurm#662 needs to be merged first for this PR.

@whx-sjtu
whx-sjtu force-pushed the whx/minimaxm31flash-mi355x-vllm-disagg-moriio branch from 0851cfa to ae69d16 Compare November 10, 2026 08:13
@whx-sjtu
whx-sjtu force-pushed the whx/minimaxm31flash-mi355x-vllm-disagg-moriio branch 3 times, most recently from 5b65dfe to eb2dfd9 Compare November 11, 2026 01:57
@functionstackx

Copy link
Copy Markdown
Collaborator

@seungrokj plz ping cam for any srt-slurm related stuff, he is an maintainer

fwiw, the patch doesnt need to be upstream merged immeidately before the inferencex PR can merge but it does need to be high quality and cam has an high bar https://github.com/SemiAnalysisAI/InferenceX/blob/main/inferencex-e2e/runners/srt-slurm/patches/README.md

@whx-sjtu
whx-sjtu force-pushed the whx/minimaxm31flash-mi355x-vllm-disagg-moriio branch 4 times, most recently from 7fc14b9 to 005895a Compare November 12, 2026 05:09
@whx-sjtu whx-sjtu added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 12, 2026
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

@whx-sjtu whx-sjtu added full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Nov 12, 2026
@whx-sjtu
whx-sjtu force-pushed the whx/minimaxm31flash-mi355x-vllm-disagg-moriio branch from 005895a to c40972b Compare November 12, 2026 07:21
@whx-sjtu whx-sjtu removed the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Nov 12, 2026
@whx-sjtu
whx-sjtu force-pushed the whx/minimaxm31flash-mi355x-vllm-disagg-moriio branch 4 times, most recently from 2142ec4 to 78a8e41 Compare November 12, 2026 15:43
@whx-sjtu

Copy link
Copy Markdown
Collaborator Author

Superseded by #5090, which moves this config key from MoRI-IO to Mooncake (vLLM MooncakeConnector behind vllm-router, via NVIDIA/srt-slurm#669) at concurrency 40 to 80. Closing in its favor.

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

Labels

autopilot:needs-human 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.

3 participants