Repository navigation
Run GB300 Qwen3.5 AgentX on the official SGLang nightly with NVIDIA megakernels / 使用官方 SGLang nightly 与 NVIDIA megakernel 运行 GB300 Qwen3.5 AgentX - #4853
Conversation
…gentX Run GB300 Qwen3.5-397B-A17B NVFP4 AgentX on the official nightly-dev-cu13-20261106-858073e4 SGLang image with read-only source mounts pinned to SGLang 858073e4 and sgl-nvidia-mega 77360f1f. Use the image's native Rust TreeCore, enable supported NVIDIA megakernel slots, and add 17 full-precision frontier points (38 points total). Co-Authored-By: Yangmin Li <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks for the contribution!
中文感谢你的贡献!
|
The official nightly-dev-cu13-20261106-858073e4 image is built from SGLang 858073e4 and its Dockerfile already installs sgl-nvidia-mega at 77360f1f with the sglang.srt.plugins entry point registered. Remove the per-node source clones, read-only source mounts, runtime cache redirection and the setup script that reinstalled the same plugin, and run the image as shipped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each AgentX point replays for 3600 seconds, and the health check allows up to four hours of worker startup. The two-hour limit could end a job during startup or replay. Restore main's 8:00:00 limit in the aggregated and disaggregated recipes. Describe the changelog entry relative to main: all 14 previous points are replaced, Dynamo moves from 5a638087 to b208989f, the previous draft-precision settings are removed, and the agg-pareto and pp-pareto keys are retired. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
[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 |
|
[by Claude Code] The SGLang cookbook integration of this PR's AgentX configs ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#48857 has been merged. This PR's AgentX configs ( This PR has no authorized |
The TP8 decode worker of the 1P TP4 x 1D TP8 recipes failed at startup: sgl-nvidia-mega 77360f1f keeps every legacy slot on TP8 and then rejects mkm_m32-mkm_m512 without route_topk and gdn_trt_front without gdn_core. TP8/EP4 decode drops the mkm_m* slots under expert parallelism but hits the same gdn_trt_front check. TP2, TP4 and DEP8 filter these slots out by topology, so they were unaffected. Remove gdn_trt_front from every slot list, and add route_topk, which the plugin ships by default with the mkm_m* engines, on the plain-TP8 aggregated and decode roles. Effective slots on TP2, TP4 and DEP8 are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
…gentX Every disaggregated decode worker failed at startup on Dynamo b208989f: DecodeWorkerHandler calls supports_external_mm_hashes, which imports MultimodalProcessorOutput from sglang.srt.managers.schedule_batch. sgl-project/sglang#47731, included in the 858073e4 image, moved that class to req_types without a re-export. Pin Dynamo ad8ecd2e5d (ai-dynamo/dynamo#18293), which imports it from req_types and falls back to schedule_batch, in the disaggregated recipe and the master config's router version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
Thanks for pinning Dynamo to ad8ecd2e. While running the same GB300 AgentX recipes, we hit two more issues that look like they are still present at 15881a7. Sharing in case they help:
With these two changes, plus the TP8 slot-list fix you already have, those points start and run cleanly for us. Happy to share the exact diff if useful. |
…00 AgentX A cold source build of Dynamo ad8ecd2e5d did not finish within the four-hour worker health budget: one disaggregated job held the shared build lock and was still compiling the Rust workspace when its health check expired, and every other disaggregated job waited on that lock. Install the ai-dynamo 1.7.0.dev20261106 nightly wheel from pypi.nvidia.com instead. It already contains ai-dynamo/dynamo#18293 (the MultimodalProcessorOutput import from SGLang's req_types) and every frontend and worker flag these recipes use. Other GB300 Dynamo+SGLang recipes on main pin nightly wheels the same way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src
The 12 disaggregated overrides added for the 17 new points set served-model-name to null on prefill and decode, which removed the base recipe's nvidia/Qwen3.5-397B-A17B-NVFP4. srt-slurm then served the model as the checkpoint directory name (Qwen3.5-397B-A17B-NVFP4-V2), the Dynamo frontends answered the AgentX client's nvidia/Qwen3.5-397B-A17B-NVFP4 requests with 404, and the first warmup request aborted the benchmark. Evals passed because they read the name from the server. Drop the null overrides so every role inherits the base served model name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The base prefill role pinned disaggregation-bootstrap-port 31000. The recipe value is appended after srt-slurm's allocated per-worker port, so it wins. The new TP2-prefill / TP8-EP4-decode points place two prefill workers on one node: the first bound 0.0.0.0:31000, the second failed with "address already in use" but kept serving and advertised 31000, so the decode worker never completed the KV bootstrap for half of the requests. Requests stalled until the client timed out (TP8/EP4 c148 eval: 74 requests stuck in #transfer-req). Drop the prefill pin so each prefill worker binds its allocated port. Dynamo's prefill handler reports that port in every request's bootstrap_info and the decode handler connects to it, so decode needs no change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
[by Claude Code] The SGLang cookbook update of this PR's AgentX configs ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#50289 has been merged. This PR's AgentX configs ( This PR has no authorized |
Pin both Qwen3.5 GB300 AgentX configs to lmsysorg/sglang:nightly-dev-20261116-0b098e12 (sha256:cb103171bf538adcb26d35e299200b3de38479780bf8d0031c1c7ee18d93ac48). The image is built from SGLang 0b098e1279bcf030408100f95ffbe44ad0a51f2a with FlashInfer 0.7.4 and sglang-kernel 0.4.11, and bundles sgl-nvidia-mega cff001c5054b86d041bb66441861898b7e5ba5b0. FlashInfer 0.7.4 includes the fix for an index-out-of-bounds gather that crashed the DEP8 megakernel decode at high concurrency on the 20261106 image (FlashInfer 0.7.2). Between 77360f1 and cff001c5 the megakernel changes only qwen3_5/runtime/prefill.py and plugin.py for Qwen3.5, and every megakernel role's slot list still validates against cff001c5. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
The SGLang nightly 20261116 image no longer ships the Python sglang_router package (sgl-model-gateway). Since sgl-project/sglang#50176 the image carries only the Rust /opt/sglang/bin/sgl-router binary, whose CLI is not compatible. srt-slurm's sglang-router frontend still runs `python -m sglang_router.launch_router`, so all 7 agg overrides would fail at router startup. Serve the agg key through the Dynamo frontend, like the disagg key: install the same Dynamo 1.7.0.dev20261106 wheel, start etcd and nats, and run one Dynamo frontend (KV router mode) in front of the single dynamo.sglang worker. The agg AgentX benchmark env already sends the Dynamo session header. Record the dynamo-router version on the agg master-config key and note the frontend in the PR's changelog entry. Only the 10 agg recipes change: they gain the dynamo/services blocks and frontend.type: dynamo. The 28 disagg recipes are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
[by Claude Code] The SGLang cookbook update of this PR's AgentX configs ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#50766 has been merged. This PR's AgentX configs ( This PR has no authorized |
On the SGLang nightly 20261116 image the TP8/EP4 cap64 decode keeps slightly more GPU memory in CUDA-graph private pools (10.87 GiB). At mem-fraction-static 0.76, the speculative sampler's FlashInfer top-k (eagle_post_verify -> sample_uno_tree_target_tokens -> topk_clusters_exact) asked for 1.61 GiB during the c130 profiling phase with only 1.60 GiB free, and the decode exited with CUDA OOM. Lower decode mem-fraction-static to 0.72 in the three cap64 overrides, as the cap128 override already uses. That leaves about 12 GB more runtime headroom after the 32 GiB staging buffer. No other point changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pin both Qwen3.5 GB300 AgentX configs to lmsysorg/sglang:nightly-dev-20261118-ecd3d75a (sha256:2a7e6d43ada9311fcb7d7dd5781bda10aee1a24c40186a956c223f2036212514). The image is built from SGLang ecd3d75a2a790cdb3acba0ecdb4786ff4d4ab25d with FlashInfer 0.7.4 and bundles sgl-nvidia-mega a32f32029f8ac2c69f28519f05c114bdc5a68003. That megakernel commit (sgl-project/sgl-nvidia-mega#67) accepts the flashinfer_nvlink_one_sided all-to-all backend name that SGLang now resolves --moe-a2a-backend flashinfer to, so the DEP8 decode is no longer refused at startup. Every megakernel role's slot list validates against a32f3202. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
[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 |
|
[by Claude Code] The SGLang cookbook update of this PR's AgentX configs ( This PR has no authorized |
The 20261118 SGLang image removed the deprecated data_parallel_rank argument (sgl-project/sglang#50671); Dynamo 1.8.0.dev20261119 includes ai-dynamo/dynamo#18929, which passes routed_dp_rank instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
[by Claude Code] sgl-project/sglang#51504 has been merged. This PR's AgentX configs ( This PR has no authorized |
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
…b300-sgl-agentx-pinned-src # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
[by Claude Code] The SGLang cookbook update of this PR's AgentX configs ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#52550 has been merged. This PR's AgentX configs ( This PR has no authorized |
Summary
Run GB300 Qwen3.5-397B-A17B NVFP4 AgentX on an official SGLang nightly container that is built from a known SGLang revision and bundles the NVIDIA megakernel plugin. This replaces all 14 points of
qwen3.5-fp4-gb300-dynamo-sglang-agentic-aggandqwen3.5-fp4-gb300-dynamo-sglang-agentic-disaggon main with 38 points in 28 recipe overrides. 21 of them are the point set from the closed #4333; the other 17 add full-precision frontier configurations. It also retiresqwen3.5-fp4-gb300-dynamo-sglang-agentic-agg-paretoandqwen3.5-fp4-gb300-dynamo-sglang-agentic-pp-paretowith their recipes.lmsysorg/sglang:nightly-dev-cu13-20261106-858073e4@sha256:034f4c6122b50785ef939f26488a696d823048925176bafcf090b0de0ff97a5a(main:nightly-dev-cu13-20260724-433429b1).858073e4f6d246bd6e3baae1d4e07919a578a04f, including [Perf] [NVIDIA] speculative-decoding: Add generic CUDA runtime fast paths sgl-project/sglang#47200, [Perf] [NVIDIA] speculative-decoding: Bind generic provider strategies sgl-project/sglang#47201, [Perf] qwen3: Fuse SiLU*mul with the NVFP4 quantization of down_proj in Qwen2MLP sgl-project/sglang#44491 and [Fix] docker: update NVIDIA megakernel pin for Qwen3.5 follow-up kernels sgl-project/sglang#48719.77360f1fd74dc46010056ebdac0ed5e0b87d3978, including [Perf] [NVIDIA] qwen3.5: Add follow-up megakernel kernels sgl-project/sgl-nvidia-mega#33 and [Fix] qwen3.5: follow SGLang shared MLP FP4 fusion helpers sgl-project/sgl-nvidia-mega#40.5a638087d82c990d35c69cb8e41c2c2582e9ef9ato theai-dynamo1.7.0.dev20261106nightly wheel from pypi.nvidia.com, and uses the Dynamo frontends, session affinity and MNNVL KV transfer. The wheel includes fix(sglang): import MultimodalProcessorOutput from req_types ai-dynamo/dynamo#18293: [Perf] imports: Keep light modules off HF patches, model configs, and the scheduler sgl-project/sglang#47731 movedMultimodalProcessorOutputtoreq_types, and older Dynamo decode workers fail at startup on this image. A wheel avoids the multi-hour cold Rust build that a newsource.revtriggers.The image is used as shipped: no source mounts, setup scripts or plugin reinstalls. SGLang's Dockerfile at this revision installs
sgl-nvidia-megaat the commit above and asserts that itssglang.srt.pluginsentry point is registered, so the image digest alone pins both SGLang and the megakernel plugin.TreeCore: the official nightly is built from the listed SGLang revision and contains the matching
mem_cache.so. The recipes set no TreeCore orSGLANG_RUST_BUILD_MODEoverride, so SGLang uses its default Rust TreeCore and the image's ownSGLANG_RUST_BUILD_MODE=neveruses the bundled extension without rebuilding.Draft precision: the model stays NVFP4, KV cache stays FP8, and every worker serves the checkpoint's shipped MTP head. Main's disaggregated and Pareto recipes set
SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE=1, and the retired PP Pareto recipe also setspeculative-draft-model-quantization: nvfp4_online; this PR removes both and adds no other draft-lowering switch. Historical frontier measurements identify which configurations to add; they are not measurements of this container.Point set
Aggregated key:
qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg(10 points, all from #4333).override_tp4_mrr8override_tp4_mrr8_c8override_tp4_mrr3_k48override_tp4_mrr2_k64override_tp4_mrr2_k32override_tp4_mrr1override_tp8_mrr1Disaggregated key:
qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg(11 points from #4333 plus 17 new).override_3p1d_dep8_cap32override_3p1d_dep16_cap12override_3p1d_dep16_cap9override_2p1d_dep16_cap6override_1p1d_tp2_cap10override_1p1d_tp2_cap12override_1p1d_tp2_cap5override_1p1d_tp2_cap4override_1p2d_tp2_cap3override_1p2d_p_tp4_d_tp8_cap32_gc_defaultoverride_1p1d_p_tp4_d_tp8_cap1_p_gc_defaultoverride_1p1d_p_tp4_d_tp8_cap4override_1p1d_p_tp4_d_tp8_cap1override_1p1d_p_tp4_d_tp8_cap8override_1p2d_p_tp4_d_tp8_cap32override_4p1d_p_tp2_d_tp8_ep4_cap128override_2p1d_p_tp2_d_tp8_ep4_cap64override_1p2d_p_tp4_d_tp8_cap32_flashinfer_prefilloverride_3p1d_dep8_cap36override_2p1d_p_tp2_d_tp8_ep4_cap64_prefill32koverride_2p1d_p_tp2_d_tp8_ep4_cap64_prefill32k_flashinferThe new configurations preserve the effective prefill/decode engine arguments, including decode admission caps, prefill chunk sizes, CUDA graph batch sizes and GC settings. Separate overrides retain configurations that differ only in the prefill GC threshold or explicit FlashInfer linear-attention prefill backend.
cap32on the two-decode-worker TP8 recipes is a per-worker cap. TEP8 recipes use TP8/EP4 without attention DP; DEP8 uses attention DP and expresses its cap per rank in the override name.Retired configs:
qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg-pareto(3 points) andqwen3.5-fp4-gb300-dynamo-sglang-agentic-pp-pareto(2 points) are removed withagg-pareto-variants.yamlanddisagg-pp-pareto-variants.yaml; no other config uses those recipes. The changelog entry records the retirement.Runtime controls
SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1enables the optimizations now in SGLang main on aggregated, prefill and decode workers.enable-nvidia-megakernel: true,startup-weight-load-mode: serialand an explicitSGLANG_NVIDIA_MEGAKERNEL_SLOTSlist. The bundled plugin keeps each topology's supported slots and rejects a list whose kept slots depend on missing ones, so the plain-TP8 roles also requestroute_topk(shipped by default with themkm_m32–mkm_m512engines) and no role requestsgdn_trt_front. TP2, TP4, TP8, TP8/EP4 and DEP8 are supported; DEP16 decode and the prefill workers keep their stock engine paths.SGLANG_ENABLE_SPEC_V2,SGLANG_ENABLE_FLASHINFER_GEMMandSGLANG_FLASHINFER_FP4_GEMM_BACKEND. CUDA/NCCL/Mooncake/FlashInfer dependency controls remain where their owning library reads them.Risks and scope
This changes the executed source stack, enabled plugin paths and point coverage; it does not claim earlier throughput or accuracy measurements for the new combination. A full sweep and real-acceptance evaluation are required before adopting performance results.
The recipes keep main's eight-hour Slurm limit and four-hour health-check budget; each point replays for 3600 seconds. The GB300 runner and Slurm allocation settings are unchanged from main.
中文
本 PR 直接使用 SGLang 官方 nightly 镜像;该镜像由上方 SGLang commit 构建,并自带同一 commit 的 NVIDIA megakernel 插件。它用 28 个 override 中的 38 个点替换 main 上
qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg与-disagg的全部 14 个点:其中 21 个点来自已关闭的 #4333,另外 17 个点补齐全精度前沿配置。同时退役qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg-pareto与-pp-pareto及其 recipe。新增配置保留实际启动参数的区别,包括 GC、prefill backend、chunk 和 decode 容量。镜像按原样使用,不挂载源码、不运行 setup 脚本、不重复安装插件;镜像 digest 即同时固定 SGLang 与 megakernel 插件版本。recipe 不设置 TreeCore 或
SGLANG_RUST_BUILD_MODE,因此使用默认 Rust TreeCore,并由镜像自带的SGLANG_RUST_BUILD_MODE=never使用配套预编译扩展。Dynamo 从5a638087源码构建改为 pypi.nvidia.com 的ai-dynamo1.7.0.dev20261106nightly wheel(包含 ai-dynamo/dynamo#18293;sgl-project/sglang#47731 将MultimodalProcessorOutput移至req_types,旧版 Dynamo 的 decode worker 在此镜像上无法启动;使用 wheel 可避免新source.rev触发的数小时 Rust 冷构建)。所有 worker 使用 checkpoint 自带的 MTP draft:main 上 disagg 与 Pareto recipe 的SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE与已退役 PP Pareto recipe 的speculative-draft-model-quantization均被移除。新组合尚未做 GPU 性能与准确性验证,不把历史数据当作本组合实测。recipe 保留 main 的 8 小时 Slurm 时限和 4 小时健康检查预算,每个点回放 3600 秒。GB300 runner 与 Slurm 分配设置沿用 main,不做修改。
AI 参与模型在运行环境中只标识为基于 GPT-6 的 Codex,无法核实更精确的模型版本;工作包括配置迁移、源码核对、校验和正文撰写。Claude Opus 5.5(
claude-opus-5-5,经由 Claude Code)负责将改动移植到当前 main、移除冗余的源码 overlay、根据 review 恢复 8 小时 Slurm 时限、按相对 main 的变化改写 changelog 并编辑本说明。AI model disclosure
claude-opus-5-5) via Claude Code.Checklist
python -m infx.matrix.changed --base origin/mainlists affected config keys, I have appended one new entry covering them to the physical end ofinferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entriesinferencex-e2e/perf-changelog.yamlentry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs):full-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied./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.Change type: configuration change.
🤖 Generated with Claude Code