Skip to content

[AMD][DSv4.1] Add prefill cadence to MI355X vLLM TP2 c8/c16 and bump the nightly image / [AMD][DSv4.1] 为 MI355X vLLM TP2 c8/c16 添加 prefill 节奏并更新 nightly 镜像 - #4956

Closed
Fangzhou-Ai wants to merge 1 commit into
mainfrom
amd/dsv41flash-mi355x-vllm-prefill-cadence
Closed

Fangzhou-Ai wants to merge 1 commit into
mainfrom
amd/dsv41flash-mi355x-vllm-prefill-cadence

Conversation

@Fangzhou-Ai

@Fangzhou-Ai Fangzhou-Ai commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

MI355X DeepSeek-V4.1-Flash vLLM AgentX points at TP2 c8 and c16 currently let prefill chunks interleave with decode on every step (prefill-schedule-interval 1), so each prefill chunk interrupts the decode of the other running sequence. This PR sets prefill-schedule-interval: 96 on those two points: prefill is held until 96 steps after the last prefill-carrying step while a request is decoding, so decode runs in longer uninterrupted stretches. It also moves the TP4/TP2 grid to the latest vLLM ROCm nightly (nightly-083fbac02, 155 commits after the previous pin).

Only points where the cadence can take effect change:

  • Changed: TP2 c8 and c16 (running-sequence caps of 2 and 4, 8192-token chunks).
  • Unchanged: TP4 and TP2 c1 to c4 run one sequence at a time, so the cadence cannot apply. TP2 c32 and c64 keep their current settings.
  • Image: the whole TP4/TP2 grid of dsv41flash-fp4-mi355x-vllm-agentic-dspark reruns on the new image (9 points). The TP8 c1 key keeps its current image.

Risks: this trades TTFT for fewer decode interruptions at c8 and c16, and it has not been measured on MI355X. The sweep on this PR is the first measurement, so judge it on E2E normalized interactivity (which includes TTFT), not on decode interactivity alone. The image bump also moves every point of the grid.

AI model disclosure
  • Model/version: Claude Opus 5.5 (claude-opus-5-5[1m]). Role: analyzed CI artifacts and ran the local experiments that led to this change, earlier in the same working session.
  • Model/version: Claude Sonnet 5.5 (claude-sonnet-5-5[1m]). Role: prepared the recipe, master-config and changelog edits, and this PR 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, an authorized maintainer (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.
中文

MI355X 上 DeepSeek-V4.1-Flash 的 vLLM AgentX 点位在 TP2 c8 和 c16 目前每一步都允许 prefill 分块与 decode 交错(prefill-schedule-interval 为 1),因此每个 prefill 分块都会打断另一个正在运行的序列的 decode。本 PR 在这两个点位设置 prefill-schedule-interval: 96:当有请求正在 decode 时,prefill 被推迟到距上一次携带 prefill 的步骤 96 步之后,使 decode 能连续运行更长时间。同时将 TP4/TP2 网格更新到最新的 vLLM ROCm nightly(nightly-083fbac02,比之前的版本新 155 个提交)。

只修改节奏参数能够生效的点位:

  • 已修改: TP2 c8 和 c16(并发序列上限分别为 2 和 4,8192 token 分块)。
  • 未修改: TP4 和 TP2 的 c1 到 c4 一次只运行一个序列,节奏参数不起作用。TP2 c32 和 c64 保持当前设置。
  • 镜像: dsv41flash-fp4-mi355x-vllm-agentic-dspark 整个 TP4/TP2 网格(9 个点)将在新镜像上重跑。TP8 c1 保持原镜像。

风险:这是用 TTFT 换取更少的 decode 被打断,在 c8 和 c16 上,且尚未在 MI355X 上测量。本 PR 的扫描是首次测量,应以包含 TTFT 的 E2E 归一化交互性来判断,而不只看 decode 交互性。镜像更新同样会改变网格中的每个点。

AI 模型使用说明:

  • Claude Opus 5.5(claude-opus-5-5[1m]):在同一工作会话的早些时候,分析了 CI 产物,并运行了促成本次修改的本地实验。
  • Claude Sonnet 5.5(claude-sonnet-5-5[1m]):编写了配方、主配置、变更日志的修改以及本 PR 描述。

@github-actions

github-actions Bot commented Nov 9, 2026

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

Hold prefill until 96 steps after the last prefill-carrying step on the TP2 c8
and c16 points so decode runs in longer uninterrupted stretches, and move the
TP4/TP2 grid to the latest vLLM ROCm nightly.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Fangzhou-Ai Fangzhou-Ai changed the title [AMD][DSv4.1] Add B200-style prefill cadence to MI355X vLLM TP2 c8/c16 and bump the nightly image / [AMD][DSv4.1] 为 MI355X vLLM TP2 c8/c16 添加 B200 风格的 prefill 节奏并更新 nightly 镜像 [AMD][DSv4.1] Add prefill cadence to MI355X vLLM TP2 c8/c16 and bump the nightly image / [AMD][DSv4.1] 为 MI355X vLLM TP2 c8/c16 添加 prefill 节奏并更新 nightly 镜像 Nov 9, 2026
@Fangzhou-Ai
Fangzhou-Ai force-pushed the amd/dsv41flash-mi355x-vllm-prefill-cadence branch from f4f0134 to 0645f10 Compare November 9, 2026 21:06
@Fangzhou-Ai
Fangzhou-Ai marked this pull request as ready for review November 9, 2026 21:07
@Fangzhou-Ai
Fangzhou-Ai requested a review from a team November 9, 2026 21:07
@Fangzhou-Ai Fangzhou-Ai added the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Nov 9, 2026
@claude

claude Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Fangzhou-Ai's task in 26s —— View job


Review

LGTM: I found no blocking issues.

  • Changelog: one new entry is appended at the end of inferencex-e2e/perf-changelog.yaml. It covers dsv41flash-fp4-mi355x-vllm-agentic-dspark, the only key whose image or recipe changes. The separate -tp8-c1 key keeps the old image, as the entry says.
  • Image: vllm/vllm-openai-rocm:nightly-083fbac02…@sha256:07ebdd53… is a public Docker Hub reference pinned by digest.
  • Stream interval: the recipe sets no stream interval in any role, so vLLM's default of 1 applies. That is within the AgentX limit of 20.
  • Recipe: prefill-schedule-interval: 96 is added only to override_tp2_c8 and override_tp2_c16. It uses the same key spelling and value as the B200 and GB200 DSv4.1 vLLM recipes.
  • Not run here: I couldn't run infx.matrix.changed because the command needed permission I don't have. I checked the affected key from the diff by hand instead.
  • Not verified: these are the first AMD recipes to use prefill-schedule-interval, and I couldn't confirm that the new ROCm nightly accepts it. The flag is used in NVIDIA vLLM recipes, so it probably does. If the TP2 c8 and c16 servers fail at argument parsing, this flag is the first thing to check.

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

Code review found no issues

No high-confidence issues detected in this change.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

@Fangzhou-Ai Fangzhou-Ai added full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures and removed full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures labels Nov 9, 2026
max-cudagraph-capture-size: 16
max-num-batched-tokens: 8192
max-num-seqs: 2
# Holds prefill until 96 steps after the last prefill-carrying step while a request decodes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it improve throughput vs end to end performance (i.e. e2el) vs it unset?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am mirroring the B200 settings and to check if it helps.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. iirc in the b200 setup i checked that it helps both e2el and interactivity before merging

@Fangzhou-Ai

Copy link
Copy Markdown
Collaborator Author

interval is not helping for low conc (<=64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants