Repository navigation
[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
Conversation
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>
Co-authored-by: Cursor <cursoragent@cursor.com>
… 4-48 with running-request caps Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thanks for the contribution!
中文感谢你的贡献!
|
Co-authored-by: Cursor <cursoragent@cursor.com>
| # 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 |
There was a problem hiding this comment.
🟡 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.
|
@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 Once the sweep here is green, would you mind doing the CODEOWNER sign-off when you have a moment? Thank you very much. |
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=44699914609 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=44699914609 |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@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 |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@cquil11 thank you for merging Other PRs appended to Where it stands:
Is anything else needed from my side? Once the sign-off is in, could you comment |
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 usesappend-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.conc-list:[1, 2]→[1, 2, 4, 16, 24, 32, 48], with newoverride_tp4_c24andoverride_tp4_c48.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.--monokernelcovers 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.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.nightly-9c1d45c2(this PR)nightly-8ca76632(#5125)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
1ace5dd9, stacked on [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: rerun the whole curve on the 11-19 nightly / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:在 11-19 nightly 上重跑整条曲线 #5151's head before it merged. The current head adds only the merge ofmain:agentic.yamland this config key inamd-master.yamlare identical to the swept commit.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./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 不变,也没有重跑。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 的本地对比,两个镜像的结果在噪声范围内一致。
风险
1ace5dd9上,当时 [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: rerun the whole curve on the 11-19 nightly / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:在 11-19 nightly 上重跑整条曲线 #5151 尚未合并,本 PR 叠在它的 head 上。当前 head 只多了一次对main的合并:agentic.yaml和amd-master.yaml里这个 config key 与被测提交完全一致。AI 模型使用说明:Claude Fable 5.2,通过 Cursor(运行环境不提供更细的版本标识)。工作内容:实验设计和 8x MI355X 上的本地测试、配置与 recipe 修改、changelog 记录、校验器和 planner 的运行,以及本描述。没有委派给其他 agent。
改动类型:配置变更。