Skip to content

[AMD][Qwen3.5] Run MI355X FP8 AgentX on the ROCm 10 sglang-rocm v0.5.23-20261126 image with the monokernel at low concurrency / [AMD][Qwen3.5] 在 ROCm 10 的 sglang-rocm v0.5.23-20261126 镜像上运行 MI355X FP8 AgentX,并在低并发启用 monokernel - #5261

Open
chuyeh wants to merge 6 commits into
mainfrom
amd/qwen35-fp8-mi355x-agentx-mono-rocm10-20261126

Conversation

@chuyeh

@chuyeh chuyeh commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

main runs qwen3.5-fp8-mi355x-sglang-agentic-mtp on lmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261109 with SGLang's own decode at every point. This PR extends the closed #5188 (ROCm 10 image only) with the AMD monokernel from the closed #5126, to raise interactivity at low concurrency:

  • Image: the latest ROCm 10 nightly, pinned by digest: lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261126@sha256:857a9bbc46bb807aa49fbf6a7fc4944c9b72e9eba6d9f5e4b2c8ba8adc0eb2ec (Docker Hub: pushed 2026-11-26T12:08:50Z by the scheduled release run sgl-project/sglang run 45788927067, SGLang main at 91fee1bd8a). It installs sgl-amd-mono ba75a45, which carries the Qwen3.5 FP8 monokernel fixes (see Risk).
  • --enable-amd-monokernel at c1, c4 and c8 only. sgl_amd_mono.qwen35_a17b runs TP4 block-FP8 decode and this recipe's EAGLE target verify (top-k 1, 3 steps, 4 draft tokens) as a few launches per layer, for steps of 1 to 8 running requests. Wider steps, prefill and the MTP draft keep SGLang's forward, so c12 through c80 would only pay the kernel's setup and are left without it. Unlike [AMD][Qwen3.5] Run MI355X FP8 AgentX on the rocm/sgl-dev 20261121 image with the monokernel #5126, which set the flag in the base args, this keeps the high-concurrency points on the path they run today.
  • SGLANG_ROCM_SMALLM_FP8_BS=0 at c1, c4 and c8. On this image's SGLang, the monokernel's startup check already sets this (with setdefault) to turn off SGLang's small-M FP8 helper, so the explicit value changes nothing those points run. It puts them in their own GSM8K eval group, evaluated at c8, because eval groups split on engine env and not on server args.
  • --hybrid-cache-checkpoints-level 3 at every point. sglang#49886 (merged 2026-11-13) made level 2 the default: hybrid Mamba state is checkpointed only at fork points and request ends, one state per path. The first sweep on this image (run 45830733513) ran with level 2 and regressed against [AMD][Qwen3.5] Bump MI355X FP8 AgentX image to sglang-rocm v0.5.23-20261109 and honor mem-fraction-static / [AMD][Qwen3.5] 将 MI355X FP8 AgentX 镜像升级至 sglang-rocm v0.5.23-20261109 并使 mem-fraction-static 生效 #4975's sweep (run 43037834183) by 19% to 55% in P90 interactivity from c12 up and by up to 34% in throughput at c80, on every node, including the same node at c14 and c80. KV pool, HiCache host pool, acceptance length and cold 16k-chunk prefill speed (about 38.8k tok/s) were unchanged; the GPU prefix-cache hit rate fell from 95.4% to 90.6% at c12 (KV pool 10% used, so no eviction) and from 87.3% to 77.7% at c80, nearly doubling prefill tokens. Level 3 restores per-chunk checkpoints, the behavior the 20261109 image ran.

Every other recipe setting is unchanged: ROCM_QUICK_REDUCE_QUANTIZATION=NONE, SGLANG_AITER_HONOR_EXPLICIT_MEM_FRACTION=1, mem-fraction-static 0.8, stream-interval 50, the HiCache write_through policy and the TP4 grid (c1 through c80, 19 points). Other MI355X arms stay on their current tags.

The image and the monokernel change together at c1 to c8, and the image changes alone at c12 to c80. No ROCm 10 baseline exists for this recipe (#5188's sweep was cancelled), so a difference at c12 to c80 against the published v0.5.23-rocm720-mi35x-20261109 results describes the whole ROCm 10 image.

Risk:

Image comparison

From the Docker Hub image configs. The 20261109 values are as recorded in #5188. The 20261126 column is the pinned second push (sha256:857a9bbc…); the first push differs only in SGLang (51212704) and sgl-amd-mono (32a12203).

v0.5.23-rocm720-mi35x-20261109 (main) v0.5.23-rocm10-mi35x-20261126 (this PR)
ROCm 7.2.0 10.0.0
Base OS Ubuntu 22.04 Ubuntu 24.04
SGLang main of 2026-11-09 (commit not recorded) 91fee1bd8a (2026-11-26T09:03Z)
AITER 285579b6 581579ab
Triton upstream 42270451, built from source ROCm fork 3.8.0 669b31ac (wheel suffix .rocm10.0.0)
sgl-amd-mono not used by this recipe ba75a45
AI model disclosure
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.
中文

main 上 qwen3.5-fp8-mi355x-sglang-agentic-mtp 使用 lmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261109,所有并发点都走 SGLang 自身的 decode。本 PR 在已关闭的 #5188(仅更换为 ROCm 10 镜像)基础上,加入已关闭的 #5126 中的 AMD monokernel,以提升低并发下的交互性:

  • **镜像:**最新的 ROCm 10 nightly,按摘要(digest)固定:lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261126@sha256:857a9bbc46bb807aa49fbf6a7fc4944c9b72e9eba6d9f5e4b2c8ba8adc0eb2ec(Docker Hub 推送时间 2026-11-26T12:08:50Z,由定时发布任务 sgl-project/sglang 运行 45788927067 基于 SGLang main 的 91fee1bd8a 构建)。其安装的 sgl-amd-mono 为 ba75a45,包含 Qwen3.5 FP8 monokernel 的修复(见风险)。
  • 仅在 c1、c4、c8 启用 --enable-amd-monokernel。 sgl_amd_mono.qwen35_a17b 将 TP4 block-FP8 decode 和本配方的 EAGLE target verify(top-k 1、3 步、4 个草稿 token)合并为每层少量几次 launch,适用于 1 至 8 个运行中请求的步骤。更宽的步骤、预填充和 MTP 草稿仍走 SGLang 的 forward,因此 c12 至 c80 只会承担该内核的初始化开销,不启用它。与 [AMD][Qwen3.5] Run MI355X FP8 AgentX on the rocm/sgl-dev 20261121 image with the monokernel #5126 在 base 参数中全局启用不同,这样高并发点保持当前路径。
  • **c1、c4、c8 设置 SGLANG_ROCM_SMALLM_FP8_BS=0。**在该镜像的 SGLang 上,monokernel 的启动检查已(通过 setdefault)设置该值以关闭 SGLang 的 small-M FP8 辅助内核,因此显式设置不会改变这些点的实际运行路径。由于评测分组按引擎环境变量而非服务参数划分,这样它们会单独构成一个 GSM8K 评测组,在 c8 进行评测。
  • 所有点设置 --hybrid-cache-checkpoints-level 3。sglang#49886(2026-11-13 合并)将默认值改为 2:混合模型的 Mamba 状态只在分叉点和请求结束时做检查点,每条路径保留一个状态。该镜像上的第一次扫描(运行 45830733513)使用 level 2,与 [AMD][Qwen3.5] Bump MI355X FP8 AgentX image to sglang-rocm v0.5.23-20261109 and honor mem-fraction-static / [AMD][Qwen3.5] 将 MI355X FP8 AgentX 镜像升级至 sglang-rocm v0.5.23-20261109 并使 mem-fraction-static 生效 #4975 的扫描(运行 43037834183)相比,c12 及以上的 P90 交互性下降 19% 至 55%,c80 吞吐量最多下降 34%,所有节点均如此(c14 和 c80 在同一节点上也一样)。KV 池、HiCache 主机池、接受长度和冷启动 16k 分块的预填充速度(约 38.8k tok/s)均未变化;GPU 前缀缓存命中率在 c12 从 95.4% 降至 90.6%(KV 池仅使用 10%,没有驱逐),在 c80 从 87.3% 降至 77.7%,预填充 token 数几乎翻倍。Level 3 恢复按分块做检查点,即 20261109 镜像的行为。
  • Level 3 预计可恢复前缀缓存的损失,但不一定能弥补全部差距:ROCm 10 镜像同时改变了 ROCm、AITER 和 Triton。使用 level 3 的扫描将显示剩余差距。

其余配方设置均不变:ROCM_QUICK_REDUCE_QUANTIZATION=NONE、SGLANG_AITER_HONOR_EXPLICIT_MEM_FRACTION=1、mem-fraction-static 0.8、stream-interval 50、HiCache write_through 策略以及 TP4 并发网格(c1 至 c80,共 19 个点)。其他 MI355X 配置保持原镜像。

c1 至 c8 同时改变镜像和 monokernel,c12 至 c80 只改变镜像。该配方尚无 ROCm 10 基线(#5188 的扫描已取消),因此 c12 至 c80 与已发布的 v0.5.23-rocm720-mi35x-20261109 结果的差异反映的是整个 ROCm 10 镜像。

风险:

镜像对比(来自 Docker Hub 镜像配置;20261109 的数值引自 #5188):ROCm 7.2.0 → 10.0.0;Ubuntu 22.04 → 24.04;SGLang 2026-11-09 的 main(未记录提交)→ 91fee1bd8a(2026-11-26T09:03Z);AITER 285579b6 → 581579ab;Triton 从源码构建的上游 42270451 → ROCm 分支 3.8.0 669b31ac;sgl-amd-mono 本配方此前未使用 → ba75a45。首次推送仅在 SGLang(51212704)和 sgl-amd-mono(32a12203)上不同。

AI 模型使用说明:

**改动类型:**配置变更。

…y with the monokernel at concurrency 1-8

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, agentx-fast, and evals-last 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 和 evals-last 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

chuyeh and others added 2 commits November 26, 2026 04:28
Co-authored-by: Cursor <cursoragent@cursor.com>
…ightly carrying sgl-amd-mono ba75a45

Co-authored-by: Cursor <cursoragent@cursor.com>
@chuyeh
chuyeh marked this pull request as ready for review November 26, 2026 12:11
@chuyeh
chuyeh requested a review from a team November 26, 2026 12:11
@chuyeh chuyeh added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 26, 2026
@chuyeh
chuyeh requested a review from zijiecode as a code owner November 26, 2026 12:11
@claude

claude Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @chuyeh's task in 20s —— View job


LGTM - no blocking issues found

What I checked
  • Image: a public Docker Hub tag@sha256 reference. Other amd-master.yaml entries already use this form, and infx/launch/backends/slurm/squash.py strips the digest before passing the image to enroot.
  • Monokernel flag: enable-amd-monokernel: true is added only to override_tp4_c1, override_tp4_c4 and override_tp4_c8, the same way other MI355X recipes set it. c12 through c80 do not get it.
  • AgentX stream interval: stays at 50, under the limit of 60.
  • perf-changelog.yaml: the new entry is at the end of the file, covers qwen3.5-fp8-mi355x-sglang-agentic-mtp, has no append-only and has a PR link.
  • Not run: the tool that lists which config keys changed (infx.matrix.changed) needs approval in this environment. The diff changes only this one config and its recipe, and the new changelog entry covers that key.

…M8K eval group

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

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

@chuyeh chuyeh self-assigned this Nov 26, 2026
chuyeh and others added 2 commits November 26, 2026 19:09
… MI355X AgentX

Co-authored-by: Cursor <cursoragent@cursor.com>
…-agentx-mono-rocm10-20261126

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

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml

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.

1 participant