Skip to content

[AMD][AgentX] Add GLM-5.3 FP8 MI355X SGLang MTP AgentX recipe with the AMD monokernel / [AMD][AgentX] 新增 GLM-5.3 FP8 MI355X SGLang MTP AgentX 配方(AMD monokernel) - #4829

Closed
jhinpan wants to merge 5 commits into
SemiAnalysisAI:mainfrom
jhinpan:feat/glm53-fp8-mi355x-sglang-monokernel
Closed

jhinpan wants to merge 5 commits into
SemiAnalysisAI:mainfrom
jhinpan:feat/glm53-fp8-mi355x-sglang-monokernel

Conversation

@jhinpan

@jhinpan jhinpan commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

InferenceX has no GLM-5.3 FP8 SGLang config on MI355X. The MI355X GLM-5.3 entries are the TileRT prefill/decode-disaggregated one (FP8, concurrency 1) and the MXFP4 SGLang one in #4593. The GLM-5.3 monokernel of sgl-amd-mono needs the FP8 block-128 checkpoint, so it cannot run in the MXFP4 config.

This adds glm5.3-fp8-mi355x-sglang-agentic-mtp: zai-org/GLM-5.3 FP8 on one MI355X node at TP8 EP1, with EAGLE MTP 3-1-4, an FP8 E4M3 KV cache, and --enable-amd-monokernel at concurrency 1, 2, 4, and 10. The recipe is the command of "MI355X FP8 deployment with the AMD monokernel" in the SGLang GLM-5.3 cookbook (sgl-project/sglang#46662). That section follows the MXFP4 recipe of #4593 (amd/GLM-5.3-Quark-MXFP4-AttnFP8); the monokernel accepts only the FP8 block-128 checkpoint. The image is lmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261105 (sha256:33efb7dc35be), the first MI35x nightly whose SGLang pins sgl-amd-mono e52803f9d2 (sgl-project/sglang#45202), which contains sgl-project/sgl-amd-mono#85 and #86.

sgl-project/sglang#46662 merged on 2026-11-06 (c117e31f9f); it documents --enable-amd-monokernel and the 3-1-4 draft for this MI355X FP8 command. The branch is kept in sync with main, and infx generate renders the same four recipes as the local 3600-s runs. The sweep follows.

Local 3600-s A/B on MI355X (not an InferenceX result): the pinned image as shipped, this recipe as bound by infx generate on this branch, against the same recipe without --enable-amd-monokernel; golden accept length 2.94 in both arms.

Point tok/s/GPU P90 E2E-norm. interactivity P90 E2EL (s) P90 TTFT (s)
TP8 c1 1941 → 3121 (+60.8 %) 84.9 → 142.2 (+67.4 %) 24.5 → 12.6 2.03 → 1.61
TP8 c2 2034 → 3218 (+58.2 %) 87.9 → 122.6 (+39.4 %) 23.3 → 13.6 1.13 → 0.97
TP8 c4 3139 → 4361 (+38.9 %) 88.9 → 117.6 (+32.4 %) 23.2 → 11.7 1.11 → 0.97
TP8 c10 6811 → 7529 (+10.6 %) 63.6 → 70.6 (+11.0 %) 23.6 → 18.9 0.98 → 1.03
Validation details
  • Setup: 8x MI355X on one node, all 8 GPUs idle over 30 samples and held for the whole run; InferenceX AgentX client (InferenceX aece39cb, agentx-harness 1.0.12); a 3600-s window per point; a fresh server per point and arm, with the arm order swapped per point.
  • Noise: an A/A pair of the no-monokernel arm at concurrency 2 moves tok/s/GPU by 4.6 %, P90 E2E-normalized interactivity by 3.5 %, and P90 E2EL by 6.4 %.
  • Matched requests (same conversation and turn), median per-request change with the monokernel: ITL −55.3 %, −55.0 %, −53.1 %, and −11.4 % at concurrency 1, 2, 4, and 10; TTFT between −1.7 % and −0.3 %. A/A matched ITL: +0.6 %.
  • Coverage: the monokernel serves verify steps of one or two running requests; in its arm that is 100 %, 99.5 %, 97.7 %, and 61.4 % of decode batches at concurrency 1, 2, 4, and 10.
  • Quality: GSM8K through infx.bench eval with real acceptance, all 1319 questions: 0.9735 → 0.9765 at concurrency 2 (exact McNemar p = 0.42) and 0.9757 → 0.9750 at concurrency 10 (p = 1.00), strict-match, without → with the monokernel.
  • Route: every rank logs monokernel glm53_hip on gfx950: widths [4, 8] built and the NextN glm53_nextn_hip launches in the monokernel arm; the realized accept length is 2.95 in every agentic run.
  • Draft: no draft-specific setting, and SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not set. The draft is the checkpoint's embedded NextN layer (model.layers.78): FP8 E4M3 routed experts, shared experts, and attention projections with block scales, and BF16 eh_proj, router gate, and norms, as stored; the image loads it with its default handling.
  • sgl-amd-mono chore: require codeowner pr approval for release #85 and Remove TP2 in gptoss to save some time in the CI #86 on this recipe (local 900 s, sgl-amd-mono 517040fb against ca929b7d mounted over the 20261103 image): matched ITL −9.6 %, −10.6 %, −10.4 %, and −1.7 % at concurrency 1, 2, 4, and 10.
AI model disclosure
  • Model/version: Claude Opus 5.5 (the name the Cursor runtime exposes; the exact API identifier could not be verified)
  • Role: wrote the recipe, the master-config entry, and the changelog block; ran the local A/B runs and the GSM8K evals; drafted this PR
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.
中文

InferenceX 目前没有 MI355X 上的 GLM-5.3 FP8 SGLang 配置。MI355X 上现有的 GLM-5.3 条目是 TileRT 的 PD 分离配置(FP8,并发 1)和 #4593 的 MXFP4 SGLang 配置。sgl-amd-mono 的 GLM-5.3 monokernel 需要 FP8 block-128 权重,所以不能放进 MXFP4 配置。

本 PR 新增 glm5.3-fp8-mi355x-sglang-agentic-mtp:在一台 MI355X 上以 TP8 EP1 运行 zai-org/GLM-5.3 FP8,使用 EAGLE MTP 3-1-4、FP8 E4M3 KV cache 和 --enable-amd-monokernel,并发 1、2、4、10。配方与 SGLang GLM-5.3 cookbook 中 "MI355X FP8 deployment with the AMD monokernel" 一节(sgl-project/sglang#46662)的命令一致。该节位于 #4593 的 MXFP4 配方(amd/GLM-5.3-Quark-MXFP4-AttnFP8)之后;monokernel 只接受 FP8 block-128 checkpoint。镜像为 lmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261105(sha256:33efb7dc35be),这是第一个 SGLang pin 了 sgl-amd-mono e52803f9d2(sgl-project/sglang#45202)的 MI35x nightly,其中包含 sgl-project/sgl-amd-mono#85 和 #86。

sgl-project/sglang#46662 已于 2026-11-06 合入(c117e31f9f);该 PR 记录了这条 MI355X FP8 命令中的 --enable-amd-monokernel 和 3-1-4 draft。分支与 main 保持同步,infx generate 生成的四个配方与本地 3600 s 测试所用的完全一致。sweep 随后进行。

上方表格是 MI355X 上的本地 3600 秒 A/B(不是 InferenceX 结果):所固定的镜像按原样运行,对比本分支 infx generate 绑定的配方与去掉 --enable-amd-monokernel 的同一配方,两臂 golden 接受长度均为 2.94。噪声、配对请求、覆盖率、GSM8K 质量和路由证明见 Validation details。

AI 模型说明:Claude Opus 5.5(Cursor 运行环境给出的名称;无法确认确切的 API 标识),负责编写配方、master config 条目和 changelog,运行本地 A/B 与 GSM8K 评测,并起草本 PR。

…nokernel

Add glm5.3-fp8-mi355x-sglang-agentic-mtp: zai-org/GLM-5.3 FP8 on one MI355X
node at TP8 EP1 with EAGLE MTP 3-1-4, an FP8 E4M3 KV cache, and
--enable-amd-monokernel at concurrency 1, 2, 4, and 10, as in section 3.6 of
the SGLang GLM-5.3 cookbook (sgl-project/sglang#46662).

新增 glm5.3-fp8-mi355x-sglang-agentic-mtp:在一台 MI355X 上以 TP8 EP1 运行
zai-org/GLM-5.3 FP8,使用 EAGLE MTP 3-1-4、FP8 E4M3 KV cache 和
--enable-amd-monokernel,并发 1、2、4、10,与 SGLang GLM-5.3 cookbook
第 3.6 节(sgl-project/sglang#46662)一致。
Pin lmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261105 by digest. It bundles
SGLang 1305b1830a and sgl-amd-mono e52803f9d2, which contains
sgl-project/sgl-amd-mono#85 and SemiAnalysisAI#86.

按 digest 固定 lmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261105。它打包了
SGLang 1305b1830a 和 sgl-amd-mono e52803f9d2,后者包含
sgl-project/sgl-amd-mono#85 和 SemiAnalysisAI#86。
Resolve the perf-changelog.yaml conflict with
infx.workflows.prepare_perf_changelog_merge resolve-conflict: main stays
byte for byte, and this PR's one block moves to the physical end.

使用 infx.workflows.prepare_perf_changelog_merge resolve-conflict 解决
perf-changelog.yaml 的冲突:main 的内容逐字节保留,本 PR 的一个条目移到
文件末尾。
@jhinpan
jhinpan marked this pull request as ready for review November 6, 2026 08:01
@jhinpan
jhinpan requested a review from a team November 6, 2026 08:01

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

…-sglang-monokernel

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
jhinpan added a commit that referenced this pull request Nov 6, 2026
The recipe moved from the fork PR #4829 to the same-repository PR #4875,
so the entry's pr-link names the PR that carries it.

配方从 fork PR #4829 迁移到同仓库 PR #4875,因此条目的 pr-link 改为
承载它的 PR。
@jhinpan

jhinpan commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #4875, which carries the same commits from a same-repository branch so that run-sweep.yml can run the sweep.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant