Repository navigation
[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
Conversation
|
Thanks for the contribution!
中文感谢你的贡献!
|
c5a8acb to
b2f47b8
Compare
| + # 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") |
There was a problem hiding this comment.
🟡 (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.
| # 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. |
There was a problem hiding this comment.
🟡 (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.
31c5eaf to
0851cfa
Compare
|
@functionstackx @cquil11 FYI. |
0851cfa to
ae69d16
Compare
5b65dfe to
eb2dfd9
Compare
|
@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 |
7fc14b9 to
005895a
Compare
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=43366158170 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=43366158170 |
005895a to
c40972b
Compare
2142ec4 to
78a8e41
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
78a8e41 to
a1ac131
Compare
|
Superseded by #5090, which moves this config key from MoRI-IO to Mooncake (vLLM |
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 themi355x_agentx_pdpreset of recipes.vllm.ai (vllm-project/vllm#66268) on the single-node lane's checkpoint, seven-token DSpark and NVFP4 caches.read_mode: false; the recipe uses it to run WRITE.vllm/vllm-openai-rocm:nightly-96710245, which includes [Perf][KV Connector][ROCm] MoRIIO WRITE: skip blocks the decoder prefix cache already holds vllm-project/vllm#65822 (WRITE skips the blocks the decoder's prefix cache already holds).dram-utilization0.9), 1499 GB at c72-c80 (1.0).long-prefill-token-threshold).Risks:
AI model disclosure
PR checklist and change type
Type of Change
Checklist
python -m infx.matrix.changed --base origin/mainlists affected config keys, I have appended one new entry covering them to the physical end ofinferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entriesinferencex-e2e/perf-changelog.yamlentry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs):full-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied.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_pdpreset(vllm-project/vllm#66268),checkpoint、7-token DSpark 与 NVFP4 cache 与单机 lane 相同。read_mode: false,本 recipe 借此使用 WRITE。vllm/vllm-openai-rocm:nightly-96710245,包含 [Perf][KV Connector][ROCm] MoRIIO WRITE: skip blocks the decoder prefix cache already holds vllm-project/vllm#65822(WRITE 跳过 decode 前缀缓存已有的块)。dram-utilization0.9),c72-c80 为 1499 GB(1.0)。long-prefill-token-threshold)。风险:
AI 模型说明:Claude Opus 5.5(Cursor agent 运行时提供的标识),按作者要求编写 recipe、master config、changelog 条目和本说明。