Skip to content

Run GB300 Qwen3.5 AgentX on the official SGLang nightly with NVIDIA megakernels / 使用官方 SGLang nightly 与 NVIDIA megakernel 运行 GB300 Qwen3.5 AgentX - #4853

Closed
nvpohanh wants to merge 30 commits into
mainfrom
pohanh/qwen35-fp4-gb300-sgl-agentx-pinned-src
Closed

nvpohanh wants to merge 30 commits into
mainfrom
pohanh/qwen35-fp4-gb300-sgl-agentx-pinned-src

Conversation

@nvpohanh

@nvpohanh nvpohanh commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

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-agg and qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg on 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 retires qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg-pareto and qwen3.5-fp4-gb300-dynamo-sglang-agentic-pp-pareto with their recipes.

The image is used as shipped: no source mounts, setup scripts or plugin reinstalls. SGLang's Dockerfile at this revision installs sgl-nvidia-mega at the commit above and asserts that its sglang.srt.plugins entry 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 or SGLANG_RUST_BUILD_MODE override, so SGLang uses its default Rust TreeCore and the image's own SGLANG_RUST_BUILD_MODE=never uses 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 set speculative-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).

Recipe override Concurrency
override_tp4_mrr8 12, 18
override_tp4_mrr8_c8 8, 9
override_tp4_mrr3_k48 23
override_tp4_mrr2_k64 16
override_tp4_mrr2_k32 20
override_tp4_mrr1 13
override_tp8_mrr1 11, 18

Disaggregated key: qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg (11 points from #4333 plus 17 new).

Recipe override Concurrency Source
override_3p1d_dep8_cap32 704 #4333
override_3p1d_dep16_cap12 660, 760, 840 #4333
override_3p1d_dep16_cap9 530 #4333
override_2p1d_dep16_cap6 488 #4333
override_1p1d_tp2_cap10 20 #4333
override_1p1d_tp2_cap12 38 #4333
override_1p1d_tp2_cap5 36 #4333
override_1p1d_tp2_cap4 26 #4333
override_1p2d_tp2_cap3 48 #4333
override_1p2d_p_tp4_d_tp8_cap32_gc_default 128 New full-precision configuration
override_1p1d_p_tp4_d_tp8_cap1_p_gc_default 8 New full-precision configuration
override_1p1d_p_tp4_d_tp8_cap4 16 New full-precision configuration
override_1p1d_p_tp4_d_tp8_cap1 8 New full-precision configuration
override_1p1d_p_tp4_d_tp8_cap8 28 New full-precision configuration
override_1p2d_p_tp4_d_tp8_cap32 128 New full-precision configuration
override_4p1d_p_tp2_d_tp8_ep4_cap128 392 New full-precision configuration
override_2p1d_p_tp2_d_tp8_ep4_cap64 160, 176, 224 New full-precision configuration
override_1p2d_p_tp4_d_tp8_cap32_flashinfer_prefill 72, 112 New full-precision configuration
override_3p1d_dep8_cap36 720 New full-precision configuration
override_2p1d_p_tp2_d_tp8_ep4_cap64_prefill32k 126, 148 New full-precision configuration
override_2p1d_p_tp2_d_tp8_ep4_cap64_prefill32k_flashinfer 130, 148 New full-precision configuration

The 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. cap32 on 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) and qwen3.5-fp4-gb300-dynamo-sglang-agentic-pp-pareto (2 points) are removed with agg-pareto-variants.yaml and disagg-pp-pareto-variants.yaml; no other config uses those recipes. The changelog entry records the retirement.

Runtime controls

  • SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1 enables the optimizations now in SGLang main on aggregated, prefill and decode workers.
  • Supported aggregated and decode roles set enable-nvidia-megakernel: true, startup-weight-load-mode: serial and an explicit SGLANG_NVIDIA_MEGAKERNEL_SLOTS list. 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 request route_topk (shipped by default with the mkm_m32–mkm_m512 engines) and no role requests gdn_trt_front. TP2, TP4, TP8, TP8/EP4 and DEP8 are supported; DEP16 decode and the prefill workers keep their stock engine paths.
  • Recipe environment variables that SGLang no longer reads at this revision are removed, including SGLANG_ENABLE_SPEC_V2, SGLANG_ENABLE_FLASHINFER_GEMM and SGLANG_FLASHINFER_FP4_GEMM_BACKEND. CUDA/NCCL/Mooncake/FlashInfer dependency controls remain where their owning library reads them.
  • The existing workload binder supplies AgentX and speculative-evaluation settings. The recipes add no synthetic acceptance-length override.

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-dynamo 1.7.0.dev20261106 nightly 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
  • Model/version: Codex, described by the runtime as based on GPT-6. The exact model identifier could not be verified.
  • Role: inspected the pinned sources and historical configuration exports; prepared recipes, the point mapping, validation artifacts and this description.
  • Model/version: Claude Opus 5.5 (claude-opus-5-5) via Claude Code.
  • Role: ported the change onto current main, removed the redundant source overlay, restored the eight-hour Slurm limit after review, rewrote the changelog entry relative to main, edited this description for submission, babysat the sweeps and made the pipeline fixes (HiCache ratios, decode memory fraction, Dynamo frontend for aggregated workers, SGLang image and Dynamo wheel bumps). No delegated agents contributed.

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.

Change type: configuration change.

🤖 Generated with Claude Code

…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]>
@github-actions

github-actions Bot commented Nov 6, 2026

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, and agentx-fast 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 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

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]>
@nvpohanh nvpohanh changed the title Run GB300 Qwen3.5 AgentX with pinned upstream SGLang and megakernel sources / 使用固定上游源码运行 GB300 Qwen3.5 AgentX Run GB300 Qwen3.5 AgentX on the official SGLang nightly with NVIDIA megakernels / 使用官方 SGLang nightly 与 NVIDIA megakernel 运行 GB300 Qwen3.5 AgentX Nov 6, 2026
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]>
@nvpohanh

nvpohanh commented Nov 6, 2026

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 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

@nvpohanh

nvpohanh commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

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

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

@nvpohanh

nvpohanh commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] sgl-project/sglang#48857 has been merged. This PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) are now in the Agentic Long-Context Deployment section of the SGLang Qwen3.5 cookbook: https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.5#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 (2c6b03173) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

nvpohanh and others added 2 commits November 6, 2026 08:12
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
nvpohanh and others added 2 commits November 7, 2026 05:00
…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
@YAMY1234

YAMY1234 commented Nov 7, 2026

Copy link
Copy Markdown

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:

  1. served-model-name: null in 12 disagg overrides. These are the 1p1d/1p2d_p_tp4_d_tp8_*, 2p1d/4p1d_p_tp2_d_tp8_ep4_* and 3p1d_dep8_cap36 variants. With the alias removed, the server registers the model under the local checkpoint directory name, but the client requests nvidia/Qwen3.5-397B-A17B-NVFP4, so warmup requests return HTTP 404 and the run aborts before profiling. Would it make sense to drop those overrides, or set them to the client name, so every P/D role keeps the base alias?

    decode:
      args:
        served-model-name: nvidia/Qwen3.5-397B-A17B-NVFP4   # instead of null (same for prefill)
  2. Shared bootstrap port when two prefill workers run on one node. The base prefill.args pins disaggregation-bootstrap-port: 31000, and the role args are applied after the per-worker ports are assigned. In the TP2-prefill overrides (2p1d_p_tp2_d_tp8_ep4_cap64, its _prefill32k and _prefill32k_flashinfer variants, and 4p1d_p_tp2_d_tp8_ep4_cap128), both prefill workers on a node therefore register on 31000. The second registration overwrites the first, and the requests routed to the first worker never get their KV transfer, so they hang until the client's stall timeout. Would it make sense to clear the pinned port in just those overrides, so each worker keeps its own assigned port?

    override_2p1d_p_tp2_d_tp8_ep4_cap64:
      ...
      prefill:
        args:
          disaggregation-bootstrap-port: null

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.

nvpohanh and others added 5 commits November 7, 2026 16:10
…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]>
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
@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook update of this PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) will happen in sgl-project/sglang#50289, in the Agentic Long-Context Deployment section of the Qwen3.5 cookbook page. The configs have been live in that section since sgl-project/sglang#48857; sgl-project/sglang#50289 refreshes them with the pin below.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (9eb77dc01) 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#50289 has been merged. This PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) are now in the Agentic Long-Context Deployment section of the SGLang Qwen3.5 cookbook: https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.5#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 (9eb77dc01) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

nvpohanh and others added 4 commits November 15, 2026 20:37
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
@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook update of this PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) will happen in sgl-project/sglang#50766, in the Agentic Long-Context Deployment section of the Qwen3.5 cookbook page. The configs have been live in that section since sgl-project/sglang#48857; sgl-project/sglang#50766 refreshes them with the pin below.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (149763360) 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#50766 has been merged. This PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) are now in the Agentic Long-Context Deployment section of the SGLang Qwen3.5 cookbook: https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.5#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 (149763360) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

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]>
nvpohanh and others added 2 commits November 18, 2026 00:46
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
@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

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook update of this PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) will happen in sgl-project/sglang#51504, in the Agentic Long-Context Deployment section of the Qwen3.5 cookbook page. The configs have been live in that section since sgl-project/sglang#48857; sgl-project/sglang#51504 refreshes them with the pin below.

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

nvpohanh and others added 2 commits November 19, 2026 02:52
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
@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] sgl-project/sglang#51504 has been merged. This PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) are now in the Agentic Long-Context Deployment section of the SGLang Qwen3.5 cookbook: https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.5#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 (bad794e47) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh nvpohanh added full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures and removed full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures labels Nov 20, 2026
…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
@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook update of this PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) will happen in sgl-project/sglang#52550, in the Agentic Long-Context Deployment section of the Qwen3.5 cookbook page. The configs have been live in that section since sgl-project/sglang#48857; sgl-project/sglang#52550 refreshes them with the pin below.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (2f3cbc4ad) 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#52550 has been merged. This PR's AgentX configs (qwen3.5-fp4-gb300-dynamo-sglang-agentic-agg, qwen3.5-fp4-gb300-dynamo-sglang-agentic-disagg) are now in the Agentic Long-Context Deployment section of the SGLang Qwen3.5 cookbook: https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.5#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 (2f3cbc4ad) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants