Repository navigation
[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
Open
chuyeh wants to merge 6 commits into
chuyeh wants to merge 6 commits into
Conversation
…y with the monokernel at concurrency 1-8 Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Thanks for the contribution!
中文感谢你的贡献!
|
Co-authored-by: Cursor <cursoragent@cursor.com>
…ightly carrying sgl-amd-mono ba75a45 Co-authored-by: Cursor <cursoragent@cursor.com>
chuyeh
marked this pull request as ready for review
November 26, 2026 12:11
chuyeh
requested review from
1am9trash,
billishyahao,
chunfangamd and
seungrokj
as code owners
November 26, 2026 12:11
Contributor
|
Claude finished @chuyeh's task in 20s —— View job LGTM - no blocking issues found What I checked
|
…M8K eval group Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=45921027003 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=45921027003 |
… 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
5 of 11 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainrunsqwen3.5-fp8-mi355x-sglang-agentic-mtponlmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261109with 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: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, SGLangmainat91fee1bd8a). It installssgl-amd-monoba75a45, which carries the Qwen3.5 FP8 monokernel fixes (see Risk).--enable-amd-monokernelat c1, c4 and c8 only.sgl_amd_mono.qwen35_a17bruns 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=0at c1, c4 and c8. On this image's SGLang, the monokernel's startup check already sets this (withsetdefault) 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 3at 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-static0.8,stream-interval50, the HiCachewrite_throughpolicy 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-20261109results describes the whole ROCm 10 image.Risk:
sha256:98b812618fd9b36ec23db015f24c3f3559adef9d2f71426a124f442d57d574b1, a manual dispatch on SGLang51212704) installssgl-amd-mono32a12203(sgl-amd-mono#161), which predates both fixes for the failure that closed [AMD][Qwen3.5] Run MI355X FP8 AgentX on the rocm/sgl-dev 20261121 image with the monokernel #5126: sgl-amd-mono#178 (the FP8 MoE router importedqwen_moe_topk_output, which this SGLang no longer has, so decode graph capture raisedImportError) and sgl-amd-mono#179 (the FP8 decode GEMV failed to lower on Triton 3.8; both pushes ship ROCm-fork Triton 3.8.0 at669b31ac). SGLang pinned the fixedba75a45in sglang#52533, and the scheduled nightly built from it. The digest pin keeps the cluster from reusing a cached first push. Neither fix has run on this recipe yet; the c1 canary is the first test.Image comparison
From the Docker Hub image configs. The
20261109values are as recorded in #5188. The20261126column is the pinned second push (sha256:857a9bbc…); the first push differs only in SGLang (51212704) andsgl-amd-mono(32a12203).v0.5.23-rocm720-mi35x-20261109(main)v0.5.23-rocm10-mi35x-20261126(this PR)mainof 2026-11-09 (commit not recorded)91fee1bd8a(2026-11-26T09:03Z)285579b6581579ab42270451, built from source669b31ac(wheel suffix.rocm10.0.0)sgl-amd-monoba75a45AI model disclosure
sgl-amd-monopin against the upstream fixes, prepared the image bump, the per-point monokernel flag, theperf-changelog.yamlentry and this description. No delegated agents.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.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,以提升低并发下的交互性:lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261126@sha256:857a9bbc46bb807aa49fbf6a7fc4944c9b72e9eba6d9f5e4b2c8ba8adc0eb2ec(Docker Hub 推送时间 2026-11-26T12:08:50Z,由定时发布任务 sgl-project/sglang 运行 45788927067 基于 SGLangmain的91fee1bd8a构建)。其安装的sgl-amd-mono为ba75a45,包含 Qwen3.5 FP8 monokernel 的修复(见风险)。--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 参数中全局启用不同,这样高并发点保持当前路径。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 镜像的行为。其余配方设置均不变:
ROCM_QUICK_REDUCE_QUANTIZATION=NONE、SGLANG_AITER_HONOR_EXPLICIT_MEM_FRACTION=1、mem-fraction-static0.8、stream-interval50、HiCachewrite_through策略以及 TP4 并发网格(c1 至 c80,共 19 个点)。其他 MI355X 配置保持原镜像。c1 至 c8 同时改变镜像和 monokernel,c12 至 c80 只改变镜像。该配方尚无 ROCm 10 基线(#5188 的扫描已取消),因此 c12 至 c80 与已发布的
v0.5.23-rocm720-mi35x-20261109结果的差异反映的是整个 ROCm 10 镜像。风险:
sha256:98b812618fd9b36ec23db015f24c3f3559adef9d2f71426a124f442d57d574b1,基于 SGLang51212704的手动触发)安装的sgl-amd-mono为32a12203(sgl-amd-mono#161),早于导致 [AMD][Qwen3.5] Run MI355X FP8 AgentX on the rocm/sgl-dev 20261121 image with the monokernel #5126 关闭的两个问题的修复:sgl-amd-mono#178(FP8 MoE 路由导入qwen_moe_topk_output,而该 SGLang 已不再提供,decode CUDA graph 捕获时抛出ImportError)和 sgl-amd-mono#179(FP8 decode GEMV 在 Triton 3.8 上无法编译;两次推送均使用 ROCm 分支 Triton 3.8.0669b31ac)。SGLang 通过 sglang#52533 固定到已修复的ba75a45,定时 nightly 即基于此构建。按摘要固定可避免集群复用缓存的首次推送。这两个修复尚未在本配方上运行过,c1 canary 是首次验证。镜像对比(来自 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);AITER285579b6→581579ab;Triton 从源码构建的上游42270451→ ROCm 分支 3.8.0669b31ac;sgl-amd-mono本配方此前未使用 →ba75a45。首次推送仅在 SGLang(51212704)和sgl-amd-mono(32a12203)上不同。AI 模型使用说明:
sgl-amd-mono固定版本与上游修复的关系,准备镜像升级、按并发点启用的 monokernel 参数、perf-changelog.yaml条目及本说明。未委派其他 agent。**改动类型:**配置变更。