Skip to content

[AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: append TP4 concurrency 4-48 with running-request caps / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:追加 TP4 并发 4–48 点(限制同时运行的请求数) - #5158

Open
fanxingran wants to merge 9 commits into
mainfrom
dsv41flash-mi355x-vllm-tp4-append

Conversation

@fanxingran

@fanxingran fanxingran commented Nov 20, 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 from there to concurrency 64, while B300 vLLM runs TP4 up to concurrency 48. Above concurrency 2, MI355X therefore has no point at the interactivity end of the curve: at concurrency 16 its p90 interactivity is 309 (TP2) against B300's 629 (TP4).

This PR appends five TP4 points, concurrency 4, 16, 24, 32 and 48, the ones B300 also runs, to dsv41flash-fp4-mi355x-vllm-agentic-dspark. It builds on #5151 (merged 2026-11-21), which moved the whole curve to the 2026-11-19 nightly, and uses append-only: true: the sweep ran only the five new points on that image, and the 13 existing points keep their recipes and did not rerun.

  • TP4 conc-list: [1, 2] → [1, 2, 4, 16, 24, 32, 48], with new override_tp4_c24 and override_tp4_c48.
  • Running-request caps (max-num-seqs): 1 / 2 / 4 / 6 / 8 at concurrency 4 / 16 / 24 / 32 / 48, with 32768-token prefill chunks at concurrency 4 and 8192 elsewhere. --monokernel covers decode-only steps of at most 48 rows (8 requests x 6 DSpark tokens); the cap keeps every decode step inside it, and the other sessions queue.

It replaces #5125, which made the same TP4 changes from a fork on the 11-17 nightly. Two things differ: this PR leaves out TP4 concurrency 8, and it leaves TP2 concurrency 16 at cap 4, because an append-only entry cannot change an existing point.

Results

Sweep of this PR (run 44699914609, overlaid on the official chart): all five points passed, 3600 s each, on nightly-9c1d45c2, the image of the official curve.

TP4 concurrency p90 interactivity p90 E2E-normalized interactivity tok/s per GPU TTFT p90 (s) B300 vLLM p90 interactivity
4 746.3 216.2 10.3k 1.30 833.3
16 591.7 62.5 29.4k 3.98 628.9
24 409.8 58.5 47.6k 3.90 561.8
32 321.5 38.9 62.1k 6.99 469.5
48 266.0 19.9 81.1k 10.11 389.1

For comparison, the official MI355X TP2 points (2026-11-21) at concurrency 16 and 32: 308.6 and 193.8 p90 interactivity at 58.3k and 113.2k tok/s per GPU. The earlier sweep of #5125 (run 44370310742, 11-17 nightly, the same recipes) measured 746.3, 581.4, 408.2 and 321.5 p90 interactivity at concurrency 4, 16, 24 and 32.

Local runs on this PR's image (nightly-9c1d45c2) against the 11-17 nightly: agentx-harness 1.0.13, 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 with the recipe's arguments. Each cell is p90 interactivity / p90 E2E-normalized interactivity / tok/s per GPU.

TP4 concurrency nightly-9c1d45c2 (this PR) nightly-8ca76632 (#5125)
4 743 / 238 / 8.8k 748 / 156 / 8.3k
16 574 / 34 / 20.8k 561 / 35 / 20.8k
24 387 / 37 / 41.1k 386 / 34 / 41.0k
32 304 / 17 / 55.1k 308 / 16 / 55.2k
48 257 / 19 / 69.1k 261 / 19 / 69.0k

The two images agree within run-to-run noise (about 5% on the p90 values; the E2E value at concurrency 4 rests on about 235 requests). Median step times are also equal: a TP4 decode step with one request takes 4.54 ms on the 11-17 nightly and 4.56 ms on the 11-19 nightly, and a prefill step of up to 8192 tokens 104.1 ms and 103.2 ms.

Risks

AI model disclosure
  • Model/version: Claude Fable 5.2, 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, the validator and planner runs, and this description. No delegated agents.
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,并发 4–64 都是 TP2;B300 vLLM 的 TP4 一直用到并发 48。因此并发 2 以上 MI355X 在高交互性一端没有测点:并发 16 时 p90 交互性为 309(TP2),B300 为 629(TP4)。

本 PR 给 dsv41flash-fp4-mi355x-vllm-agentic-dspark 追加 5 个 TP4 点:并发 4、16、24、32、48,都是 B300 也有的并发。它基于 #5151(已于 2026-11-21 合并,把整条曲线换到 2026-11-19 nightly),使用 append-only: true:sweep 只在同一镜像上跑了这 5 个新点,已有的 13 个点 recipe 不变,也没有重跑。

  • TP4 conc-list:[1, 2] → [1, 2, 4, 16, 24, 32, 48],新增 override_tp4_c24 和 override_tp4_c48。
  • 同时运行的请求数上限(max-num-seqs):并发 4 / 16 / 24 / 32 / 48 分别为 1 / 2 / 4 / 6 / 8;并发 4 的 prefill chunk 为 32768 token,其余为 8192。--monokernel 只覆盖不超过 48 行(8 个请求 × 6 个 DSpark token)的纯 decode 步;上限让每个 decode 步都落在这个范围内,其余会话排队。

本 PR 取代 #5125(从 fork 提交、基于 11-17 nightly 的同一组 TP4 改动)。区别有两点:不含 TP4 并发 8;TP2 并发 16 的上限保持 4,因为 append-only 记录不能修改已有的点。

结果见上方两张表:本 PR 的 sweep(run 44699914609,5 个点全部通过,每点 3600 s,与官方曲线同一镜像);以及本 PR 镜像与 11-17 nightly 的本地对比,两个镜像的结果在噪声范围内一致。

风险

AI 模型使用说明:Claude Fable 5.2,通过 Cursor(运行环境不提供更细的版本标识)。工作内容:实验设计和 8x MI355X 上的本地测试、配置与 recipe 修改、changelog 记录、校验器和 planner 的运行,以及本描述。没有委派给其他 agent。

改动类型:配置变更。

chunfangamd and others added 5 commits November 20, 2026 02:19
Rerun every point of the DeepSeek-V4.1-Flash MI355X vLLM AgentX curve on
vllm/vllm-openai-rocm:nightly-9c1d45c2 (2026-11-19), so the TP4/TP2,
TP8 c1 and DP2/UMBP keys share one image. The TP4/TP2 and TP8 keys were
on nightly-4fab5a07 and the DP2/UMBP key on nightly-60bd6dd; a regular
sweep replaces the whole AgentX curve, so the three keys run together.

Recipes, topology, concurrencies, speculative decoding and KV offloading
are unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
… 4-48 with running-request caps

Co-authored-by: Cursor <cursoragent@cursor.com>
@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

Co-authored-by: Cursor <cursoragent@cursor.com>
@fanxingran fanxingran 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 Nov 20, 2026

@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 +72 to +75
# too little KV. max-num-seqs keeps every decode step of the capped points
# inside the mono decode kernels (at most 8 requests x 6 rows) and queues the
# other sessions: TP4 c4, c16, c24, c32 and c48 run 1, 2, 4, 6 and 8 requests,
# TP2 c16 and c32 run 4 and 8; c64 runs uncapped. TP4 c1-c2 and TP2 c1-c8

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): The rewritten block comment lists each point's max-num-seqs (1, 2, 4, 6, 8 for TP4; 4 and 8 for TP2), which repeats values the overrides below already set. AGENTS.md's mandatory comment rule says a comment must never restate the code, and this copy will go stale when a cap changes. Fix: keep only the reason, e.g. "max-num-seqs keeps every decode step inside the 48-row mono decode launch (8 requests x 6 rows); other sessions queue." Drop the per-concurrency list.

Why this was flagged

agentic.yaml:72-75 spells out the per-point caps ("TP4 c4, c16, c24, c32 and c48 run 1, 2, 4, 6 and 8 requests, TP2 c16 and c32 run 4 and 8; c64 runs uncapped"). The same values already appear as max-num-seqs in override_tp4_c4 (line 116), override_tp4_c16 (143), override_tp4_c24 (157), override_tp4_c32 (171), override_tp4_c48 (185), override_tp2_c16 (283) and override_tp2_c32 (297). AGENTS.md "Comments (mandatory, every file)" allows only a short technical reason for a line or block and says "never restate the code". The base comment also restated values, but this diff rewrites the comment and adds five more of them. The next PR that retunes a cap without editing this comment will leave it wrong, so readers get a false account of the recipe.

Verification: The block comment this PR rewrote, at agentic.yaml:74-75, says "TP4 c4, c16, c24, c32 and c48 run 1, 2, 4, 6 and 8 requests, TP2 c16 and c32 run 4 and 8; c64 runs uncapped". The overrides below already set exactly these values. AGENTS.md:46-50 says "never restate the code". The copied numbers will go stale the next time a cap is edited.

@fanxingran

Copy link
Copy Markdown
Collaborator Author

@chunfangamd a quick note on how this PR relates to your #5151.

#5125 was our earlier PR from a fork. The maintainers asked us to move it to an upstream branch, and I was waiting for write access. In the meantime #5151 moved the whole curve to the 11-19 nightly, so this PR does not repeat that part. It only appends the TP4 points that #5151 does not cover (concurrency 4, 16, 24, 32 and 48), using append-only: true stacked on #5151. None of your points rerun, and your branch is untouched.

Once the sweep here is green, would you mind doing the CODEOWNER sign-off when you have a moment? Thank you very much.

@github-actions

Copy link
Copy Markdown
Contributor

Co-authored-by: Cursor <cursoragent@cursor.com>
@fanxingran

Copy link
Copy Markdown
Collaborator Author

@chunfangamd @billishyahao @seungrokj could one of you do the CODEOWNER sign-off on this PR when you have a moment?

After the sign-off I will ask a maintainer for /use 44699914609. Thank you.

@fanxingran

Copy link
Copy Markdown
Collaborator Author

@cquil11 thank you for merging main and moving this PR to gpus-per-worker yesterday.

Other PRs appended to perf-changelog.yaml after that, so the PR conflicted again. I merged main once more (4d6d47f, [skip-sweep]): the only change is that this PR's entry is back at the end of the changelog. The recipe and the config key are as you left them, the PR is mergeable, and the checks are green.

Where it stands:

  • Sweep: run 44699914609 passed for all five new points (TP4 concurrency 4, 16, 24, 32 and 48). Its commit 1ace5dd9 is still in this branch's history.
  • CODEOWNER sign-off: still missing. I asked chunfangamd, billishyahao and seungrokj here on Nov 20 and Nov 23 and have not had a reply yet.

Is anything else needed from my side? Once the sign-off is in, could you comment /use 44699914609 and merge? I'll keep the branch in sync with main until then.

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

full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended)

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants