Skip to content

[AMD][AgentX] Add GLM-5.3 MXFP4 MI355X SGLang MTP AgentX recipe / [AMD][AgentX] 新增 GLM-5.3 MXFP4 MI355X SGLang MTP AgentX 配方 - #4593

Merged
edwingao28 merged 23 commits into
mainfrom
feature/xiaofei/glm53-mi355x-sglang-agentx
Nov 18, 2026
Merged

edwingao28 merged 23 commits into
mainfrom
feature/xiaofei/glm53-mi355x-sglang-agentx

Conversation

@xiaofei-zheng

@xiaofei-zheng xiaofei-zheng commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

MI355X has GLM-5.3 SGLang AgentX only at FP8 on TP8 (#4875); from concurrency 8 up, the MI355X (SGLang) frontier is still the GLM-5.2 MXFP4 TP4/EP4 HiCache and DCP4 arms.

This adds glm5.3-fp4-mi355x-sglang-agentic-mtp:

  • amd/GLM-5.3-Quark-MXFP4-AttnFP8 on lmsysorg/sglang-rocm:v0.5.22-rocm10-mi35x-20261025, pinned by digest. Loading this checkpoint needs [Fix] [AMD] Quark: fix Quark block-FP8 loading in DeepSeek loader sgl-project/sglang#40776, which the v0.5.22 release does not contain.
  • TP4/EP4 at concurrency 4 to 20 with a 180 GB/rank write-back HiCache tier and --cuda-graph-backend-prefill breakable; --max-running-requests and --cuda-graph-max-bs-decode are twice the concurrency. Write-back copies pages to the host tier only on eviction, so the tier adds to device KV capacity instead of mirroring it. Against write-through on the same image (run 43234373287), P90 interactivity rises 7% at concurrency 14, 26% at 16 and 1% to 4% at 8 to 12.
  • TP8/EP1 at concurrency 1 to 4 with GPU-resident KV and eager prefill: under breakable prefill graphs, aiter gemm_afp4wfp4 on this image returns non-finite rows for the TP8 dense down_proj shape.
  • SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python: each rank otherwise picks the Rust or Python TreeCore on its own, and the two fold the write-back reclaim digest differently, so a mixed worker fails the HiCache sync assertion ([Fix] mem_cache: Agree on one TreeCore backend across ranks sharing a prefix tree sgl-project/sglang#48112).
  • EAGLE MTP with --speculative-num-steps 5; AgentX forces that depth's golden AL, 3.48, from glm-5.3-nvfp4__mtp__native__default-default, with no infx change.
  • Integer all-reduce stays as the image sets it (ROCM_QUICK_REDUCE_QUANTIZATION=INT8); GLM-5.3 is grandfathered under the MODELS.md all-reduce policy.

SGLang cookbook: sgl-project/sglang#50678 (merged) updates the MI355X AgentX section from sgl-project/sglang#46825 to these settings.

PR sweep run 43742834521 passed every point and the GSM8K eval (em_strict 0.9742 ± 0.0044 at TP4/EP4 concurrency 20). Dashboard axes (performance):

Arm Concurrency P90 interactivity (tok/s/user) Total tokens per $1
TP4/EP4 HiCache 4 167.8 16.08M
TP4/EP4 HiCache 8 124.4 28.30M
TP4/EP4 HiCache 10 113.3 35.47M
TP4/EP4 HiCache 12 100.1 35.61M
TP4/EP4 HiCache 14 85.4 41.70M
TP4/EP4 HiCache 16 65.9 48.76M
TP4/EP4 HiCache 20 53.9 58.19M
TP8/EP1 1 260.4 5.67M
TP8/EP1 2 228.8 5.87M
TP8/EP1 4 218.8 8.93M

TP4/EP4 concurrency 8 to 20 are on the pooled MI355X (SGLang) Pareto frontier: concurrency 8 to 16 sit 7% to 57% above the online line in P90 interactivity at equal tokens per dollar, and concurrency 20 dominates GLM-5.2 MXFP4 DCP4 concurrency 24, the online curve's highest-throughput point. TP4/EP4 concurrency 4 and the TP8/EP1 points are below the online line, which the GLM-5.2 MXFP4 TP4/EP4 and TP8/EP1 points and the GLM-5.3 FP8 TP8 points (#4875) set there.

Validation details
  • In every benchmark job of the sweep, all ranks used the Python TreeCore and no rank hit the HiCache sync assertion; the TP4/EP4 jobs ran write-back.
  • At concurrency 16, write-through prefilled 24.4M uncached prompt tokens over the whole job, warmup included, against 15.6M with write-back (run 43548730327).
  • The checkpoint's NextN layer loads with its shipped Quark config (quant=quark in the server log): MXFP4 routed and shared experts, FP8 per-block attention and indexer wq_b/wk, BF16 eh_proj, router gate and indexer weights_proj.
AI model disclosure
  • Model/version: Claude Opus 5.5 (Cursor agent); claude-opus-5.5 (Claude Code).
  • Role: Claude Opus 5.5 in Cursor wrote the config, recipe, changelog entry and the earlier local test plan, updated this description after the TP8/EP1 arm and concurrency 4 were restored, and opened [Doc] [AMD] cookbook: Run the GLM-5.3 MI355X AgentX TP4 command with write-back HiCache sgl-project/sglang#50678. claude-opus-5.5 in Claude Code set write-back HiCache, the TreeCore pin and the concurrency list, ran the PR sweeps and the local validation runs and compared the sweeps with the dashboard frontier. Other Claude Code agents ran earlier local benchmarks; their exact model versions could not be verified.
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, a maintainer with write access to the repository 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 上的 GLM-5.3 SGLang AgentX 目前只有 TP8 的 FP8 配置(#4875);从并发 8 起,MI355X(SGLang)的前沿仍是 GLM-5.2 MXFP4 的 TP4/EP4 HiCache 与 DCP4 两组配置。

本 PR 新增 glm5.3-fp4-mi355x-sglang-agentic-mtp:

  • 在按 digest 固定的镜像 lmsysorg/sglang-rocm:v0.5.22-rocm10-mi35x-20261025 上运行 amd/GLM-5.3-Quark-MXFP4-AttnFP8。加载该 checkpoint 需要 [Fix] [AMD] Quark: fix Quark block-FP8 loading in DeepSeek loader sgl-project/sglang#40776,v0.5.22 正式版不包含这个改动。
  • TP4/EP4,并发 4 到 20,每个 rank 180 GB 的 write-back HiCache 主机层,并开启 --cuda-graph-backend-prefill breakable;--max-running-requests 与 --cuda-graph-max-bs-decode 都设为并发数的两倍。write-back 只在页被逐出显存时写入主机层,主机层因此叠加在显存 KV 容量之上,而不是复制一份显存池。与同一镜像上的 write-through(run 43234373287)相比,P90 interactivity 在并发 14 提高 7%,并发 16 提高 26%,并发 8 到 12 提高 1% 到 4%。
  • TP8/EP1,并发 1 到 4,KV 全部留在显存,prefill 不走 CUDA graph:在 breakable prefill graph 下,该镜像的 aiter gemm_afp4wfp4 对 TP8 dense down_proj 的形状会输出非有限值。
  • SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python:否则各 rank 会各自选择 Rust 或 Python TreeCore,两者计算 write-back 回收摘要的方式不同,混用的 worker 会在 HiCache 同步断言处失败([Fix] mem_cache: Agree on one TreeCore backend across ranks sharing a prefix tree sgl-project/sglang#48112)。
  • EAGLE MTP,--speculative-num-steps 5;AgentX 强制使用该深度的 golden AL 3.48(来自 glm-5.3-nvfp4__mtp__native__default-default),不改动 infx。
  • 整数 all-reduce 沿用镜像设置(ROCM_QUICK_REDUCE_QUANTIZATION=INT8);GLM-5.3 在 MODELS.md 的 all-reduce 政策中属于豁免模型。

SGLang cookbook:sgl-project/sglang#50678 (已合并)把 sgl-project/sglang#46825 新增的 MI355X AgentX 小节更新为上述设置。

PR 扫描 run 43742834521 的全部测试点与 GSM8K 评估均通过(TP4/EP4 并发 20 下 em_strict 为 0.9742 ± 0.0044)。各点数据见上方表格(性能)。

TP4/EP4 并发 8 到 20 都在 GLM-5.2 与 GLM-5.3 合并统计的 MI355X(SGLang)Pareto 前沿上:在相同 tokens/$ 下,并发 8 到 16 的 P90 interactivity 比线上曲线高 7% 到 57%;并发 20 支配线上曲线吞吐量最高的点 GLM-5.2 MXFP4 DCP4 并发 24。TP4/EP4 并发 4 与 TP8/EP1 的各点低于线上曲线,这一段由 GLM-5.2 MXFP4 的 TP4/EP4 与 TP8/EP1 点以及 GLM-5.3 FP8 TP8 的点(#4875)构成。

验证细节:

  • 扫描中每个基准测试 job 的所有 rank 都使用 Python TreeCore,没有 rank 触发 HiCache 同步断言;TP4/EP4 的 job 运行的是 write-back。
  • 并发 16 下,整个 job(含 warmup)中 write-through 预填充了 24.4M 个未命中缓存的 prompt token,write-back 为 15.6M(run 43548730327)。
  • checkpoint 的 NextN 层按其自带的 Quark 配置加载(server log 中为 quant=quark):路由专家与共享专家为 MXFP4,attention 与 indexer wq_b/wk 为按块 FP8,eh_proj、router gate 与 indexer weights_proj 为 BF16。

AI 模型使用说明:Claude Opus 5.5(Cursor agent)编写了配置、配方、changelog 条目和早期的本地测试计划,在 TP8/EP1 配置与并发 4 恢复后更新了本说明,并提交了 sgl-project/sglang#50678。claude-opus-5.5(Claude Code)设定了 write-back HiCache、TreeCore 固定和并发列表,运行了 PR 扫描和本地验证,并按 dashboard 前沿对比了扫描结果。其他 Claude Code agent 运行过早期本地基准测试,其具体模型版本无法确认。

改动类型:新功能、配置变更。

Found by Hyperloom; reviewed and measured on MI355X.

@xiaofei-zheng xiaofei-zheng added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 28, 2026

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread inferencex-e2e/configs/amd-master.yaml Outdated
Comment on lines +1626 to +1628
# GLM-5.3 MXFP4 on MI355X via SGLang with MTP K=5, same arms as
# glm5.2-fp4-mi355x-sglang-agentic-mtp. Loading this Quark checkpoint needs
# sgl-project/sglang#40776, which v0.5.22 predates, hence the dated nightly.

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.

🟡 nit (optional): Maintainers get two new header comments that break the repo's mandatory comment rules. The block above glm5.3-fp4-mi355x-sglang-agentic-mtp describes the config and says where its arms came from ("same arms as glm5.2-..."). The recipe's override-section header restates the overrides and claims a cap of 64 that no override reaches, since the highest is 32. Fix: drop both headers. Keep only a one-line note on the image: line saying the nightly is needed for sgl-project/sglang#40776. Same pattern at 2 sites (configs/amd-master.yaml:1626-1628, glm5.3/sglang/mi355x-fp4-mtp/agentic.yaml:51-52). [also at: inferencex-e2e/configs/amd-master.yaml:1626 - nit: Maintainers get descriptive header comments that the mandatory AGENTS.md comment rules forbid. The master-config header opens with "GLM-5.3 MXFP4 on MI355X via SGLang with MTP K=5, same arms as glm5.2-fp4-mi355x-sglang-agentic-mtp", which describes the config and where it came from.; +1 more]

Why this was flagged

AGENTS.md:56-58 (Comments, mandatory, every file) bans header comments that describe a config, recipe, override or section. It also bans history comments about where code came from, and comments that restate the code. The new amd-master.yaml:1626-1628 block opens with "GLM-5.3 MXFP4 on MI355X via SGLang with MTP K=5, same arms as glm5.2-fp4-mi355x-sglang-agentic-mtp", which is a config description plus a provenance note. The recipe at agentic.yaml:51-52 has a section header that restates the overrides below it. Its "up to 64" is also wrong for this recipe, because the largest cuda-graph-max-bs-decode is 32 (override_tp4_c16_hicache). The base branch has neither comment. The only part worth keeping is the reason for the dated nightly image (sgl-project/sglang#40776), and it belongs as a short line on image:.

Verification: The trigger is always present, since both comments are added by this diff. Site 1, inferencex-e2e/configs/amd-master.yaml lines 1626-1628, describes the config and where it came from. Site 2, glm5.3/sglang/mi355x-fp4-mtp/agentic.yaml lines 51-52, restates the override values and mentions a cap of 64 that no override reaches, since the highest is 32. Nothing breaks at runtime.

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.

Fixed in 83ca0bd: dropped both comments and kept a one-line note above image: on why the dated nightly is needed.

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

@xiaofei-zheng

Copy link
Copy Markdown
Collaborator Author

@chunfangamd The sweep is green: run 40621344245 passed all 9 points and the GSM8K eval (em_strict 0.9727). Could you post the PR_REVIEW_CHECKLIST sign-off on this head (83ca0bdf)? The description now has the sweep results, the draft precision and the reason for the infx change. The SGLang cookbook PR sgl-project/sglang#46825 is approved by BBuf and waiting to merge.

The only conflict with main is the tail of perf-changelog.yaml. I haven't pushed a merge, so the swept head stays unchanged; merge_with_reuse resolves it when the PR is merged with /use. Thanks!

…-mi355x-sglang-agentx

# Conflicts:
#	inferencex-e2e/infx/golden_al_distribution/glm5.3_mtp.yaml
#	inferencex-e2e/perf-changelog.yaml
…-mi355x-sglang-agentx

# Conflicts:
#	inferencex-e2e/configs/amd-master.yaml
#	inferencex-e2e/infx/golden_al_distribution/README.md
#	inferencex-e2e/infx/golden_al_distribution/README_zh.md
#	inferencex-e2e/infx/golden_al_distribution/glm5.3_mtp.yaml
#	inferencex-e2e/perf-changelog.yaml
@xiaofei-zheng xiaofei-zheng added full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Nov 5, 2026
@xiaofei-zheng xiaofei-zheng added full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Nov 12, 2026
@xiaofei-zheng xiaofei-zheng added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 13, 2026
…-mi355x-sglang-agentx

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
@xiaofei-zheng xiaofei-zheng added full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Nov 14, 2026
@xiaofei-zheng xiaofei-zheng changed the title [AMD][AgentX] Add GLM-5.3 MXFP4 MI355X SGLang MTP AgentX recipe [AMD][AgentX] Add GLM-5.3 MXFP4 MI355X SGLang MTP AgentX recipe / [AMD][AgentX] 新增 GLM-5.3 MXFP4 MI355X SGLang MTP AgentX 配方 Nov 14, 2026
@xiaofei-zheng

Copy link
Copy Markdown
Collaborator Author

@chunfangamd The sweep on the current head (687cd07) is green: run 43548730327 passed all six TP4/EP4 HiCache points (concurrency 8-20) and the GSM8K eval (em_strict 0.9773 ± 0.0041 at concurrency 20).

On the dashboard axes (performance), every point is on the MI355X (SGLang) frontier. At equal tok/$, P90 interactivity is 3% (c8) to 56% (c16) above the current line, and c20 (55.4 tok/s/user, 58.5M tok/$) extends the line past the online c24 point.

Changes since your last look: the TP8 arm and c4 are removed, HiCache runs write-back with SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python (mixed Rust/Python TreeCore ranks fail the write-back reclaim check, sgl-project/sglang#48112), and c20 is added.

Could you review and post /use 43548730327? It replaces the earlier /reuse-sweep-run 40621344245.

chunfangamd and others added 3 commits November 15, 2026 17:36
…-mi355x-sglang-agentx

Co-authored-by: Cursor <[email protected]>

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
… MXFP4 MI355X SGLang AgentX

The curve stopped at P90 interactivity 120 tok/s/user (TP4/EP4 c8). Restore
TP8/EP1 at concurrency 1, 2 and 4 and TP4/EP4 write-back HiCache at
concurrency 4 so it reaches the low-latency end, as the GLM-5.2 MXFP4
config does. TP8/EP1 c1/c2/c4 and TP4/EP4 c4 already passed on this image
in run 40621344245, and write-back c4 passed as the canary of run
43336237720. The TP4/EP4 c8-c20 points are unchanged.

Co-authored-by: Cursor <[email protected]>
…-5.3 MXFP4 MI355X SGLang AgentX entry

List TP4/EP4 write-back HiCache at concurrency 4-20 and TP8/EP1 at
concurrency 1, 2 and 4, state the 2x admission and decode CUDA graph rule
for both arms, and say the Python TreeCore pin applies to every rank.

Co-authored-by: Cursor <[email protected]>
@chunfangamd chunfangamd added full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Nov 15, 2026
@chunfangamd

Copy link
Copy Markdown
Collaborator

Hi @xiaofei-zheng , could you create the corresponding SGLang cookbook PR?

@xiaofei-zheng

Copy link
Copy Markdown
Collaborator Author

@chunfangamd The cookbook PR is up: sgl-project/sglang#50678. It updates the GLM-5.3 MI355X AgentX section from sgl-project/sglang#46825 to the current recipe (write-back HiCache, breakable prefill and the TreeCore variable on TP4/EP4, concurrency 4-20; the TP8/EP1 command is unchanged). I also updated the description for run 43742834521 and your restored TP8/EP1 arm and concurrency 4. I will ping you once the cookbook PR merges.

@xiaofei-zheng

Copy link
Copy Markdown
Collaborator Author

/use 43742834521

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

@xiaofei-zheng staged run 43742834521.

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

@xiaofei-zheng

Copy link
Copy Markdown
Collaborator Author

@chunfangamd The SGLang cookbook PR sgl-project/sglang#50678 is merged, and run 43742834521 is pinned with /use and staged. The PR now only conflicts with main on the perf-changelog.yaml tail, which merge_with_reuse resolves. Could you merge it when you get a chance? Thanks!

# Ranks pick the Rust or Python TreeCore on their own, and the two fold the write-back
# reclaim digest differently, so mixed ranks fail the HiCache sync assertion
# (sgl-project/sglang#48112); pin every rank to the Python core.
SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND: 'python'

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.

In the image the PR uses, by default, SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND = EnvStr("rust"). @xiaofei-zheng, could you please update the SGLang cookbook and explicitly mention SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND: 'python'?

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.

@chunfangamd The SGLang cookbook already sets SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python: sgl-project/sglang#50678 (merged) adds it to the MI355X AgentX TreeCore note and the TP4·EP4 launch command (GLM-5.3.mdx L141-L147, published page). The TP8·EP1 command leaves it out because TP8/EP1 runs without HiCache, so the write-back reclaim check that the variable guards never runs there.

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

As a PR reviewer and CODEOWNER, I have reviewed this and have:

Checklist items
  • Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
  • Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
  • Verified that this PR has passed PR validation. Please link to GitHub Action workflow that shows this. https://github.com/SemiAnalysisAI/InferenceX/actions/runs/43742834521
  • Verified that this PR passes evals. Please link to GitHub Action workflow that shows this. https://github.com/SemiAnalysisAI/InferenceX/actions/runs/43742834521
  • Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
  • Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL. Explicitly verified that SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.
  • For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
  • Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
  • Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • Verified that new models disable integer all-reduce, with SGLang ROCm explicitly setting ROCM_QUICK_REDUCE_QUANTIZATION=NONE. Existing models are grandfathered per MODELS.md.
  • For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
  • If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
  • For official InferenceX (non-preview), verified that established models use upstream engine images built from master (or the equivalent default development branch), with new models transitioning within a reasonable time after release. See MODELS.md.
  • If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
  • Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
    • I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source repo and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
  • Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/<PR_NUMBER>.md — named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section.
  • If this PR uses append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it.
  • If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
  • Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details.

Additional detail section:

  • Scope and validation: Reviewed head 6d82eff5 against the current checklist and MODELS.md on 2026-11-16. Lint and Tests passed. Sweep 43742834521 passed all 10 benchmark points and its real eval; the later main merge does not change this recipe or its execution paths. Authorized sweep reuse is recorded.
  • Draft precision: The shipped checkpoint's native NextN uses MXFP4 routed/shared experts, FP8 attention/indexer projections, BF16 exclusions and FP32 router correction bias. Verified checkpoint headers and the pinned Quark loader preserve this scheme: expert W4A4 and dynamic FP8 linear inputs, with no submission-side draft requantization. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is absent and defaults false. Target and draft both use FP8 E4M3 KV.
  • Serving and policy: The digest-pinned official lmsysorg/sglang-rocm:v0.5.22-rocm10-mi35x-20261025 image uses upstream-main SGLang ca4bedfffae1fb248bbb55aaf9177c37f95d7d19, without submission-side engine patches. GLM-5.3 AgentX is active; native index sharing is unchanged. Image-default INT8 all-reduce is allowed by the current GLM-5.3 grandfathering policy. Dynamo metrics and append-only checks are N/A.
  • AgentX: Chat-completions serving applies the checkpoint template. Performance runs use the committed GLM-5.3 NVFP4/native MTP golden curve at thinking-on K5, AL 3.48; accuracy eval uses real acceptance. Effective stream interval is 1.
  • Cookbook—outstanding: SGLang #50678 is merged. Once the cookbook get updated with SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND: 'python'. It is OK.
  • Pareto: Measured results yield 7/10 frontier points for the combined MI355X/SGLang FP4 AgentX curve, using total token throughput/GPU versus P90 E2EL: TP8/c4 and TP4/c8,10,12,14,16,20. No historical or interpolated points counted.

Signed: @chunfangamd

@github-actions

Copy link
Copy Markdown
Contributor

✅✅✅ Verdict: PASS ✅✅✅

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — @chunfangamd is a listed owner of inferencex-e2e/configs/amd-master.yaml and srt-slurm-recipes/**/mi355x-*/; perf-changelog.yaml falls only under the catch-all.

✅ Check 1 (Sweep on in-PR commit): PASS — In-PR commit 92f3f1fb has every agentic / and canary job plus the agentic eval / job green in run 43742834521 (attempt 1, all 10 points). Pinned 6d82eff5 is a main merge that only brings unrelated kimik3.1, wan22 and docs changes. The glm5.3 recipe and master entry are unchanged, and this PR's changelog entry stays last.

✅ Check 2 (Evals): PASS — GSM8K em_strict 0.9742 ± 0.0044 (n=1319) at TP4/EP4 c20, on the same digest-pinned image. The closest cohort (glm5.3 fp4 MTP, dynamo-trt VR200) scores 0.9788: a gap of 0.0045 against a 2-sigma threshold of 0.0118. There is no sibling topology. This is a new config, not a conditional-path change.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#50678 is MERGED (2026-11-16T04:26:17Z). The GLM-5.3 cookbook MI355X section on main already has the same image digest, full TP4·EP4 and TP8·EP1 launch commands, SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python, write-back HiCache 180, breakable prefill graphs, FP8 KV, the DSA triton backends, chunked prefill 32768, mem 0.85, EAGLE 5/1/6, and the 2×concurrency batch rule. The sign-off called the TreeCore setting outstanding, but it is already in the merged PR. --enable-metrics is observability only.

✅ Check 4 (Reuse command): PASS — /use 43742834521 posted by xiaofei-zheng (permission and role both write); the run matches Check 1.

✅ Check 5 (Checklist template): PASS — All 21 current template items are present. The only unchecked item, the recipe-coverage parent, is explained in the additional detail section, and its sub-item is checked.

✅ Check 6 (Upstream image/ordering/provenance): PASS — lmsysorg/sglang-rocm:v0.5.22-rocm10-mi35x-20261025@sha256:bb337091… is an upstream lmsysorg image. Its stated SGLang commit ca4bedff (2026-10-25) is an ancestor of sglang main, which matches the cookbook's "built from main" note. This is an SGLang-only entry, so the engine-first ordering rule does not apply.

✅ Check 7 (Deprecated models): PASS — MODELS.md lists glm5.3 agentic coding (MTP) as active.

✅ Check 8 (No arch hacks / integer all-reduce): PASS — No hf-overrides or architecture edits. The image-default ROCM_QUICK_REDUCE_QUANTIZATION=INT8 is allowed because glm5.3 is in the grandfathering baseline matrix at 2a45791d. The TP4/EP4 GSM8K eval covers that lever on the same image.

✅ Check 9 (Chat template): PASS — AgentX trace replay goes through the chat-completions server path with the glm47/glm45 parsers, so the checkpoint's chat template is applied.

✅ Check 10 (No engine patches): PASS — No patches, setup scripts, source edits or wheel installs; the recipe passes only args and env.

✅ Check 11 (Golden AL): PASS — The run's submission JSON shows SGLANG_SIMULATE_ACC_LEN=3.48 with match-expected and real-draft-token. That equals the golden value in glm-5.3-nvfp4__mtp__native__default-default.yaml for thinking_on K5, standard verify (signoff_facts golden-al).

➖ Check 12 (Append-only): N/A — The new changelog entry does not set append-only: true.

✅ Check 13 (Draft precision): PASS — The draft is the embedded NextN layer 78 of amd/GLM-5.3-Quark-MXFP4-AttnFP8@ff022d18. It is loaded as shipped under the checkpoint's Quark config: MXFP4 experts, FP8 attention projections, and BF16 eh_proj, gate and weights_proj (excluded in config.json). There are no draft quantization, dtype or path overrides. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is unset and absent from the run config. Target and draft share the FP8 KV cache.

✅ Check 14 (Pareto coverage): PASS — Curve glm5.3 / agentic / MI355X-SGLang / fp4 / run 43742834521 / P90 E2EL has 7/10 frontier points: TP8 c4 and TP4 c8, 10, 12, 14, 16, 20. Inputs are tput_per_gpu and e2el.p90 from results_bmk, source SHA 92f3f1fb, single image.

✅ Check 15 (PR description): PASS — The title, body and changelog match the pinned recipe: image and digest, TP4/EP4 c4–20 with write-back HiCache 180, TP8/EP1 c1–4, TreeCore pin, EAGLE K5, AL 3.48, INT8 default, and the eval score.

➖ Check 16 (NVIDIA overview): N/A — Only MI355X (AMD) configurations are affected.

➖ Check 17 (Metrics publication): N/A — This is a direct SGLang deployment; no Dynamo TRT-LLM path is affected.

✅ Check 18 (Recipe consistency): PASS — Master TP/EP and concurrency lists match the recipe overrides (tp4 c4–20, tp8 c1/2/4), and all 10 points generate. The digest-pinned image resolves. No orchestration or dispatch changes. No points removed, no retuned regressions. Stream interval is unset on every point, so it uses the SGLang default of 1 (60 or less).

Assessed commit: 6d82eff51b773258a79f845d6b8471372bc7fca1.

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

Approving from Core. Reviewed head 6d82eff5 against run 43742834521 (attempt 1, tested SHA 92f3f1fb, part of this PR).

  • 10/10 points passed: TP4/EP4 HiCache at concurrency 4–20 and TP8/EP1 at 1–4. The generator's recipe fingerprints at the main-merged tree match all 10. The recipe and master entry are byte-identical at 92f3f1fb, 6d82eff5 and after merging main.
  • Server logs show write-back HiCache at 180 GB/rank, breakable prefill only on TP4, the Python TreeCore on every rank, stream interval 1, and SGLANG_SIMULATE_ACC_LEN=3.48 (golden glm-5.3-nvfp4, thinking on, K5). Measured mean accept length is 3.48.
  • GSM8K em_strict 0.9742 ± 0.0044 (n=1319) at TP4/EP4 c20 with real acceptance, above the 0.90 threshold.
  • The only conflict is the tail of perf-changelog.yaml. merge_with_reuse keeps main's bytes and re-appends this PR's block, so the tested recipe does not change.
  • The new glm5.3/mi355x/sglang/fp4 curve hides no published point.

For the record: this checkpoint quantizes its NextN layer (MXFP4 W4A4 experts, FP8 attention). nvidia/GLM-5.3-NVFP4, the source of the 3.48 curve, excludes model.layers.78*, and amd/GLM-5.2-MXFP4 excludes its NextN experts. Synthetic AL does not show any acceptance cost. I'm treating it as served as shipped under the current draft-precision rule.

Follow-ups (non-blocking):

  • Drop SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python after sgl-project/sglang#48112 merges and the image moves past it.
  • Add a collection block to the GLM-5.3 golden curve so the agentic AL gate runs (separate PR).
  • The CODEOWNER checklist's cookbook item is satisfied by merged sgl-project/sglang#50678 (TreeCore variable included).
中文

以 Core 身份批准。已对照 run 43742834521(attempt 1,测试 SHA 92f3f1fb,属于本 PR)审阅 head 6d82eff5。

  • 10 个测试点全部通过(TP4/EP4 HiCache 并发 4–20,TP8/EP1 并发 1–4);合并 main 后的 generator 指纹与 run 中 10 个点一致;recipe 与 master 条目在 92f3f1fb、6d82eff5 及合并 main 后逐字节相同。
  • server 日志确认:write-back HiCache 每 rank 180 GB,仅 TP4 使用 breakable prefill,所有 rank 使用 Python TreeCore,stream interval 为 1,SGLANG_SIMULATE_ACC_LEN=3.48(golden glm-5.3-nvfp4,thinking on,K5),实测平均 accept len 3.48。
  • GSM8K em_strict 0.9742 ± 0.0044(n=1319,TP4/EP4 并发 20,真实 acceptance),高于 0.90 阈值。
  • 唯一冲突在 perf-changelog.yaml 末尾;merge_with_reuse 保留 main 的字节并把本 PR 的条目追加到末尾,测试过的 recipe 不变。
  • 新曲线 glm5.3/mi355x/sglang/fp4 不会隐藏任何已发布的点。

备注:该 checkpoint 对 NextN 层做了量化(专家 MXFP4 W4A4,attention FP8)。golden 曲线 3.48 来自 nvidia/GLM-5.3-NVFP4,它排除了 model.layers.78*;amd/GLM-5.2-MXFP4 也排除了 NextN 专家。合成 AL 看不出 acceptance 上的代价。按现行 draft 精度规则,我视其为按发布形态使用。

后续事项(不阻塞):

  • sgl-project/sglang#48112 合并且镜像更新后,删除 SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python。
  • 为 GLM-5.3 golden 曲线补充 collection 块,使 agentic AL gate 能运行(单独 PR)。
  • CODEOWNER 清单中的 cookbook 项已由已合并的 sgl-project/sglang#50678 满足(含 TreeCore 变量)。

同步 main 并保留已验证的 sweep 提交及 changelog 历史。
@edwingao28

Copy link
Copy Markdown
Collaborator

/use 43742834521

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

@edwingao28 staged run 43742834521.

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

@edwingao28
edwingao28 merged commit 7c6ffb3 into main Nov 18, 2026
29 checks passed
@edwingao28
edwingao28 deleted the feature/xiaofei/glm53-mi355x-sglang-agentx branch November 18, 2026 01:48
@github-actions

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 10 0 10 0 0
eval 1 1 1 0 0
trace 10 0 0 0 0
power 10 0 0 0 0

benchmarkFiles 11, rawBenchmarkRows 20, coveredByPerJobFiles 10, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 1319, gpuMetricSamplesNew 240332, powerPublicationPoints 10, 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

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.

3 participants