Skip to content

[AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: TP4 concurrency 1-48 with running-request caps on the 11-17 nightly / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:在 11-17 nightly 上把 TP4 扩展到并发 1-48 并限制同时运行的请求数 - #5125

Open
fanxingran wants to merge 4 commits into
SemiAnalysisAI:mainfrom
fanxingran:dsv41flash-mi355x-vllm-tp4

Conversation

@fanxingran

@fanxingran fanxingran commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

On the AgentX curve, MI355X DeepSeek-V4.1-Flash vLLM runs TP4 only at concurrency 1-2 and TP2 everywhere else, while B300 vLLM runs TP4 from concurrency 1 to 48. At the same concurrency TP4 gives each session twice the GPUs of TP2, so above concurrency 2 MI355X has no point at the interactivity end of the curve (p90 interactivity at c16: MI355X TP2 302, B300 TP4 629).

This PR extends the TP4 arm of dsv41flash-fp4-mi355x-vllm-agentic-dspark to concurrency 1-48 and moves the key to the 2026-11-17 ROCm 10.0 nightly. The TP2 arm (c1-c64) keeps the throughput end of the curve; only its c16 cap changes.

  • Image: nightly-4fab5a07… → vllm/vllm-openai-rocm:nightly-rocm100-8ca766326652caf4b8e50d1b9118d8a22f6adc73 (digest sha256:a1af8126…), which carries the tuned TP4 mono decode paths ([ROCm][Perf][DSv4.1] Mono: tuned K1 at TP4 vllm-project/vllm#63893, #64883). Every point of the key reruns.
  • TP4 conc-list: [1, 2] → [1, 2, 4, 8, 16, 24, 32, 48], with new override_tp4_c24 and override_tp4_c48.
  • TP4 running-request caps (max-num-seqs): 1 / 2 / 2 / 4 / 6 / 8 at c4 / c8 / c16 / c24 / c32 / c48; 32768-token prefill chunks at c4, 8192 elsewhere. --monokernel runs only on decode-only steps of at most 48 rows (8 requests x 6 DSpark tokens); the cap keeps every decode step on it and queues the remaining sessions.
  • TP2 c16: max-num-seqs 4 → 2.

Cap choice. Up to c16 the points are demand-bound, so a tighter cap costs almost no throughput: TP4 c16 cap 2 / 3 / 4 gives 576 / 454 / 409 p90 interactivity at 20.8k / 21.3k / 21.3k tok/s/GPU. At c24 and c48, one step tighter (3, 6) buys about 13% interactivity for 12-15% throughput, so those points keep B300's caps (4, 8). At c32, cap 6 against 8 gives +13% interactivity for -6% throughput.

Local AgentX comparison. agentx-harness 1.0.13, semianalysis_cc_traces_weka_062126, 900 s per point, acceptance fixed at the golden length for DSpark K=5 thinking-on (3.51), one server per point on 8x MI355X, on the pinned image with the recipe's arguments. On the previous official image our harness reads about 7% below the official runs (TP2 c16 280 against 302, c32 173 against 187), so the ratios below are conservative. Repeat runs of TP4 c16 cap 2 give 564 / 576 / 580.

C official MI355X p90 interactivity this PR, TP4 ratio B300 vLLM TP4 MI355X / B300
1 676 (TP4) 739 1.09 826 0.89
2 667 (TP4) 733 1.10 - -
4 578 (TP2) 748 1.29 833 0.90
8 452 (TP2) 606 1.34 709 (c10) -
16 302 (TP2) 576 1.91 629 0.92
24 - 386 - 562 0.69
32 187 (TP2) 308 1.65 469 0.66
48 - 261 - 389 0.67

TP2 c16 with cap 2 gives 432 p90 interactivity (cap 3: 332; cap 4: 287) at 39.0k tok/s/GPU (cap 4: 40.8k).

Risks

AI model disclosure
  • Model/version: Claude Opus 5.5, in Cursor (the runtime exposes no more specific identifier)
  • Role: experiment design and the local runs on 8x MI355X, the config and recipe edits, the changelog entry and this description
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, a maintainer with write access to the repository 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.
中文

MI355X DeepSeek-V4.1-Flash vLLM 的 AgentX 配置只在并发 1-2 使用 TP4,而 B300 在并发 1-48 都使用 TP4,因此 MI355X 在高交互性一端缺少测点。本 PR 将 TP4 扩展到并发 1-48,并限制同时运行的请求数(max-num-seqs),使每个解码步都走 --monokernel;同时把镜像更新为 2026-11-17 的 ROCm 10.0 nightly,并把 TP2 c16 的上限从 4 改为 2。

本地 900 s 的 AgentX 基准测试中,TP4 的 p90 交互性为官方 MI355X 的 1.09-1.91 倍、B300 的 0.66-0.92 倍。限制请求数会提高 TTFT,但 TTFT 不计分。本地吞吐量低于官方 3600 s 的结果,以扫描结果为准。

…ith running-request caps on the 11-17 nightly

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

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

@fanxingran

Copy link
Copy Markdown
Collaborator Author

@Fangzhou-Ai @seungrokj could you review this MI355X DSv4.1-Flash vLLM config change, especially the caps on top of your earlier tuning (e1356ab, 7afd3b8)?

  • Image moves to the 2026-11-17 ROCm 10.0 nightly, which has the tuned TP4 mono decode paths ([ROCm][Perf][DSv4.1] Mono: tuned K1 at TP4 vllm-project/vllm#63893, #64883).
  • TP4 extends from c1-2 to c1-48, matching B300. Above c2 MI355X currently runs TP2 only, so it has no point at the interactivity end of the curve.
  • Running-request caps (max-num-seqs) at c4-c48, and TP2 c16 lowered from 4 to 2. --monokernel was already on, but it only takes decode steps of up to 48 rows (8 requests x 6 tokens). The caps keep every step at these points within that limit.

Local AgentX p90 interactivity rises 1.09-1.91x over the current official MI355X numbers (c16: 302 → 576) and reaches 0.66-0.92x of B300 vLLM TP4. The cost is higher TTFT, which is not scored. Details are in the description.

It is a fork PR, so if it looks right, please apply full-sweep-fail-fast (head f233ac2f). If you would rather carry it on a branch in this repo, that works for us too.

中文

@Fangzhou-Ai @seungrokj 麻烦看一下这个 MI355X DSv4.1-Flash vLLM 配置改动,尤其是这些上限和你们之前调优(e1356ab6、7afd3b85)的衔接。

  • 镜像更新为 2026-11-17 的 ROCm 10.0 nightly,包含 TP4 调优过的 mono 解码路径([ROCm][Perf][DSv4.1] Mono: tuned K1 at TP4 vllm-project/vllm#63893、#64883)。
  • TP4 从并发 1-2 扩展到 1-48,与 B300 一致。目前 MI355X 在并发 2 以上只跑 TP2,高交互性一端缺少测点。
  • 限制同时运行的请求数(max-num-seqs):c4-c48 加上限,TP2 c16 从 4 降到 2。--monokernel 原本就开着,但只覆盖不超过 48 行(8 个请求 × 6 token)的解码步;加上限后,这些测点的每个解码步都在这个范围内。

本地 AgentX 测试中,p90 交互性为当前官方 MI355X 的 1.09-1.91 倍(c16:302 → 576),达到 B300 vLLM TP4 的 0.66-0.92 倍。代价是 TTFT 升高,但 TTFT 不计分。详见 PR 描述。

这是 fork 提的 PR。如果没有问题,请打上 full-sweep-fail-fast 标签(head 为 f233ac2f)。如果你们更希望在主仓库开分支接手,我们也可以配合。

@Fangzhou-Ai Fangzhou-Ai added the non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dispatched trusted sweep run for approved external revision f233ac2f003ff49c7a2a3fd34d1adcb11fe8bfb7.
New commits are not trusted automatically; remove and re-add the primary sweep label to approve a new SHA.

已为获批的外部提交 f233ac2f003ff49c7a2a3fd34d1adcb11fe8bfb7 调度trusted sweep run。
后续新提交不会自动获得信任;如需批准新的 SHA,请移除并重新添加主扫描标签。

@functionstackx functionstackx removed the non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) label Nov 18, 2026
@functionstackx

Copy link
Copy Markdown
Collaborator

@fanxingran

Copy link
Copy Markdown
Collaborator Author

Thanks @functionstackx. I'm requesting write access now and will move this to an upstream branch, rebased on main with the full curve on one image.

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

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants