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) - #4875

Merged
edwingao28 merged 10 commits into
mainfrom
feat/glm53-fp8-mi355x-sglang-monokernel
Nov 8, 2026
Merged

edwingao28 merged 10 commits into
mainfrom
feat/glm53-fp8-mi355x-sglang-monokernel

Conversation

@jhinpan

@jhinpan jhinpan commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

InferenceX has no GLM-5.3 FP8 SGLang config on MI355X. The only MI355X GLM-5.3 entry is the TileRT prefill/decode-disaggregated one (FP8, concurrency 1); the open #4593 proposes an MXFP4 SGLang one. 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. infx generate on this branch renders the same four recipes as the local 3600-s runs. It replaces #4829, which came from a fork: run-sweep.yml runs only on a same-repository branch. 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 averages 2.94 (median 2.95) in every agentic run, against the golden 2.94.
  • 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。本分支上 infx generate 生成的四个配方与本地 3600 s 测试所用的完全一致。本 PR 替代来自 fork 的 #4829:run-sweep.yml 只在同仓库分支上运行。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)一致。
将 perf-changelog 条目的 PR 链接指向 #4829。
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 #86.

按 digest 固定 lmsysorg/sglang-rocm:v0.5.23-rocm720-mi35x-20261105。它打包了
SGLang 1305b1830a 和 sgl-amd-mono e52803f9d2,后者包含
sgl-project/sgl-amd-mono#85 和 #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 的一个条目移到
文件末尾。
…-sglang-monokernel

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
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。
…-sglang-monokernel

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
Comment thread inferencex-e2e/perf-changelog.yaml Resolved
@jhinpan jhinpan added the AMD label Nov 6, 2026
@chunfangamd chunfangamd added full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) all-evals Expand eval selection to every fixed-sequence config and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

@functionstackx functionstackx left a comment

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 for the contribution! 1 quick question is if the monokernel is running in fp8 weights or r y'all online quantization it to fp4?

Sorry if this is dumb question as this might be the first time I seen an sglang fp8 mega/monokernel lol

@jhinpan

jhinpan commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator Author

Thanks for the contribution! 1 quick question is if the monokernel is running in fp8 weights or r y'all online quantization it to fp4?

Sorry if this is dumb question as this might be the first time I seen an sglang fp8 mega/monokernel lol

The monokernel uses the FP8 weights of zai-org/GLM-5.3. It does not quantize any weight to FP4, online or offline.

  • Checkpoint: The recipe serves zai-org/GLM-5.3, the official FP8 block-128 release from Z.ai. The TileRT MI355X config uses the same checkpoint. The recipe sets no --quantization, so SGLang loads the weights as stored.
  • Admission: The monokernel accepts only an FP8 block-128 checkpoint (spec.py#L264-L271). With an MXFP4 checkpoint, the server stops at startup: needs the FP8 block-128 checkpoint, got 'quark' None.
  • Compute: The attention and the routed experts read the FP8 block-128 weights that SGLang loads (kernel.py#L2474-L2476, config.py#L89). The MXFP4 modes in config.py are for other MXFP4 checkpoints. The startup log lists each weight copy that the monokernel makes. No copy is FP4.
  • Accuracy: The monokernel does not change GSM8K accuracy: 0.9765 with it and 0.9735 without it at c2, and 0.9750 and 0.9757 at c10.

If this answers your question, please review again.

@edwingao28

Copy link
Copy Markdown
Collaborator

/use 42308722810

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

@edwingao28 staged run 42308722810.

This run remains available across future /stage-results requests. Staging the same run ID again updates its staged data. Staging workflow

@edwingao28
edwingao28 dismissed functionstackx’s stale review November 8, 2026 22:37

contributor replied

@edwingao28

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run 42308722810

刷新当前 PR 的复用检查,不启动新的 GPU sweep。
@edwingao28
edwingao28 merged commit 02f02d2 into main Nov 8, 2026
29 checks passed
@edwingao28
edwingao28 deleted the feat/glm53-fp8-mi355x-sglang-monokernel branch November 8, 2026 22:43
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Ingest report — ✅ Results ingested into the production database.

Ingest workflow · Merge Ingest run · Benchmark source run

Category new duplicate skipped unmapped failed
benchmark 4 0 4 0 0
eval 4 4 12 0 0
trace 4 0 0 0 0
power 4 0 0 0 0

benchmarkFiles 5, rawBenchmarkRows 8, coveredByPerJobFiles 4, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 5276, gpuMetricSamplesNew 148272, powerPublicationPoints 4, changelogEntriesWritten 1

Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun.

中文

Ingest 报告 — ✅ 结果已写入 production 数据库。

上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。

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

Labels

all-evals Expand eval selection to every fixed-sequence config AMD full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants