Skip to content

[NVIDIA][AgentX] Run GB300 DSV4.1-Flash agg TP4 c1 as a batch-1 NVIDIA megakernel point / [NVIDIA][AgentX] 将 GB300 DSV4.1-Flash 聚合 TP4 c1 改为 batch-1 NVIDIA megakernel 点 - #4434

Merged
Oseltamivir merged 7 commits into
mainfrom
weireweire/dsv41flash-gb300-sgl-agg-bs1-mega
Oct 26, 2026
Merged

Oseltamivir merged 7 commits into
mainfrom
weireweire/dsv41flash-gb300-sgl-agg-bs1-mega

Conversation

@weireweire

@weireweire weireweire commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

The GB300 DeepSeek-V4.1-Flash Dynamo + SGLang aggregated TP4 c1 point runs without the NVIDIA megakernel today. Its published P90 interactivity is 653.6 tok/s/user, at 7.9k tok/s/GPU. This PR makes TP4 c1 a strict batch-1 megakernel point. On a local run of the exact recipe it measured P90 interactivity 953.5 tok/s/user and 8.30k tok/s/GPU, with 0 errors over 3600 s.

The whole aggregated line (dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg) moves to lmsysorg/sglang:nightly-dev-cu13-20261025-65633129. This nightly ships sglang#45450 and the sgl-nvidia-mega plugin the megakernel needs, so every point runs the image as shipped. There is no setup script, engine patch or waiver.

Risks

  • Other aggregated points: TP4 c4/c16 and TP2/EP2 c16 run without the megakernel and pin dsv4-attn-backend: flashmla. On this image auto resolves to FlashMLA MegaAttention (sglang#43922), which zero-pads the per-rank attention heads to 64: 4x at TP4, 2x at TP2. With the pin, all three beat main on P90 interactivity, throughput and P90 TTFT in local runs (table below).
  • Megakernel plugin version: the image installs sgl-nvidia-mega 6fd7ac30, which SGLang's Dockerfile pins since sglang#45389 moved the megakernel interface. It is 3333e4cf plus Kimi K3 support and the matching import-path fix; its DeepSeek-V4.1 code differs from 3333e4cf only in import paths.
  • Disaggregated points: dsv41flash-fp4-gb300-dynamo-sglang-agentic-dspark-disagg is unchanged and stays on its current image. It is in the changelog only so that the sweep produces the complete curve.

Changes

  • TP4 c1 (override_tp4_c1)
    • --enable-nvidia-megakernel with 42 kernel slots: the 39 shipped slots plus target_lm_head, hop_b_quad_trigger and lm_head_pinned_tactic.
    • The sglang#45450 decode-graph gates (SGLANG_DSPARK_* / SGLANG_OPT_*).
    • max-running-requests 1, cuda-graph-max-bs-decode 1, swa-prefix-tails 128, prefill-decode-interval 16, schedule-policy lpm, context-length 1048576, startup-weight-load-mode serial.
    • NCCL_CUMEM_ENABLE=0, NCCL_MNNVL_ENABLE=0.
    • Also changed beyond the batch-1 limits:
      • kv-cache-dtype fp8_e4m3 and SGLANG_SPEC_TP_SYNC=rng,-dspark-accept-sample, as in the reference BS1 recipe.
      • mem-fraction-static 0.91. The reference BS1 recipe does not set it; 0.91 is the value its launch resolved by default. The base recipe sets 0.8.
      • cuda-graph-backend-prefill: disabled is removed, so prefill uses the image default. On this image that default disables the prefill CUDA graph for DeepSeek-V4, as the server log of the validation run shows.
    • The slot list and the gates are benchmark settings for this low-latency point. A cookbook update will follow.
  • TP4 c4/c16 and TP2/EP2 c16: add dsv4-attn-backend: flashmla; the other engine settings are unchanged. They move to the new image with the row (see Risks).
  • Image / Dynamo: nightly-dev-cu13-20261025-65633129 (digest sha256:069efa1d…) with the ai-dynamo 1.6.0 it ships. The recipe identity is sglang 0.0.0.dev1+g656331295 and dynamo 1.6.0.
  • Acceptance: CI injects the golden thinking_on acceptance length 3.51 from dsv41flash_dspark.yaml (block size 5), as for the other DSpark points. SGLANG_SIMULATE_ACC_GREEDY=0 does not change that target.
  • Changelog: the entry lists both dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg and dsv41flash-fp4-gb300-dynamo-sglang-agentic-dspark-disagg, so the sweep produces the complete curve. The disaggregated config itself is unchanged.

Validation

The four aggregated recipes of this PR, run locally: the bound infx generate output at this PR's head, srt-slurm ae3d6877, one GB300 node per point, Dynamo frontend, CI client contract, full AgentX warmup, then 3600 s of measurement at golden acceptance 3.51. 0 errors at every point. Main is the published 10-15 image.

point P90 interactivity, tok/s/user (main) total tok/s/GPU (main) P90 TTFT (main)
TP4 c1 953.5 (653.6, +45.9%) 8.30k (7.86k, +5.6%) 0.260 s (0.414 s)
TP4 c4 601.7 (526.3, +14.3%) 10.68k (10.42k, +2.5%) 0.257 s (0.425 s)
TP4 c16 472.0 (414.9, +13.8%) 29.53k (29.15k, +1.3%) 1.443 s (1.982 s)
TP2/EP2 c16 326.0 (264.6, +23.2%) 58.06k (56.08k, +3.5%) 1.075 s (1.688 s)
Validation details

This PR on the 10-25 image. On TP4 c1, both the target and the DSpark draft megakernel specs report active on all four ranks, and the plugin is the image's 6fd7ac30; no setup script runs.

point measured requests / errors P50 / P90 interactivity (tok/s/user) P50 / P90 TTFT output / total tok/s/GPU
TP4 c1 480 / 0 987.2 / 953.5 0.159 / 0.260 s 52.10 / 8,303.9
TP4 c4 801 / 0 693.0 / 601.7 0.148 / 0.257 s 72.66 / 10,677.1
TP4 c16 2726 / 0 592.7 / 472.0 0.420 / 1.443 s 191.60 / 29,534.8
TP2/EP2 c16 2678 / 0 418.4 / 326.0 0.305 / 1.075 s 373.22 / 58,064.6

Earlier runs on the 10-21 image (c1c287a4), same method. TP4 c1 then needed a setup script that applied sglang#45450 and sgl-nvidia-mega 3333e4cf.

point P90 interactivity (tok/s/user) total tok/s/GPU P90 TTFT
TP4 c1 941.4 8,276.9 0.286 s
TP4 c4 590.8 9,736.1 0.254 s
TP4 c16 468.6 29,371.1 1.401 s
TP2/EP2 c16 315.4 57,998.6 1.176 s

On the 10-21 image with the pre-merge #45450 code and 3333e4cf, a plain python -m sglang.launch_server launch of the same batch-1 recipe, without Dynamo and without the client extra inputs, measured P90 interactivity 965.0 tok/s/user and P90 TTFT 0.199 s at the same median decode step (3.54 vs 3.55 ms). The remaining c1 gap therefore comes from outside the decode step: the Dynamo frontend, and the CI client contract, which adds temperature: 1 and the thinking chat-template kwargs to each request.

Why flashmla is pinned. On the 10-21 image the same three recipes left on auto (MegaAttention) measured P90 interactivity 465.8 (TP4 c4), 403.7 (TP4 c16) and 309.0 (TP2/EP2 c16). The decode step with one running request was 6.4 ms with auto and 5.1 ms with flashmla at TP4, and 7.2 vs 6.1 ms at TP2. The 10-25 image resolves auto the same way.

AI model disclosure
  • Claude Opus 5.5 (claude-opus-5-5) for all agents involved: delegated agents ported the recipe, moved it to the 10-25 image, ran the local validation, and drafted this description; a second, independent agent reviewed the diff and the description; the coordinating session reviewed and opened the PR.
中文

GB300 DeepSeek-V4.1-Flash Dynamo + SGLang 聚合 TP4 c1 点目前未启用 NVIDIA megakernel,已发布的 P90 交互性为 653.6 tok/s/user,吞吐 7.9k tok/s/GPU。本 PR 将 TP4 c1 改为严格 batch-1 megakernel 点。在本地以完全相同的配方运行 3600 秒,P90 交互性为 953.5 tok/s/user,吞吐 8.30k tok/s/GPU,0 错误。

整条聚合曲线(dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg)迁移到 lmsysorg/sglang:nightly-dev-cu13-20261025-65633129。该 nightly 已包含 sglang#45450 以及 megakernel 所需的 sgl-nvidia-mega 插件,因此所有点都按原样运行镜像,不再需要 setup 脚本、引擎补丁或豁免说明。

风险

  • 其余聚合点: TP4 c4/c16 与 TP2/EP2 c16 不启用 megakernel,并固定 dsv4-attn-backend: flashmla。该镜像上 auto 会选择 FlashMLA MegaAttention(sglang#43922),它把每个 rank 的注意力头补零到 64:TP4 为 4 倍,TP2 为 2 倍。固定后,三个点在本地运行中的 P90 交互性、吞吐与 P90 TTFT 均优于 main(见下表)。
  • Megakernel 插件版本: 镜像安装 sgl-nvidia-mega 6fd7ac30,即 sglang#45389 迁移 megakernel 接口后 SGLang Dockerfile 固定的版本。它是 3333e4cf 加上 Kimi K3 支持及相应的 import 路径修复;其 DeepSeek-V4.1 代码与 3333e4cf 仅 import 路径不同。
  • 分离式点: dsv41flash-fp4-gb300-dynamo-sglang-agentic-dspark-disagg 不变,保持当前镜像;列入 changelog 只是为了让 sweep 生成完整曲线。

改动

  • TP4 c1(override_tp4_c1)
    • --enable-nvidia-megakernel,42 个 kernel slot:39 个默认 slot,外加 target_lm_head、hop_b_quad_trigger、lm_head_pinned_tactic。
    • sglang#45450 的 decode graph 开关(SGLANG_DSPARK_* / SGLANG_OPT_*)。
    • max-running-requests 1、cuda-graph-max-bs-decode 1、swa-prefix-tails 128、prefill-decode-interval 16、schedule-policy lpm、context-length 1048576、startup-weight-load-mode serial。
    • NCCL_CUMEM_ENABLE=0、NCCL_MNNVL_ENABLE=0。
    • batch-1 限制之外的其他改动:
      • kv-cache-dtype fp8_e4m3 与 SGLANG_SPEC_TP_SYNC=rng,-dspark-accept-sample,与参考 BS1 配方相同。
      • mem-fraction-static 0.91。参考 BS1 配方未设置此项,0.91 是其启动时默认解析出的值;base 配方为 0.8。
      • 移除 cuda-graph-backend-prefill: disabled,prefill 使用镜像默认值。在此镜像上,该默认值会对 DeepSeek-V4 关闭 prefill CUDA graph,验证运行的服务端日志可以证实。
    • slot 列表与各开关是该低延迟点的 benchmark 设置,后续将跟进 cookbook 更新。
  • TP4 c4/c16 与 TP2/EP2 c16: 新增 dsv4-attn-backend: flashmla,其余引擎参数不变,随整行迁移到新镜像(见风险)。
  • 镜像 / Dynamo: nightly-dev-cu13-20261025-65633129(digest sha256:069efa1d…)及其自带的 ai-dynamo 1.6.0。配方 identity 为 sglang 0.0.0.dev1+g656331295、dynamo 1.6.0。
  • 接受长度: 与其他 DSpark 点相同,CI 注入 dsv41flash_dspark.yaml 中的 golden thinking_on 接受长度 3.51(block size 5)。SGLANG_SIMULATE_ACC_GREEDY=0 不改变该目标值。
  • Changelog: 条目同时列出聚合与 dspark-disagg 两个配置,使 sweep 生成完整曲线;分离式配置本身不变。

验证

在本地运行本 PR 的四个聚合配方:本 PR head 经 infx generate 绑定的输出,srt-slurm ae3d6877,每个点 1 个 GB300 节点,Dynamo 前端,CI 客户端约定,完整 AgentX warmup,之后以 golden 接受长度 3.51 测量 3600 秒。所有点均 0 错误。main 为已发布的 10-15 镜像结果。

点 P90 交互性 tok/s/user(main) 总吞吐 tok/s/GPU(main) P90 TTFT(main)
TP4 c1 953.5(653.6,+45.9%) 8.30k(7.86k,+5.6%) 0.260 秒(0.414 秒)
TP4 c4 601.7(526.3,+14.3%) 10.68k(10.42k,+2.5%) 0.257 秒(0.425 秒)
TP4 c16 472.0(414.9,+13.8%) 29.53k(29.15k,+1.3%) 1.443 秒(1.982 秒)
TP2/EP2 c16 326.0(264.6,+23.2%) 58.06k(56.08k,+3.5%) 1.075 秒(1.688 秒)

验证详情

本 PR 在 10-25 镜像上的结果。 TP4 c1 上,目标模型与 DSpark draft 的 megakernel spec 在全部 4 个 rank 上均报告 active,插件为镜像自带的 6fd7ac30,未运行任何 setup 脚本。

点 测量请求数 / 错误 P50 / P90 交互性(tok/s/user) P50 / P90 TTFT 输出 / 总吞吐(tok/s/GPU)
TP4 c1 480 / 0 987.2 / 953.5 0.159 / 0.260 秒 52.10 / 8,303.9
TP4 c4 801 / 0 693.0 / 601.7 0.148 / 0.257 秒 72.66 / 10,677.1
TP4 c16 2726 / 0 592.7 / 472.0 0.420 / 1.443 秒 191.60 / 29,534.8
TP2/EP2 c16 2678 / 0 418.4 / 326.0 0.305 / 1.075 秒 373.22 / 58,064.6

此前在 10-21 镜像(c1c287a4)上以相同方法的运行。 当时 TP4 c1 需要通过 setup 脚本应用 sglang#45450 并检出 sgl-nvidia-mega 3333e4cf。

点 P90 交互性(tok/s/user) 总吞吐 tok/s/GPU P90 TTFT
TP4 c1 941.4 8,276.9 0.286 秒
TP4 c4 590.8 9,736.1 0.254 秒
TP4 c16 468.6 29,371.1 1.401 秒
TP2/EP2 c16 315.4 57,998.6 1.176 秒

在 10-21 镜像加合并前的 #45450 代码与 3333e4cf 上,同一 batch-1 配方以纯 python -m sglang.launch_server 启动(不经 Dynamo,客户端不附加额外参数),P90 交互性为 965.0 tok/s/user,P90 TTFT 为 0.199 秒,decode step 中位数相同(3.54 对 3.55 ms)。因此 c1 剩余的差距来自 decode step 之外:Dynamo 前端,以及 CI 客户端约定为每个请求添加的 temperature: 1 与 thinking chat-template 参数。

为何固定 flashmla。 在 10-21 镜像上,同样三个配方保持 auto(MegaAttention)时,P90 交互性分别为 465.8(TP4 c4)、403.7(TP4 c16)与 309.0(TP2/EP2 c16)。单请求解码步长在 TP4 上 auto 为 6.4 ms、flashmla 为 5.1 ms,在 TP2 上为 7.2 对 6.1 ms。10-25 镜像对 auto 的解析方式相同。

AI 模型披露

  • 所有参与的 agent 均使用 Claude Opus 5.5(claude-opus-5-5):委派 agent 移植配方、将其迁移到 10-25 镜像、运行本地验证并起草本描述;另一个独立 agent 审查了改动与描述;协调会话负责复核并提交 PR。

…egakernel point

Root cause: the TP4 c1 aggregated point ran the October 15 image without
the megakernel. The batch-1 megakernel recipe (sglang#45450 decode-graph
gates, 42 kernel slots, max-running-requests and decode graph batch 1)
needs #45450, which no public nightly ships yet. It also needs an
sgl-nvidia-mega newer than the image's Dockerfile pin d47deb33, which fails
on c1c287a4 after sglang#45112 and #44912.

Fix: move the aggregated row to nightly-dev-cu13-20261021-c1c287a4 with
the ai-dynamo 1.6.0.dev20261019 it ships. Port the strict batch-1 launcher
env and args into override_tp4_c1. Its setup_script applies the merged
#45450 backported to c1c287a4 and checks out sgl-nvidia-mega 3333e4cf. The
waiver is in docs/waiver. Only c1 runs the setup script. c1 also sets
kv-cache-dtype fp8_e4m3 and SGLANG_SPEC_TP_SYNC as in the reference BS1
recipe, mem-fraction-static 0.91 (the reference launch's resolved
default), and drops cuda-graph-backend-prefill (the image default disables
the prefill graph for DeepSeek-V4). The c4/c16 and TP2 c16 args are
unchanged. They run the image as shipped and were not rerun on c1c287a4;
the CI sweep is their first run. The changelog entry also lists the
unchanged disaggregated key so the curve is swept together.

Validation: a plain SGLang reproduction of the same launcher on
c1c287a4 + pre-merge #45450 (4e76b879) + 3333e4cf, AgentX c1 3600 s,
measured 481 requests with 0 errors. P50/P90 interactivity was
991.7/965.0 tok/s/user, P90 TTFT 0.199 s, 8314.5 tok/s/GPU. The Dynamo
recipe itself (bound override_tp4_c1, srt-slurm ae3d6877, setup script)
measured 473 requests with 0 errors: P50/P90 interactivity 984.0/941.4,
P90 TTFT 0.286 s, 8276.9 tok/s/GPU, median decode step 3.55 ms (plain
3.54 ms). On a CPU node the backport applies idempotently and its modules
import.

根因:聚合 TP4 c1 点使用 10 月 15 日镜像且未启用 megakernel。batch-1
megakernel 配方需要 #45450(尚无公开 nightly 包含),且需要比镜像
Dockerfile 固定的 d47deb33 更新的 sgl-nvidia-mega;d47deb33 在
c1c287a4(已含 sglang#45112、#44912)上无法运行。

修复:聚合配置迁移到 nightly-dev-cu13-20261021-c1c287a4 及其自带的
ai-dynamo 1.6.0.dev20261019。将严格 batch-1 启动参数与环境变量移植到
override_tp4_c1。其 setup_script 应用回移到 c1c287a4 的已合并 #45450,
并检出 sgl-nvidia-mega 3333e4cf,豁免说明见 docs/waiver。c4/c16 与 TP2 c16
参数不变,按原镜像运行,未在 c1c287a4 上重新运行,CI sweep 是其首次运行。只有 c1
运行 setup 脚本。c1 另设 kv-cache-dtype fp8_e4m3 与 SGLANG_SPEC_TP_SYNC(同参考
BS1 配方)、mem-fraction-static 0.91(参考启动默认解析值),并移除
cuda-graph-backend-prefill(镜像默认对 DeepSeek-V4 关闭 prefill graph)。
changelog 条目同时列出未改动的分离式配置,使整条曲线一起测试。

验证:同一启动器的纯 SGLang 复现(c1c287a4 + 合并前 #45450 (4e76b879)
+ 3333e4cf,AgentX c1 3600 秒)完成 481 个请求、0 错误。P50/P90 交互性
为 991.7/965.0 tok/s/user,P90 TTFT 0.199 秒,8314.5 tok/s/GPU。Dynamo 配方
本身(绑定后的 override_tp4_c1,srt-slurm ae3d6877,setup 脚本)完成 473 个
请求、0 错误:P50/P90 交互性 984.0/941.4,P90 TTFT 0.286 秒,8276.9
tok/s/GPU,decode step 中位数 3.55 ms(纯 SGLang 3.54 ms)。在 CPU 节点上,
回移补丁可幂等应用,相关模块均可导入。
…-gb300-sgl-agg-bs1-mega

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
…P2 c16 / 为 TP4 c4/c16 与 TP2 c16 固定 FlashMLA

Root cause: on the 20261021 nightly, dsv4-attn-backend auto resolves to
flashmla_mega for DeepSeek-V4.1 with an fp8_e4m3 KV cache on SM100
(sglang#43922). MegaAttention zero-pads the per-rank query heads to 64, so
TP4 (16 local heads) does 4x and TP2 (32) 2x the attention work. The
target-verify graph gets about 1.1 ms per decode step slower at TP4.

Fix: set dsv4-attn-backend: flashmla in override_tp4_c4, override_tp4_c16
and override_tp2_c16. TP4 c1 already pins flashmla.

Validation (local, same recipe and client as CI, 60-min profiling window):
- TP4 c4: P90 interactivity 465.8 -> 590.8, decode step 6.41 -> 5.05 ms
- TP4 c16: P90 403.7 -> 468.6, TTFT P90 1.89 -> 1.40 s
- TP2/EP2 c16: P50/P90 376.2/309.0 -> 414.8/315.4
All runs 0 errors; throughput/GPU within 1.5%.
…-gb300-sgl-agg-bs1-mega

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
… and drop the c1 patch / 将 GB300 DSV4.1-Flash 聚合迁移到 10-25 SGLang nightly 并移除 c1 补丁

Root cause: the 10-21 image lacked sglang#45450 and pinned an
sgl-nvidia-mega that does not start on it, so TP4 c1 needed a startup
patch, a plugin checkout and a waiver.

Fix: the agg key moves to nightly-dev-cu13-20261025-65633129
(index digest sha256:069efa1d...) with the ai-dynamo 1.6.0 it ships;
recipe identity is sglang 0.0.0.dev1+g656331295 / dynamo 1.6.0. That
image contains #45450 and installs sgl-nvidia-mega 6fd7ac30 (3333e4cf
plus Kimi K3 and the #45389 import-path fix; DSv4.1 code differs only in
import paths). Removed setup_script from override_tp4_c1, the patch
script and patch dir, and docs/waiver/4434.md. The c1 megakernel args,
env and slot list, and the flashmla pins are unchanged; all 21 SGLANG_*
gates, the c1 flags and the 42 slots resolve on the image. The changelog
entry is rewritten for the new image and still lists the disagg key.

Validation: GB300 runs of the four bound agg recipes at this head.

中文:
根因:10-21 镜像不含 sglang#45450,且其固定的 sgl-nvidia-mega 无法在其上启动,
因此 TP4 c1 需要启动补丁、插件检出与豁免说明。
修复:聚合配置迁移到 nightly-dev-cu13-20261025-65633129(index digest
sha256:069efa1d...)及其自带的 ai-dynamo 1.6.0;配方 identity 改为 sglang
0.0.0.dev1+g656331295 / dynamo 1.6.0。该镜像包含 #45450,并安装 sgl-nvidia-mega
6fd7ac30(3333e4cf 加 Kimi K3 与 #45389 的 import 路径修复;DSv4.1 代码仅 import
路径不同)。移除 override_tp4_c1 的 setup_script、补丁脚本与补丁目录,以及
docs/waiver/4434.md。c1 megakernel 参数、环境变量、slot 列表与 flashmla 固定不变;
21 个 SGLANG_* 开关、c1 参数与 42 个 slot 在该镜像上均可解析。changelog 条目按新镜像
重写,仍包含分离式配置。
验证:在 GB300 上运行本 head 的四个绑定聚合配方。
@weireweire
weireweire marked this pull request as ready for review October 25, 2026 02:04
@weireweire
weireweire requested a review from a team October 25, 2026 02:04
@weireweire weireweire added the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Oct 25, 2026
@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, 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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@claude

claude Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @weireweire's task in 23s —— View job


Review

LGTM: I found no blocking issues in the diff.

The changelog entry is appended at the end of the file and covers both config keys. The image is a public Docker Hub tag pinned by digest. The recipe no longer references the setup script or the waiver.

One non-code note: the PR description is out of date with the latest commit (6e0aec9). The description still describes nightly-dev-cu13-20261021-c1c287a4, the dsv41flash-sglang-patches.sh setup script and docs/waiver/4434.md. The diff now uses nightly-dev-cu13-20261025-65633129 with Dynamo 1.6.0, has no patch or waiver, and also pins dsv4-attn-backend: flashmla on TP4 c4/c16 and TP2/EP2 c16. So the c1 validation numbers in the description come from a different image and patch stack than the one this PR runs. Please update the description, or note that the CI sweep is the first run on 65633129.

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

schedule-policy: lpm
swa-prefix-tails: 128
tokenizer-backend: fastokens
enable-metrics-for-all-schedulers: true

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.

🟡 (optional) Published server-side token counters for the TP4 c1 point will be about 4x too high, unlike c4/c16 on the same curve. enable-metrics-for-all-schedulers makes all four TP ranks of this non-DP-attention worker record scheduler metrics. Each rank's series carries a distinct tp_rank label, and sum_stat in backends/sglang.py adds them all. Fix: drop enable-metrics-for-all-schedulers from override_tp4_c1, since it only helps with dp-attention. The alternative is to have the sglang adapter keep one TP rank per counter.

Why this was flagged

The override at agg-variants.yaml:139 runs TP4 without dp-attention (master row dp-attn: false, nvidia-master.yaml:9434). SGLang documents this flag as making schedulers on all TP ranks, not only TP 0, record metrics. That yields one series per tp_rank for scheduler counters such as sglang:realtime_tokens. SglangBackend.populate (infx/results/agentic/backends/sglang.py:108-113) sums realtime_tokens{mode=prefill_compute} across every series via sum_stat (common.py:135-153). So server_metrics.tokens.prompt_by_source.computed in the published aggregate (agentic/init.py:244) comes out roughly 4x the real value. Any other scheduler-side counter summed there is inflated the same way. On the base branch only TP rank 0 records these, and c4/c16/tp2 still do, so the c1 point is inconsistent with its curve. compute_server_metrics (server_metrics.py:55-59) nulls only gpu_total_tokens for dynamo-sglang replicas. It does not normalize the summed counters.

Verification: agg-variants.yaml:139 adds enable-metrics-for-all-schedulers: true to override_tp4_c1 only, a TP4 point with no dp-attention. sum_stat (common.py:135-153) adds every matching series and does not dedupe by tp_rank. So tokens.prompt_by_source.computed (sglang.py:140) comes out about 4x too high for TP4 c1. The c4/c16 points on the same curve don't set the flag, so they report only TP0.

@github-actions

Copy link
Copy Markdown
Contributor

@weireweire

Copy link
Copy Markdown
Collaborator Author

Cookbook update: sgl-project/sglang#46490

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook integration of this PR's AgentX config (dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg) will happen in sgl-project/sglang#46506, in the Agentic Long-Context Deployment section of the DeepSeek-V4.1 cookbook page.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (6e0aec9ff) 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

[by Claude Code] sgl-project/sglang#46506 has been merged. This PR's AgentX config (dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg) is now in the Agentic Long-Context Deployment section of the SGLang DeepSeek-V4.1 cookbook: https://docs.sglang.io/cookbook/autoregressive/DeepSeek/DeepSeek-V4_1#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 (6e0aec9ff) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@Oseltamivir

Copy link
Copy Markdown
Collaborator

As a PR reviewer and CODEOWNER, I have reviewed this and have

Ignore missing checklist, do the other checks. Look thru PR and PR comments

@github-actions

Copy link
Copy Markdown
Contributor

❌❌❌ REJECTED ❌❌❌

@Oseltamivir the sign-off is not the review checklist, it does not link the upstream cookbook, and no eval covers the new TP4 c1 megakernel path. Post the full current checklist with a link to the merged cookbook, and add eval coverage for TP4 c1. The sign-off asks the verifier to "ignore missing checklist". Instructions in the sign-off cannot waive a check, so Check 5 still applies.

❌ Check 2 (Evals): FAIL — No eval covers the changed TP4 c1 megakernel path. --enable-nvidia-megakernel, the 42 SGLANG_NVIDIA_MEGAKERNEL_SLOTS, the sampling/rejection gates (SGLANG_OPT_DSV41_BLOCKWISE_REJECTION, SGLANG_OPT_DSV41_SAMPLING_ACCEPT_GRAPH, SGLANG_SIMULATE_ACC_GREEDY=0) and kv-cache-dtype fp8_e4m3 exist only in override_tp4_c1. Run 40153045152 (SHA 6e0aec9f) ran agg evals only at TP4 c16 (gsm8k 0.9735) and TP2/EP2 c16 (0.9712). Both pass the cohort comparison, but neither runs the megakernel path.

❌ Check 3 (Upstream recipe): FAIL — The sign-off has no additional detail section and no recipe link. The upstream coverage exists: sglang#46506 (MERGED 2026-10-26) publishes the agg TP4 c1 megakernel launch (slots, fp8_e4m3, flashmla, mem-fraction-static 0.91, the 10-25 image) and flashmla on c4/c16/TP2 c16 on the DeepSeek-V4.1 cookbook page. It is linked only in PR comments, not in the sign-off. sglang#46490 is still OPEN and does not count.

❌ Check 5 (Checklist template): FAIL — The sign-off contains none of the items in the current PR_REVIEW_CHECKLIST.md. It has only the trigger line, plus "Ignore missing checklist", with no checked items, no additional detail section and no signature.

⚠️ Check 4 (Reuse command): WARN — No authorized reuse command has been posted on this PR. An authorized maintainer must comment /use 40153045152 on its own line before merging. This PR appends a perf-changelog.yaml entry, so merging without the command makes the push-to-main merge-ingest.yml "Require sweep reuse" step fail, and the results never publish.

⚠️ Check 13 (Draft precision): WARN — Draft precision could not be verified for TP4 c1 (DSpark draft, 42 megakernel slots including draft_*, kv-cache-dtype fp8_e4m3). The sign-off records no shipped or effective draft precision. Inspection of sgl-nvidia-mega 6fd7ac30 found no draft weight down-conversion: draft_wo_a requires BF16 wo_a weights, and draft_moe/draft_qkv_a reuse the MXFP4/MXFP8 weights SGLang already loaded. Still unverified: whether fp8_e4m3 KV for the draft matches the image's default draft KV dtype for this checkpoint, and that the image leaves SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE disabled. Human review needed.

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — The signer is a repository admin and is listed in CODEOWNERS. nvidia-master.yaml and the gb300-* recipe are owned by the NVIDIA owners plus @SemiAnalysisAI/core; team membership is unreadable (404), which is not a failure. perf-changelog.yaml falls under the catch-all.

✅ Check 1 (In-PR sweep): PASS — Run 40153045152 ran on the pinned head 6e0aec9f. All 7 multi-node agentic / jobs and all 5 multi-node agentic eval / jobs succeeded. There are no later commits.

✅ Check 6 (Upstream image): PASS — lmsysorg/sglang:nightly-dev-cu13-20261025-65633129@sha256:069efa1d… is upstream. dynamo-sglang is an open-source engine entry, so the ordering rule does not apply.

✅ Check 7 (Deprecated models): PASS — MODELS.md lists dsv41flash agentic coding (SGLang DSpark) as active as of 2026-10-26.

✅ Check 8 (Benchmark hacks): PASS — There are no --hf-overrides, model-config edits or indexer skipping. The c1 FP8 KV cache is not paired with any other quality trade.

✅ Check 9 (Chat template): PASS — The DSpark AgentX client sends chat requests with chat_template_kwargs (thinking, reasoning_effort) through the Dynamo frontend.

✅ Check 10 (Engine patches): PASS — There is no setup script, patch, overlay or wheel install in the recipe at 6e0aec9f. The megakernel plugin ships in the pinned image.

✅ Check 11 (Golden AL): PASS — The c1 job log shows CI applied SGLANG_SIMULATE_ACC_LEN=3.51, match-expected and real-draft-token. This matches dsv41flash_dspark.yaml thinking_on, block size 5 (3.51).

➖ Check 12 (Append-only): N/A — The new changelog entry has no append-only: true.

✅ Check 14 (Pareto coverage): PASS — The dsv41flash agentic GB300 dynamo-sglang fp4 P90-E2EL curve in run 40153045152 has 6/7 measured points on the frontier (agg c1, TP4 c16, TP2 c16, and disagg c1228/c2884/c4096). TP4 c4 is dominated by TP4 c16. Counted manually from the bmk_agentic_* artifacts, because the helper's stdin invocation was not runnable in this sandbox.

✅ Check 15 (PR description): PASS — The body's claims match the pinned code: the 10-25 image with Dynamo 1.6.0, no setup script or waiver, the c1 settings, and flashmla on the other three agg points. The disagg config is unchanged.

✅ Check 16 (NVIDIA overview): PASS — The NVIDIA overview Framework Recipes table lists DeepSeek-V4.1-Flash with an SGLang entry.

➖ Check 17 (Metrics publication): N/A — This is dynamo-sglang, not Dynamo TRT-LLM. enable-metrics is on and the server metrics are present.

✅ Check 18 (Recipe/sweep consistency): PASS — Master and recipe tp/ep/gpus agree, and all configs generate. The image resolves by digest, and there are no orchestration or dispatch changes. The changelog covers the image, flashmla and c1 fp8_e4m3 KV. All 4 replaced points are dominated by their re-tuned versions. Re-tune deltas: c1 +5.7% tput / +46.6% intvty; c4 +0.4% / +11.4%; c16 +0.7% / +10.1%; TP2 c16 +3.7% / +24.9%.

Assessed commit: 6e0aec9ff3ef06dc985a6408b2461b0184296e6c.

@Oseltamivir

Copy link
Copy Markdown
Collaborator

@nvpohanh

Copy link
Copy Markdown
Collaborator

/use 40153045152

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

@nvpohanh staged run 40153045152.

This run remains available across future /stage-results requests. Staging the same run ID again updates its staged data. Staging workflow

@nvpohanh

Copy link
Copy Markdown
Collaborator

As a PR reviewer and CODEOWNER, I have reviewed this and have:

  • Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
  • Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
  • Verified that this PR has passed PR validation. Please link to GitHub Action workflow that shows this.
  • Verified that this PR passes evals. Please link to GitHub Action workflow that shows this.
  • Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
  • Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL. Explicitly verified that SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.
  • For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
  • Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
  • Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
  • If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
  • If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
  • Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
    • I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source repo and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
  • Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/<PR_NUMBER>.md — named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section.
  • If this PR uses append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it.
  • If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
  • Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details.

Additional detail section:

  • Assessed head: 6e0aec9ff3ef06dc985a6408b2461b0184296e6c. The pinned run is 40153045152 (/use 40153045152 posted).
  • Code quality: The diff is config-only. It touches agg-variants.yaml, the dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg image/router in nvidia-master.yaml, and appends one perf-changelog.yaml entry at the end of the file. No existing entries are edited.
  • PR validation: In Run Sweep 40153045152 (pull_request, head 6e0aec9f, conclusion success), all 7 multi-node agentic / jobs and all 5 multi-node agentic eval / jobs succeeded. The 7 jobs are agg TP4 c1/c4/c16 and TP2/EP2 c16, plus disagg 3P/5P/8P x 1D at c1228/c2884/c4096. check-changelog and collect-evals also passed. The skipped jobs are other scenario lanes this config does not generate.
  • Evals (gsm8k em_strict, threshold 0.90 by default; thresholds.yaml has no dsv41flash entry):
    • Run 40153045152: agg TP4 c16 0.9735, TP2/EP2 c16 0.9712, disagg c1228 0.9727, c2884 0.9727, c4096 0.9750 (n=1319, SE ≈ 0.0045).
    • Eval-only run 40278935782 at the same SHA 6e0aec9f covers the changed TP4 c1 megakernel path. TP4 c1 scores 0.9773 (SE 0.0041), TP4 c4 0.9727, TP4 c16 0.9773 and TP2/EP2 c16 0.9719. All 4 jobs succeeded. TP4 c1 is not materially weaker than any sibling or than the disagg cohort.
    • The TP4 c1 eval server log (im-gb300-r01-c016_agg_w0.out in that run's multinode_server_logs_*conc1*_lm-eval_ artifact) shows the changed path actually ran. It has enable_nvidia_megakernel: True and kv_cache_dtype: fp8_e4m3. It also logs megakernel: active (DeepSeek-V4.1: slots [...]), megakernel: DeepSeek-V4.1 runs the decode graphs of batch sizes [1], megakernel: deepseek_v41_dspark_draft_nvidia runs the decode graphs of batch sizes [1] and megakernel: draft proposal engaged: batch 1, 5 LM-head rows.
  • Chat template: The AgentX client sends chat requests through the Dynamo frontend with AIPERF_EXTRA_INPUTS={"chat_template_kwargs":{"reasoning_effort":"high","thinking":true},"temperature":1} (base recipe benchmark.env).
  • Draft precision:
    • The draft is the DSpark head that ships inside deepseek-ai/DeepSeek-V4.1-Flash. The server log resolves speculative_draft_model_path: deepseek-ai/DeepSeek-V4.1-Flash, with no substituted draft checkpoint.
    • Shipped precision, per the checkpoint config.json quantization_config, is quant_method: fp8, weight_block_size: [32, 32], scale_fmt: ue8m0, expert_dtype: fp4. That means MXFP8 dense and MXFP4 experts. The pinned image loads the DSpark wo_a as BF16 by default.
    • Effective precision is the same. speculative_draft_model_quantization: None, speculative_draft_kv_cache_dtype: None (inherits the target), and speculative_moe_runner_backend: flashinfer_mxfp4 (on stored MXFP4 experts). The megakernel draft_* slots reuse the weights SGLang already loaded, and draft_wo_a consumes the default BF16 wo_a.
    • The TP4 c1 kv-cache-dtype: fp8_e4m3 restates the image default for this checkpoint. TP4 c16, which does not set the flag, also resolves kv_cache_dtype: fp8_e4m3 in run 40278935782. It applies consistently to target and draft.
    • SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled. It is absent from agg-variants.yaml, disagg-variants.yaml, the generated config.yaml/sbatch_script.sh, and all 7 benchmark job logs of run 40153045152. In pinned SGLang 656331295, environ.py defines it as EnvBool(False). It would also only apply to modelopt_fp4 checkpoints with the deep_gemm runner, and this checkpoint is neither.
  • Golden AL: All 7 benchmark job logs of run 40153045152 show SGLANG_SIMULATE_ACC_LEN=3.51, SGLANG_SIMULATE_ACC_METHOD=match-expected and SGLANG_SIMULATE_ACC_TOKEN_MODE=real-draft-token. That value matches dsv41flash_dspark.yaml deepseek-v4.1-flash.thinking_on.5 = 3.51. The recipes use speculative-dspark-block-size: 5 and send thinking: true.
  • MODELS.md: dsv41flash lists Agentic coding (SGLang DSpark) as active, with no deprecated scenarios.
  • Benchmark hacks: There is no --hf-overrides, --json-model-override-args, model-config edit, or indexer skipping. The c1 FP8 KV cache is the image default, not compensation for another quality trade, and it is eval-covered above.
  • Dynamo TRT-LLM metrics: N/A. This is dynamo-sglang, not Dynamo TRT-LLM.
  • Upstream image: lmsysorg/sglang:nightly-dev-cu13-20261025-65633129@sha256:069efa1d6a2d58309529f53eeee34c39d69b1cdb455eaf7fb8de83e3fd0be727 (agg). The unchanged disagg config uses lmsysorg/sglang:nightly-dev-cu13-20261021-c1c287a4@sha256:b0473834…. Both are upstream lmsysorg.
  • Engine-first ordering: The ordering rule does not apply. dynamo-sglang is an SGLang (open-source engine) entry, and this PR adds no vendor-specific framework entry.
  • Upstream recipe:
    • Merged cookbook PR sgl-project/sglang#46506 (MERGED 2026-10-26T05:04:00Z) publishes this PR's agg config in the SGLang DeepSeek-V4.1 cookbook, Agentic Long-Context Deployment.
    • The cookbook covers the 20261025 image, the TP4 c1 megakernel launch (--enable-nvidia-megakernel, SGLANG_NVIDIA_MEGAKERNEL_SLOTS, --kv-cache-dtype fp8_e4m3, --mem-fraction-static 0.91, --dsv4-attn-backend flashmla), and --dsv4-attn-backend flashmla on TP4 c4/c16 and TP2/EP2 c16.
    • The unchanged dsv41flash-fp4-gb300-dynamo-sglang-agentic-dspark-disagg prefill/decode/frontend launches are on the same page.
    • sgl-project/sglang#46490 was closed without merging, and I do not rely on it.
    • Excluded InferenceX-only settings: HF_HUB_CACHE, slurm/srun/sbatch options, health-check timing, the tachometer/otel-collector toggles, AIPERF_* client controls, and the SGLANG_SIMULATE_ACC_* synthetic-acceptance controls. These are harness, collection, or synthetic benchmark controls with no production serving effect.
  • No engine patches: At 6e0aec9f there is no setup script, .patch, overlay, wheel install, or waiver. The megakernel plugin ships in the pinned image.
  • append-only: N/A. The new changelog entry does not use append-only: true.
  • Pareto coverage:
    • There is one affected curve: dsv41flash / agentic-coding / GB300 dynamo-sglang / fp4 / run 40153045152. It has 7 measured points from the bmk_agentic_* artifacts, plotted as per_gpu.total_tput_tps against E2EL.

    • P90 E2EL: 6/7 frontier points.

      Point P90 E2EL (s) tput/GPU
      agg TP4 c1 5.01 8,309
      agg TP4 c16 5.67 29,353
      agg TP2/EP2 c16 7.11 58,177
      disagg c1228 11.55 367,046
      disagg c2884 23.67 573,579
      disagg c4096 24.27 654,247

      TP4 c4 (5.84 s, 10,461) is dominated by TP4 c16.

    • P75 E2EL: 5/7 frontier points: TP4 c4, TP4 c16, TP2/EP2 c16, disagg c1228 and c4096. TP4 c1 and disagg c2884 are dominated.

    • Both percentiles meet the 5-point recommendation.

Signed: nvpohanh

@github-actions

Copy link
Copy Markdown
Contributor

✅✅✅ Verdict: PASS ✅✅✅

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — @nvpohanh is a named owner of inferencex-e2e/configs/nvidia-master.yaml and of the **/gb300-*/ srt-slurm recipe tree; perf-changelog.yaml falls under the * catch-all, so a recognized CODEOWNER covers it.

✅ Check 1 (Sweep on in-PR commit): PASS — The pinned head 6e0aec9f is in the PR. On it, all 7 multi-node agentic / jobs and the 5 multi-node agentic eval / jobs in Run Sweep 40153045152 (pull_request, success) succeeded, as did the 4 agg eval jobs in eval-only run 40278935782, which includes TP4 c1. No commits follow the validated SHA.

✅ Check 2 (Evals): PASS — gsm8k on the correct images: agg rows on 20261025-65633129; disagg rows on 20261021-c1c287a4, which is the disagg config's own unchanged image. Scores are 0.971–0.977 (n=1319). Every row is ok against its sibling and the exact-topology cohort (39695060576). TP4 c1 scores 0.9773 at recipe fingerprint 6a2c42ea, and its launch has --enable-nvidia-megakernel. Pinned sgl-nvidia-mega 6fd7ac30 documents no silent fallback: an unsupported setup stops the server. So the passing eval ran the megakernel path. The archived server-log tarball could not be decompressed in this sandbox.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#46506 is MERGED (2026-10-26T05:04Z). The deepseek-v4_1.jsx file on sglang main carries this config at SHA 6e0aec9f. It covers the 20261025 image, the full TP4 c1 megakernel launch (all args and the 42-slot SGLANG_NVIDIA_MEGAKERNEL_SLOTS/SGLANG_OPT_*/NCCL env), flashmla on TP4 c4/c16 and TP2/EP2 c16, the Dynamo frontend, and the unchanged dspark-disagg config. Exclusions (harness, AIPERF_*, SGLANG_SIMULATE_ACC_*) are justified.

✅ Check 4 (Reuse command): PASS — /use 40153045152 posted on its own line by nvpohanh (COLLABORATOR).

✅ Check 5 (Checklist template): PASS — Every item of the current PR_REVIEW_CHECKLIST.md template is present and checked, with an additional detail section.

✅ Check 6 (Upstream images / ordering): PASS — lmsysorg/sglang:nightly-dev-cu13-20261025-65633129@sha256:069efa1d… is upstream; dynamo-sglang is an open-source engine entry, so the ordering rule does not apply.

✅ Check 7 (Deprecated models): PASS — MODELS.md lists dsv41flash Agentic coding (SGLang DSpark) as active, with no deprecated scenarios.

✅ Check 8 (Architecture hacks): PASS — No --hf-overrides, model-config edits or indexer skipping. TP4 c1 kv-cache-dtype fp8_e4m3 restates the pinned SGLang default for DeepseekV4ForCausalLM (_deepseek_v4_kv_cache_dtype, auto→fp8_e4m3), and evals cover it.

✅ Check 9 (Chat template): PASS — The AgentX client goes through the Dynamo chat frontend with AIPERF_EXTRA_INPUTS chat_template_kwargs (thinking: true).

✅ Check 10 (Engine patches): PASS — At 6e0aec9f there is no setup script, .patch, overlay or wheel install. The megakernel plugin 6fd7ac30 is installed by the pinned image's Dockerfile at 656331295.

✅ Check 11 (Golden AL): PASS — The c1 job log of run 40153045152 shows SGLANG_SIMULATE_ACC_LEN=3.51 with match-expected/real-draft-token. This matches dsv41flash_dspark.yaml thinking_on block size 5 = 3.51 (signoff_facts golden-al: matches). SGLANG_SIMULATE_ACC_GREEDY=0 restates the EnvBool(False) default.

➖ Check 12 (Append-only): N/A — The new changelog entry does not set append-only: true.

✅ Check 13 (Draft precision): PASS — The embedded DSpark head ships in deepseek-ai/DeepSeek-V4.1-Flash (quant_method: fp8, block 32, expert_dtype: fp4). There is no draft quantization, dtype or checkpoint override. KV fp8_e4m3 is the image default, applied to target and draft. The megakernel's wo_a consumes BF16 weights, mirroring SGLang's fused_rope_wo_a_bf16(out_mxfp8=True). SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is unset in the recipes and is EnvBool(False) in pinned environ.py.

✅ Check 14 (Pareto coverage): PASS — One curve: dsv41flash / agentic-coding / GB300 dynamo-sglang / fp4 / run 40153045152, with 7 points from the bmk_agentic_* artifacts (per_gpu.total_tput_tps vs E2EL). P90 E2EL has 6/7 frontier points (TP4 c4 dominated by TP4 c16). P75 has 5/7 (TP4 c1 and disagg c2884 dominated).

✅ Check 15 (PR description): PASS — Claimed image, digest, plugin 6fd7ac30, 42 slots, c1 settings, flashmla pins, AL 3.51 and the unchanged disagg config all match 6e0aec9f. The local-run numbers are labeled as local, and they agree with CI (c1 8,309 tok/s/GPU).

✅ Check 16 (NVIDIA overview): PASS — The NVIDIA overview lists DeepSeek-V4.1-Flash with SGLang populated (links to the SGLang DeepSeek-V4.1 cookbook).

➖ Check 17 (Metrics publication): N/A — dynamo-sglang only. The Dynamo TRT-LLM metrics settings do not apply.

✅ Check 18 (Recipe/image/sweep consistency): PASS — No generation errors. Master TP4/EP1 c1, TP4 c4/c16 and TP2/EP2 c16 match the recipe overrides. The new image digest resolves. The changelog accurately states the image, flashmla pins, megakernel and KV dtype changes. Re-tuned points have no undominated removals: tput/GPU +5.7%/+0.4%/+0.7%/+3.7% and mean interactivity +46.6%/+11.4%/+10.1%/+24.9% for TP4 c1/c4/c16 and TP2/EP2 c16.

Assessed commit: 6e0aec9ff3ef06dc985a6408b2461b0184296e6c.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook update of this PR's AgentX config (dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg) will happen in sgl-project/sglang#46547, in the Agentic Long-Context Deployment section of the DeepSeek-V4.1 cookbook page. The config has been live in that section since sgl-project/sglang#46506; sgl-project/sglang#46547 refreshes it with the pin below.

The commands mirror the launch measured in run 40153045152, pinned by this PR's /use comment.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] sgl-project/sglang#46547 has been merged. This PR's AgentX config (dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg) is now in the Agentic Long-Context Deployment section of the SGLang DeepSeek-V4.1 cookbook: https://docs.sglang.io/cookbook/autoregressive/DeepSeek/DeepSeek-V4_1#agentic-long-context-deployment

The commands mirror the launch measured in run 40153045152, pinned by this PR's /use comment.

@Oseltamivir
Oseltamivir merged commit c30fc8a into main Oct 26, 2026
31 checks passed
@Oseltamivir
Oseltamivir deleted the weireweire/dsv41flash-gb300-sgl-agg-bs1-mega branch October 26, 2026 13:31
@github-actions

Copy link
Copy Markdown
Contributor

Ingest report — ✅ Results ingested into the production database.

Ingest workflow · Merge Ingest run · Benchmark source run

Category new duplicate skipped unmapped failed
benchmark 7 0 0 0 0
eval 5 5 0 0 0
trace 7 0 0 0 0
power 0 0 7 0 0

benchmarkFiles 7, rawBenchmarkRows 7, coveredByPerJobFiles 0, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 6595, gpuMetricSamplesNew 0, powerPublicationPoints 7, changelogEntriesWritten 1

Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun.

中文

Ingest 报告 — ✅ 结果已写入 production 数据库。

上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。

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.

3 participants