Skip to content

[NVIDIA][AgentX] GB300 GLM-5.3 NVFP4 Dynamo+SGLang: NVIDIA megakernel points and the disaggregated curve on SGLang 1.0 / [NVIDIA][AgentX] GB300 GLM-5.3 NVFP4 Dynamo+SGLang:NVIDIA megakernel 点与 SGLang 1.0 上的分离式曲线 - #5242

Open
nvpohanh wants to merge 3 commits into
mainfrom
pohanh/glm53-gb300-dynsgl-megakernel

Conversation

@nvpohanh

@nvpohanh nvpohanh commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

GLM-5.3 NVFP4 has no GB300 Dynamo-SGLang AgentX coverage on main. The GB300 Dynamo-SGLang lane still runs GLM-5.2 on the October SGLang nightlies. This PR moves that lane to GLM-5.3 on lmsysorg/sglang:nightly-dev-20261121-a8ac8659 (digest-pinned) with Dynamo 1.8.0.dev20261119. It also replaces the low-latency points with NVIDIA megakernel points (--enable-nvidia-megakernel, sgl-project/sgl-nvidia-mega#24; the image includes sgl-project/sglang#46210).

New keys. All three serve nvidia/GLM-5.3-NVFP4 on cluster:gb300-nv with MTP (EAGLE, top-1) and HiCache DRAM KV offload. There are 8 points.

Key Recipe file Points
glm5.3-fp4-gb300-dynamo-sglang-agentic-agg-megakernel agg-mk-variants.yaml agg TP4 c1 (4 draft steps), agg TP8 over two nodes c1 (5 draft steps)
glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg-megakernel disagg-mk-variants.yaml 1P TP1 PP4 + 5D TP4 c30, 1P TP1 PP4 + 3D TP4 c40
glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg disagg-variants.yaml 1P1D DEP8 c56, 3P1D DEP8 c216 and c264, 4P1D DEP16 c256
  • Megakernel points. These run the megakernel on the agg workers and on the disagg decode workers, with SGLANG_ENABLE_EMBED_REPLICATION=1. The agg points also set cuda-graph-max-bs-prefill: 4096.
  • -disagg key. It ports the GLM-5.2 GB300 disaggregated recipes, except 1P5D c30 and 1P3D c40, which the megakernel points replace. A non-megakernel 1P3D c40 point would share the megakernel point's result identity and overwrite it. Only the checkpoint, image and Dynamo version change, plus these flags that SGLang 1.0 removed:
    • Prefill passes --disable-decode-cuda-graph --disable-prefill-cuda-graph instead of --disable-cuda-graph.
    • DEP decode passes --attn-dp-size N instead of --dp-size N --enable-dp-attention.
    • DEP decode passes --moe-a2a-backend flashinfer_nvlink_one_sided instead of flashinfer.
    • max-running-requests is still divided by attn-dp-size, so every DEP point keeps 32 requests per rank, matching cuda-graph-max-bs-decode.
  • Recipes. All recipes install Dynamo 1.8, because Dynamo 1.7 and older pass Engine.async_generate(data_parallel_rank=), which this SGLang rejects.
  • Retirement. glm5.2-fp4-gb300-dynamo-sglang-agentic-agg and -disagg are retired, and their recipes are deleted. Their historical results stay in the database. The other GLM-5.2 keys, including GB300 Dynamo-TRT, are unchanged.
  • Runner. GLM-5.3-NVFP4 is added to the gb300-nv model list on the data-models root.

Acceptance and draft. No recipe sets an acceptance length, so the launcher uses the glm-5.3-nvfp4 golden curve: 3.28 at 4 draft steps and 3.48 at 5. The draft is the checkpoint's embedded NextN MTP head as it ships. No recipe sets SGLANG_SIMULATE_ACC_*, SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE or a draft quantization.

Risks:

Overlap with #4706. This PR supersedes #4706, which ports the same GLM-5.2 recipes to GLM-5.3 on the October images. Both PRs define glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg and glm5.3/sglang/gb300-fp4/agentx/disagg-variants.yaml, so only one of them can merge as is.

Changelog. The PR appends two entries: a regular entry for the three new keys and a retired: true entry for the two GLM-5.2 keys. AGENTS.md allows one block per PR. The retirement rules in CONTRIBUTING.md need retired: true entries, which cannot carry scenario-type, and they describe mixed retirement and active entries. This PR follows the retirement rules.

Plan. python -m infx.matrix.changed --base origin/main lists the three new keys (8 points) and the two retired keys. infx.matrix.plan schedules 8 benchmark jobs and 8 GSM8K evals.

AI model disclosure
  • Model/version: Claude Opus 5.5 (claude-opus-5-5), in Claude Code.
  • Role: ported the GLM-5.2 disaggregated recipes to GLM-5.3 and SGLang 1.0, checked their flags against the SGLang source at a8ac8659, and assembled the megakernel recipes (co-authored by Kaixi Matteo Chen), master-config entries, changelog entries and this description.
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, agentx-fast, and evals-last require a primary label; evals-only and agentx-fast 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.
中文

main 上没有 GLM-5.3 NVFP4 的 GB300 Dynamo-SGLang AgentX 覆盖;该 lane 仍在 10 月的 SGLang nightly 上运行 GLM-5.2。本 PR 将该 lane 迁移到 GLM-5.3,使用 lmsysorg/sglang:nightly-dev-20261121-a8ac8659(按 digest 固定,包含 sgl-project/sglang#46210)和 Dynamo 1.8.0.dev20261119,并用 NVIDIA megakernel 点(--enable-nvidia-megakernel,sgl-project/sgl-nvidia-mega#24)替换低延迟点。

  • 新增 key(共 8 个点,均为 MTP(EAGLE,top-1)+ HiCache DRAM KV offload):
    • glm5.3-fp4-gb300-dynamo-sglang-agentic-agg-megakernel:聚合 TP4 c1、跨两节点 TP8 c1。
    • glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg-megakernel:1P TP1 PP4 + 5D TP4 c30、1P TP1 PP4 + 3D TP4 c40,decode 启用 megakernel。
    • glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg:迁移自 GLM-5.2 的分离式 recipe(1P1D DEP8 c56、3P1D DEP8 c216 与 c264、4P1D DEP16 c256),不含被 megakernel 点取代的 1P5D c30 与 1P3D c40(非 megakernel 的 1P3D c40 与 megakernel 点结果标识相同,会相互覆盖)。
  • -disagg key 的改动:除 checkpoint、镜像和 Dynamo 版本外,只替换 SGLang 1.0 已移除的参数:
    • prefill 用 --disable-decode-cuda-graph --disable-prefill-cuda-graph 替代 --disable-cuda-graph。
    • DEP decode 用 --attn-dp-size N 替代 --dp-size N --enable-dp-attention。
    • DEP decode 用 --moe-a2a-backend flashinfer_nvlink_one_sided 替代 flashinfer。
    • 每个 rank 的 max-running-requests 仍为 32。
  • 退役:退役 glm5.2-fp4-gb300-dynamo-sglang-agentic-agg 与 -disagg 并删除其 recipe,历史结果保留在数据库中;其他 GLM-5.2 key(包括 GB300 Dynamo-TRT)不变。
  • Runner:在 gb300-nv 模型列表中新增 GLM-5.3-NVFP4(data-models 根目录)。
  • 接受长度与 draft:使用 glm-5.3-nvfp4 golden 曲线(4 步 3.28,5 步 3.48);draft 为 checkpoint 自带的 NextN MTP head,不设置 SGLANG_SIMULATE_ACC_*、SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE 或 draft 量化。
  • 风险:
    • 所有点尚未在 GLM-5.3 与该镜像上运行过,本 PR 的 sweep 是首次运行。
    • 四个 DEP 点也是 InferenceX 首次在 Dynamo 下运行 SGLang 1.0 的 attention DP(--attn-dp-size)。
  • 与 [GLM-5.3 GB300] add Dynamo-SGLang AgentX agg and disagg recipes with power / [GLM-5.3 GB300] 新增 Dynamo-SGLang AgentX 聚合与分离部署配方并采集功耗 #4706 的关系:本 PR 取代 [GLM-5.3 GB300] add Dynamo-SGLang AgentX agg and disagg recipes with power / [GLM-5.3 GB300] 新增 Dynamo-SGLang AgentX 聚合与分离部署配方并采集功耗 #4706;两者都定义了 glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg 与 disagg-variants.yaml,因此只能合并其一。
  • Changelog:追加两条条目:三个新 key 的常规条目,以及两个 GLM-5.2 key 的 retired: true 条目。AGENTS.md 规定每个 PR 只能有一个 block,而 CONTRIBUTING.md 的退役规则要求单独的 retired: true 条目(不能带 scenario-type),并说明了常规与退役条目混合的情况。本 PR 遵循退役规则。
  • 计划:8 个 benchmark 任务与 8 个 GSM8K eval。
  • AI 模型使用说明:Claude Opus 5.5(claude-opus-5-5,在 Claude Code 中)将 GLM-5.2 分离式 recipe 迁移到 GLM-5.3 与 SGLang 1.0,对照 a8ac8659 的 SGLang 源码检查参数,并整理 megakernel recipe(与 Kaixi Matteo Chen 共同完成)、master config、changelog 与本说明。

🤖 Generated with Claude Code

…l points

Serve GLM-5.3 NVFP4 on GB300 with Dynamo 1.8.0.dev20261119 and
lmsysorg/sglang:nightly-dev-20261121-a8ac8659:

- agg-megakernel: TP4 and TP8 at concurrency 1 with the NVIDIA megakernel.
- disagg-megakernel: 1P5D c30 and 1P3D c40 with megakernel TP4 decode.
- disagg: the GLM-5.2 disaggregated recipes (1P3D c40, 1P1D DEP8 c56,
  3P1D DEP8 c216/c264, 4P1D DEP16 c256) moved to GLM-5.3 and this image,
  with the SGLang 1.0 flag renames (--disable-{decode,prefill}-cuda-graph,
  --attn-dp-size, --moe-a2a-backend flashinfer_nvlink_one_sided).

Retire the GLM-5.2 GB300 Dynamo-SGLang keys and delete their recipes, and
add GLM-5.3-NVFP4 to the gb300-nv model list.

Co-authored-by: Kaixi Matteo Chen <74564987+mattteochen@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, agentx-fast, and evals-last require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only、agentx-fast 和 evals-last 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] I've started babysitting the pipeline of this PR. I'll keep monitoring it until it passes. If a job fails, I may rerun it when the cause is infrastructure, or push a fix or a merge of the latest main when the cause is in this PR.

@nvpohanh nvpohanh added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 25, 2026
The megakernel 1P3D TP4 c40 point has the same agentic result identity
(hardware, model, framework, precision, MTP, offload, topology and
concurrency), so the two rows would overwrite each other. Keep the
megakernel point and delete the unused recipe override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

This branch has not been deployed

No deployments
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: No status

Development

Successfully merging this pull request may close these issues.

1 participant