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 8 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 (top-1). The disaggregated points use HiCache DRAM KV offload; the aggregated points use none. There are 9 points.

Key Recipe file Points
glm5.3-fp4-gb300-dynamo-sglang-agentic-agg-megakernel agg-mk-tp4.yaml, agg-mk-variants.yaml agg TP4 c4, agg TP8 over two nodes c4 and c1; the c4 points allow 4 running requests and TP8 c1 allows 1 (NEXTN, 3 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
  • Agg megakernel points.
    • TP4 c4 and TP8 c4 set max-running-requests: 4 and cuda-graph-max-bs-decode: 4, so concurrent requests run together instead of queuing behind the running one. TP8 c1 keeps both at 1.
    • They set SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1 and --enable-torch-symm-mem.
    • They set the KV dtype, DSA decode kernel and MoE runner that the GLM-5.3 megakernel requires: FP8 E4M3 KV cache, --attention-backend dsa --dsa-decode-backend trtllm, --moe-runner-backend flashinfer_trtllm and --disable-shared-experts-fusion.
  • Disagg megakernel points. They run the megakernel on the TP4 decode workers with SGLANG_ENABLE_EMBED_REPLICATION=1 (EAGLE, 5 draft steps).
  • -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.
  • Dynamo.
    • The disaggregated recipes install the Dynamo 1.8.0.dev20261119 wheel, because Dynamo 1.7 and older pass Engine.async_generate(data_parallel_rank=), which this SGLang rejects.
    • The aggregated recipes use the Dynamo runtime the image ships, which is the same version.
  • 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: 2.94 at 3 draft steps (agg) and 3.48 at 5 (disagg). 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:

  • The aggregated points with 4 running requests and the TP8 c1 point have not run yet. The previous full sweep (run 45739493874) passed every point, but the aggregated c4 points then allowed 1 running request. In that run, TP4 c4 had a p90 TTFT of 8.9 s, and about 97% of the TTFT above p90 was queue wait behind the running request. The c4 points now allow 4.
  • An earlier sweep on this image (run 45612272657) passed these points: 1P1D DEP8 c56 (benchmark and GSM8K), the 1P3D c40 megakernel point (benchmark and GSM8K), and the since-replaced aggregated c1 points.
  • The other jobs in that run failed on broken GB300 nodes before or while starting the server, on im-gb300-r03-c012, -c013 and -c015. The failures were a container Exec format error, null bytes in installed Python files, and a prefill rank hang on c013.
  • The four DEP points are also the first InferenceX runs of SGLang 1.0 attention DP (--attn-dp-size) under Dynamo. Dynamo has routed attention-DP ranks by attn_dp_size since fix(sglang): count attention-DP ranks from attn_dp_size ai-dynamo/dynamo#16005.

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 (9 points) and the two retired keys. infx.matrix.plan schedules 9 benchmark jobs and 8 GSM8K evals. TP8 c1 has no eval; TP8 c4 covers that topology.

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. The aggregated concurrency-4 megakernel change was authored by Anish Shanbhag with the same model. Raising the concurrency-4 points to 4 running requests and adding TP8 c1 were done with the same model.
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(共 9 个点,均为 MTP(top-1);分离式点使用 HiCache DRAM KV offload,聚合点不使用):
    • glm5.3-fp4-gb300-dynamo-sglang-agentic-agg-megakernel:聚合 TP4 c4,以及跨两节点的 TP8 c4 与 c1(NEXTN,3 步 draft)。c4 点设置 max-running-requests: 4 与 cuda-graph-max-bs-decode: 4,并发请求一起运行,不再排队等待正在运行的请求;TP8 c1 两者均为 1。设置 SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1、--enable-torch-symm-mem,以及 GLM-5.3 megakernel 要求的 FP8 E4M3 KV cache、--attention-backend dsa --dsa-decode-backend trtllm、--moe-runner-backend flashinfer_trtllm 与 --disable-shared-experts-fusion;使用镜像自带的 Dynamo(版本相同)。
    • 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 曲线(聚合 3 步 2.94,分离式 5 步 3.48);draft 为 checkpoint 自带的 NextN MTP head,不设置 SGLANG_SIMULATE_ACC_*、SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE 或 draft 量化。
  • 风险:
    • 允许 4 个运行中请求的聚合点与 TP8 c1 点尚未运行。上一次完整 sweep(run 45739493874)所有点均通过,但当时聚合 c4 点只允许 1 个运行中的请求:TP4 c4 的 p90 TTFT 为 8.9 秒,p90 以上的 TTFT 约 97% 是排队等待,因此 c4 点改为允许 4 个。
    • 此前在该镜像上的 sweep(run 45612272657)中,1P1D DEP8 c56 与 1P3D c40 megakernel 点(benchmark 与 GSM8K)以及已被替换的聚合 c1 点均通过。
    • 其余失败均来自损坏的 GB300 节点 im-gb300-r03-c012、-c013、-c015:容器 Exec format error、Python 文件含空字节,以及 c013 上 prefill rank 挂起。
    • 四个 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 遵循退役规则。
  • 计划:9 个 benchmark 任务与 8 个 GSM8K eval(TP8 c1 不跑 eval,TP8 c4 已覆盖该拓扑)。
  • 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 与本说明。并发 4 的聚合 megakernel 改动由 Anish Shanbhag 使用同一模型完成;将 c4 点改为允许 4 个运行中请求并新增 TP8 c1 也由同一模型完成。

🤖 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

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

anish-shanbhag and others added 2 commits November 25, 2026 09:58
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h the runtime optimizations

Replace the aggregated TP4 and TP8 concurrency-1 megakernel points with
concurrency-4 points that allow at most 1 running request, so a request is
always queued when the running one finishes. Both run NEXTN MTP with 3 steps
and 4 draft tokens, no KV offload, SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1
and --enable-torch-symm-mem, with the KV dtype, DSA decode kernel and MoE
runner that the GLM-5.3 megakernel spec requires set explicitly. They use the
Dynamo runtime the image ships.

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

Copy link
Copy Markdown

@nvpohanh the sweep ended red on infra, not on accuracy or perf:

  • c40 eval-only: prefill PP rank 0 stalled in FlashInfer autotune at startup, and the other ranks hit the 2 h gloo timeout. The same prefill config came up fine twice for c56.
  • c264 benchmark: the decode container didn't start on im-gb300-r03-c012 (enroot-switchroot: failed to execute: /bin/bash: Exec format error).
  • fail-fast then cancelled the remaining evals (c30 / c216 / c256 / c264) and benchmarks (c30 / c40 / c216 / c256).

Could you re-run failed jobs, ideally keeping c012 out?

…dynsgl-megakernel

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml

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

hi @nvpohanh any chance, can u tune the TTFT a bit more? it seems to have worse e2el

image

@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook integration of this PR's AgentX configs (glm5.3-fp4-gb300-dynamo-sglang-agentic-agg-megakernel, glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg, glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg-megakernel) will happen in sgl-project/sglang#53390, in the Agentic Long-Context Deployment section of the GLM-5.3 cookbook page.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (6a86a05dd) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] sgl-project/sglang#53390 has been merged. This PR's AgentX configs (glm5.3-fp4-gb300-dynamo-sglang-agentic-agg-megakernel, glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg, glm5.3-fp4-gb300-dynamo-sglang-agentic-disagg-megakernel) are now in the Agentic Long-Context Deployment section of the SGLang GLM-5.3 cookbook: https://docs.sglang.io/cookbook/autoregressive/GLM/GLM-5.3#agentic-long-context-deployment

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (6a86a05dd) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh

Copy link
Copy Markdown
Collaborator Author

hi @nvpohanh any chance, can u tune the TTFT a bit more? it seems to have worse e2el

image

working on it!

nvpohanh and others added 2 commits November 26, 2026 18:42
…ncurrency 4, add TP8 concurrency 1

The aggregated TP4 and TP8 concurrency-4 megakernel points allowed only 1
running request, so requests queued behind the running one and the queue wait
dominated TTFT. Raise --max-running-requests and --cuda-graph-max-bs-decode to
4 on both, and add a TP8 concurrency-1 point that keeps both limits at 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dynsgl-megakernel

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
@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.

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.

4 participants