Skip to content

[AMD][AgentX] Add GLM-5.3 MXFP4 MI355X SGLang MTP AgentX recipe - #4575

Closed
xiaofei-zheng wants to merge 2 commits into
SemiAnalysisAI:mainfrom
xiaofei-zheng:feature/xiaofei/glm53-mi355x-sglang-agentx
Closed

xiaofei-zheng wants to merge 2 commits into
SemiAnalysisAI:mainfrom
xiaofei-zheng:feature/xiaofei/glm53-mi355x-sglang-agentx

Conversation

@xiaofei-zheng

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

Copy link
Copy Markdown
Collaborator

Summary

InferenceX has no single-node GLM-5.3 SGLang AgentX config on MI355X; the only MI355X GLM-5.3 entry is the TileRT prefill/decode-disaggregated one at concurrency 1.

This adds glm5.3-fp4-mi355x-sglang-agentic-mtp with the two arms of glm5.2-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 with a 180 GB/rank HiCache tier at concurrency 4–16, and TP8/EP1 without offload at concurrency 1–4.
  • EAGLE MTP with --speculative-num-steps 5 and SGLANG_OPT_USE_TOPK_V2=true.

The only infx change is a provisional K=5 cell (3.61) in glm5.3_mtp.yaml, copied from GLM-5.2 as its K=3 cell was, plus the matching README rows. Without it the harness cannot resolve the acceptance target for this draft depth.

SGLang cookbook coverage: sgl-project/sglang#46825.

Local end-to-end runs with the InferenceX AgentX client on the pinned image chose the draft depth and the top-k kernel (3600 s replays, one fresh server per run):

Arm Draft steps SGLANG_OPT_USE_TOPK_V2 Runs P50 interactivity (tok/s/user) Output (tok/s/GPU)
TP4/EP4, conc 10 5 true 2 135.3 110.3
TP4/EP4, conc 10 5 false 2 131.2 109.3
TP4/EP4, conc 10 3 true 1 129.6 110.1
TP8/EP1, conc 4 5 true 2 221.4 26.9
TP8/EP1, conc 4 5 false 2 219.1 26.1
TP8/EP1, conc 4 3 true 1 203.4 25.7

GSM8K em_strict with real draft verification: 0.9719 ± 0.0045 on TP4/EP4 and 0.9757 ± 0.0042 on TP8/EP1.

Validation details
  • 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, BF16 eh_proj and router gate.
  • Observed accept length matched the forced golden value in every run.
AI model disclosure
  • Model/version: Claude Opus 5.5 (Cursor agent).
  • Role: wrote the config, recipe, golden AL cell, changelog entry and the local test plan, and checked the results. Claude Code agents on two MI355X hosts ran the local benchmarks; their exact model version 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, 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.

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

@github-actions

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +5 -4

Generally most InferenceX submissions don't need to add changes to the infx package. On the off chance they do, generally the diff is small. Please prompt your agent to clean your PR to keep your diff to only necessary & minimal changes too. We have an increased code quality bar for changes to the infx package.

中文

大多数 InferenceX 提交通常不需要修改 infx 包。即使确实需要,改动通常也很小。请让你的 agent 清理 PR,使改动只包含必要且最小的内容。infx 包的改动有更高的代码质量要求。

@xiaofei-zheng

Copy link
Copy Markdown
Collaborator Author

@chunfangamd Could you add the full-sweep-fail-fast label so the sweep can run? This PR comes from a fork, so I can't add labels myself. The description has our local performance and GSM8K results. Once the sweep is green, could you also post the PR_REVIEW_CHECKLIST sign-off as CODEOWNER?

The matching SGLang cookbook PR is sgl-project/sglang#46825. Thanks!

@xiaofei-zheng

Copy link
Copy Markdown
Collaborator Author

Superseded by #4593, which uses a branch in this repository instead of a fork. Closing this one.

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