Skip to content

[AMD][MI35X] M31 flash vllm config update - #5035

Merged
benenzhu merged 2 commits into
mainfrom
zty/m31flash-mi355x-inferact-opt
Nov 12, 2026
Merged

benenzhu merged 2 commits into
mainfrom
zty/m31flash-mi355x-inferact-opt

Conversation

@benenzhu

@benenzhu benenzhu commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

No description provided.

…nd its serving recipe

Pin vllm/vllm-openai-rocm:minimax-m31-flash-75bc8cf1 by digest. The image
turns on its amd_kernels routes (GEMM, MoE, qkv, attention, indexer, norm,
draft, sampling, top-p, SP prefill) by default, so the recipe drops the
nightly's env switches and serves every point on the NVFP4 KV cache with
DBO, breakable CUDA graphs up to 2048 tokens and 8 renderer workers.

- c1-c16: DSpark 7, GPU KV only; the c1-c8 mono decode lane is removed.
- c32-c64: SimpleCPUOffload tier (1349 GB) with LRU eviction; c32 moves to
  the dram search-space row, c64 keeps DSpark 3.
- Batch-sharded sampling from c2 (vLLM refuses it below max-num-seqs 4 at TP4).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: benzhuzhu <[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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@benenzhu benenzhu added the non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) label Nov 12, 2026
…dy includes

The srt-slurm pin 2d9079c contains NVIDIA/srt-slurm#664 (TileRT multi-node
decode) and #666 (post_eval.container_image), so both patches fail to apply
and every srt launch stops in the checkout step. Same deletion as #5019.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: benzhuzhu <[email protected]>
@benenzhu
benenzhu requested a review from cquil11 as a code owner November 12, 2026 06:51

@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 +88 to +106
# c1-c16: DSpark 7 with the KV cache on the GPUs. Batch-sharded sampling
# splits the sampler across the TP ranks; vLLM refuses it when max-num-seqs is
# below the TP size, so c1 runs without it.
zip_override_tp4_dspark7:
roles:
agg:
env:
VLLM_USE_BREAKABLE_CUDAGRAPH: '1'
args:
compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,4,8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,384,512,768,1024,1536,2048,3072,4096,6144,8192]}'
speculative-config: '{"method":"dspark","num_speculative_tokens":7,"attention_backend":"TRITON_ATTN","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
max-num-seqs: [32, 64]
max-num-seqs: [2, 4, 8, 16, 32]
enable-batch-sharded-sampling: [null, true, true, true, true]
benchmark:
env:
CONC: ['16', '32']
CONC: ['1', '2', '4', '8', '16']

# c64: DSpark 3 (the blog's MI355X draft length from c8) on the NVFP4 KV cache
# with sequence-parallel prefill, 0.90 memory utilization, and a CPU KV tier. The c64 working set
# outgrows the 14.2M-token GPU KV cache; SimpleCPUOffloadConnector (eager)
# holds about 24M tokens in 1349 GB of host memory (dram-utilization 0.9 of the
# TP4 lane) and serves the misses.
override_tp4_dspark3_c64_offload:
# c32-c64: the working set outgrows the GPU KV cache, so
# SimpleCPUOffloadConnector (eager) keeps about 24M tokens in 1349 GB of host
# memory (dram-utilization 0.9 of the TP4 lane). LRU eviction drops the least
# recently used prefixes from their tail, so a hot session's chain stays
# whole. c64 runs DSpark 3 at 0.90 memory utilization.

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.

🟡 nit (optional): Two new recipe comments break the AGENTS.md comment rule against section headers and restating code. "c1-c16: DSpark 7 with the KV cache on the GPUs." is a header for an override. "c64 runs DSpark 3 at 0.90 memory utilization." repeats the zipped values at lines 111-115. Fix: delete those two sentences. Keep the reasons around them: the batch-sharded sampling/TP note, the GPU KV overflow, and the LRU eviction rationale.

Why this was flagged

AGENTS.md "Comments (mandatory, every file)" bans header comments that describe a recipe, override or section. It also says comments must never restate the code. The diff adds the opener "c1-c16: DSpark 7 with the KV cache on the GPUs." at agentic.yaml:88, which only describes zip_override_tp4_dspark7 and its speculative-config. It also adds "c64 runs DSpark 3 at 0.90 memory utilization." at agentic.yaml:106. That sentence repeats gpu-memory-utilization: [0.85, 0.9] and the second speculative-config entry at lines 111-114. These lines do not affect runtime. They are a convention violation that the repo rule marks mandatory, and they will drift from the values when the zip lists change.

Verification: AGENTS.md:56 says "No header comments describing a file, topology, config, recipe, override, or section." AGENTS.md:58 says "never restate the code." Line 88, "# c1-c16: DSpark 7 with the KV cache on the GPUs.", sits directly above zip_override_tp4_dspark7: (line 91). Line 106, "c64 runs DSpark 3 at 0.90 memory utilization.", repeats line 111 and line 114. Nothing breaks at runtime.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

@benenzhu

Copy link
Copy Markdown
Collaborator Author

The recipe: vllm-project/vllm#67272

@benenzhu benenzhu changed the title [AMD][AgentX] m31-flash [AMD][MI35X] M31 vllm config update Nov 12, 2026
@benenzhu benenzhu changed the title [AMD][MI35X] M31 vllm config update [AMD][MI35X] M31 flash vllm config update Nov 12, 2026
@benenzhu
benenzhu merged commit 8a6c3cc into main Nov 12, 2026
49 checks passed
@benenzhu
benenzhu deleted the zty/m31flash-mi355x-inferact-opt branch November 12, 2026 16:53
@benenzhu

Copy link
Copy Markdown
Collaborator Author

/use 43171131215

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

@benenzhu staged run 43171131215.

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

@github-actions

Copy link
Copy Markdown
Contributor

Ingest report — ✅ Results ingested into the production database.

Ingest workflow · Merge Ingest run · Benchmark source run

Category new duplicate skipped unmapped failed
benchmark 7 0 7 0 0
eval 1 1 1 0 0
trace 7 0 0 0 0
power 7 0 0 0 0

benchmarkFiles 8, rawBenchmarkRows 14, coveredByPerJobFiles 7, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 1319, gpuMetricSamplesNew 144600, 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 报告 — ✅ 结果已写入 production 数据库。

上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。

seungrokj added a commit that referenced this pull request Nov 23, 2026
…single-node key

- Rename minimaxm31flash-fp4-mi355x-vllm-disagg-agentic-dspark to minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg and serve it as framework vllm (disagg true), following the #4928 single-node/-disagg key pair.
- The changelog block now lists both minimaxm31flash-fp4-mi355x-vllm-agentic-dspark (from #5035, rerun unchanged) and the -disagg key, so both topologies are measured in one sweep.
- Rename the PD recipe base name to minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg-mooncake.

- 将 minimaxm31flash-fp4-mi355x-vllm-disagg-agentic-dspark 重命名为 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg,并以 framework vllm(disagg true)运行,沿用 #4928 的单节点 / -disagg 成对 key 方式。
- changelog 条目同时列出 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark(来自 #5035,原样重跑)和 -disagg key,使两种拓扑在同一次 sweep 中测量。
- 将 PD recipe 的 base name 改为 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg-mooncake。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
adibarra added a commit that referenced this pull request Nov 24, 2026
…oncake / [AMD] MiniMax-M3.1-Flash MI355X vLLM:基于 Mooncake 的 PD 分离 AgentX (#5090)

* feat(minimaxm31flash): add MI355X vLLM PD-disaggregated Mooncake AgentX

Signed-off-by: whx-sjtu <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(minimaxm31flash): read the shared HF cache on MI355X Mooncake PD engines

Set HF_HOME and HF_HUB_CACHE in the prefill and decode env so the engines and
srtctl's pre-download resolve the shared hub cache, drop the header comments
AGENTS.md forbids, and fill in the changelog pr-link.

Co-authored-by: Cursor <[email protected]>
Signed-off-by: whx-sjtu <[email protected]>

* fix(srt-slurm): sync Mooncake backport with upstream review fixes

* chore(srt-slurm): use merged Mooncake support and drop backport

* fix(minimaxm31flash): classify Mooncake PD as vllm-disagg [skip ci] [skip-sweep]

* fix(srt): raise vLLM worker memlock to the hard limit [skip ci] [skip-sweep]

* chore(srt): remove memlock diagnostic output [skip ci] [skip-sweep]

* ci(minimaxm31flash): run full Mooncake PD validation

* docs(changelog): align the MiniMax-M3.1-Flash MI355X vLLM PD AgentX entry with the diff

- Add MiniMax-M3.1-Flash PD-disaggregated AgentX on MI355X under vllm-disagg, on the single-node lane's image vllm/vllm-openai-rocm:minimax-m31-flash-75bc8cf1: one TP4 prefill and two TP4 decode vLLM engines move KV over MooncakeConnector (RDMA) behind vllm-router 0.1.16 with consistent-hash routing, at concurrency 40, 48, 56, 64, 72 and 80 (DRAM utilization 0.9 at c40-c64, 1.0 at c72-c80).
- Both roles keep the single-node serving args: NVFP4 KV and indexer caches, DSpark with 7 speculative tokens, AITER MoE, block size 128 and 1M context.
- Prefill admits 2x CONC with DBO at 32768 batched tokens and holds a SimpleCPUOffloadConnector host KV tier of 1349 GB (1499 GB at c72 and c80); at c80 it schedules at most 4096 tokens of a prompt per step at 0.75 GPU memory utilization.
- Each decode engine runs without DBO at 8192 batched tokens, with max-num-seqs 5, 6, 7, 8, 10 and 10 from c40 to c80 and CUDA graphs captured in multiples of 8 up to 8x that batch.
- Both roles set NCCL_DMABUF_ENABLE=0, VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=1200, a 3600 s HTTP keep-alive (900 s on single node) and the Mooncake RDMA env (GID index, traffic class, one concurrent MR registration, 600 s connector timeout; 1 GiB max MR size on prefill, 256 MiB on decode).
- Bump utils/srt-slurm from 2d9079c to cc9db05 (21 commits), which adds NVIDIA/srt-slurm#669: one bootstrap port per prefill engine and Router start after every worker's health check. The shared vllm-router.sh setup script now raises the worker parent shell's soft RLIMIT_MEMLOCK to its hard limit.
- Draft data type unchanged: the DSpark draft from the checkpoint's dspark/ subfolder runs as shipped, with MXFP8 attention and MLP projections, BF16 fc, norms and the shared target embedding and LM head, and an FP8 E4M3 draft KV cache.

- 在 MI355X 上以 vllm-disagg 新增 MiniMax-M3.1-Flash PD 分离 AgentX,沿用单机 lane 的镜像 vllm/vllm-openai-rocm:minimax-m31-flash-75bc8cf1:1 个 TP4 prefill 和 2 个 TP4 decode vLLM 引擎通过 MooncakeConnector(RDMA)传输 KV,前端为采用一致性哈希路由的 vllm-router 0.1.16,并发为 40、48、56、64、72 和 80(c40-c64 的 DRAM 利用率为 0.9,c72-c80 为 1.0)。
- 两个角色都沿用单机的服务参数:NVFP4 KV 和 indexer cache、7 个推测 token 的 DSpark、AITER MoE、block size 128 和 1M 上下文。
- Prefill 准入 2x CONC,开 DBO,batched tokens 为 32768,并带 1349 GB 的 SimpleCPUOffloadConnector 主机 KV 层(c72 和 c80 为 1499 GB);c80 时每步最多调度一个 prompt 的 4096 个 token,GPU 显存利用率为 0.75。
- 每个 decode 引擎不开 DBO,batched tokens 为 8192,c40 到 c80 的 max-num-seqs 依次为 5、6、7、8、10 和 10,CUDA graph 按 8 的倍数捕获到该 batch 的 8 倍。
- 两个角色都设置 NCCL_DMABUF_ENABLE=0、VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=1200、3600 s HTTP keep-alive(单机为 900 s)以及 Mooncake RDMA 环境变量(GID index、traffic class、一个并发 MR 注册、600 s connector 超时;最大 MR 大小 prefill 为 1 GiB,decode 为 256 MiB)。
- 将 utils/srt-slurm 从 2d9079c 升级到 cc9db05(21 个提交),其中包含 NVIDIA/srt-slurm#669:每个 prefill 引擎一个 bootstrap 端口,并在所有 worker 健康检查通过后启动 Router。共享的 vllm-router.sh setup 脚本现在会把 worker 父 shell 的 RLIMIT_MEMLOCK 软限制提升到硬限制。
- 草稿模型数据类型不变:checkpoint dspark/ 子目录中的 DSpark 草稿模型按发布精度运行,attention 和 MLP 投影为 MXFP8,fc、norm 以及与目标模型共享的 embedding 和 LM head 为 BF16,草稿 KV cache 为 FP8 E4M3。

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* config(amd): pair the MiniMax-M3.1-Flash MI355X vLLM PD key with the single-node key

- Rename minimaxm31flash-fp4-mi355x-vllm-disagg-agentic-dspark to minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg and serve it as framework vllm (disagg true), following the #4928 single-node/-disagg key pair.
- The changelog block now lists both minimaxm31flash-fp4-mi355x-vllm-agentic-dspark (from #5035, rerun unchanged) and the -disagg key, so both topologies are measured in one sweep.
- Rename the PD recipe base name to minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg-mooncake.

- 将 minimaxm31flash-fp4-mi355x-vllm-disagg-agentic-dspark 重命名为 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg,并以 framework vllm(disagg true)运行,沿用 #4928 的单节点 / -disagg 成对 key 方式。
- changelog 条目同时列出 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark(来自 #5035,原样重跑)和 -disagg key,使两种拓扑在同一次 sweep 中测量。
- 将 PD recipe 的 base name 改为 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark-disagg-mooncake。

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Signed-off-by: whx-sjtu <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: seungrokj <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: seungrokj <[email protected]>
Co-authored-by: Alec Ibarra <[email protected]>
Co-authored-by: Perplexity <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants