Skip to content

[K3.1-Pro] Add B300 Dynamo+SGLang TP8 aggregated and 1P1D/1P2D disaggregated curves at concurrency 1-56 / [K3.1-Pro] 新增 B300 Dynamo+SGLang 并发 1-56 的 TP8 聚合式与 1P1D/1P2D 分离式曲线 - #5026

Merged
Oseltamivir merged 4 commits into
mainfrom
nvpohanh/kimik31-b300-dynamo-sglang-agentx
Nov 17, 2026

Conversation

@nvpohanh

@nvpohanh nvpohanh commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds two Kimi-K3.1-Pro B300 Dynamo+SGLang AgentX config keys on the existing lmsysorg/sglang:dev-kimi-k31-pro image (same digest as kimik3.1-fp4-b300-sglang-agentic-dflash). Both use the Dynamo bundled in the image (dynamo.install: false) behind one Dynamo KV-router frontend with session affinity:

  • kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg: six aggregated points, one 8-GPU node each, at concurrency 1, 4, 32, 40, 48 and 56 (new agg-variants.yaml).
  • kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg: three disaggregated points at concurrency 24, 48 and 56 (new disagg-variants.yaml).

Both keys are new, so the changelog entry is a regular append and a sweep runs every point.

Recipe override Topology Conc Max running / decode CUDA graph bs Verify width (golden AL)
agg-variants.yaml:override_tp8_c1 agg TP8 1 2 / 2 8 (3.68)
agg-variants.yaml:override_tp8_c4 agg TP8 4 8 / 8 8 (3.68)
agg-variants.yaml:override_tp8_ep2_dcp8_c32 agg TP8 EP2 DCP8 32 64 / 64 6 (3.43)
agg-variants.yaml:override_tp8_ep2_dcp8_c40 agg TP8 EP2 DCP8 40 64 / 64 6 (3.43)
agg-variants.yaml:override_tp8_ep2_dcp8_c48 agg TP8 EP2 DCP8 48 96 / 96 5 (3.25)
agg-variants.yaml:override_tp8_ep2_dcp8_c56 agg TP8 EP2 DCP8 56 48 / 48 5 (3.25)
disagg-variants.yaml:override_1p2d_tp8_c24 1P2D, TP8 EP2 DCP8 everywhere 24 decode 64 / 64 per worker 6 (3.43)
disagg-variants.yaml:override_1p1d_tp8_c48 1P1D, TP8 EP2 DCP8 everywhere 48 decode 64 / 64 6 (3.43)
disagg-variants.yaml:override_1p2d_tp8_c56 1P2D, TP8 EP2 DCP8 everywhere 56 decode 64 / 64 per worker 6 (3.43)
  • Speculation: DFLASH with RadixArk/Kimi-K3.1-Dflash2-Preview, block verification, cutedsl_mla draft attention and an FP8 draft KV cache on every role. Prefill and decode use the same verify width. Acceptance comes from the committed golden curve kimi-k3.1-pro__dflash__kimi-k3.1-dflash2-preview__default-block.yaml, which the srt driver injects. DFLASH counts the verification width, so N verify tokens use curve level N-1. No recipe sets SGLANG_SIMULATE_ACC_* or SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE.
  • Aggregated, concurrency 1 and 4: TP8. Concurrency 1 enables the image's K3.1 GB runtime bundle (SGLANG_ENABLE_NV_MEGA_RUNTIME_K31_GB_OPTIMIZATION=1, with non-expandable segments so the KV pool is not shrunk). Both raise the generation-2 GC threshold to 100,000.
  • Aggregated, concurrency 32 to 56: TP8 with EP2 and DCP8 (fi_a2a combine) and the TRT-LLM DSA prefill and decode backends. Each point tunes the prefill-decode interval: 32 and 28 at concurrency 32 and 40 (min batch 8), 16 at 48 (min batch 8), and 16 at 56 (min batch 30). Concurrency 56 also sets mem-fraction-static 0.89, max-mamba-cache-size 240 and mamba-full-memory-ratio 0.66.
  • Disaggregated prefill: one TP8 EP2 DCP8 worker with shortest-prefill-first scheduling, 16 running requests, write-back HiCache and KV routing with a 14400 s session-affinity TTL.
  • Disaggregated decode: one or two TP8 EP2 DCP8 workers with 64 running requests, decode CUDA graphs up to 64, the decode radix cache, 16 extra transfer slots and ReplaySSM linear-attention speculation. The frontend's router-decode-active-request-weight sends each turn to the least-loaded decode worker.
  • KV transfer: Mooncake over TCP (MC_FORCE_TCP=1), in 4 MiB slices with deep per-peer queues.
  • Shared settings: FP32 KDA recurrent state, FP8 KV cache and 64-token pages on every role. HiCache holds 230 GB per rank on aggregated and prefill workers, with dram-utilization 0.75 as on the existing B300 SGLang entry. Checkpoints load multithreaded with prefetch. The AgentX client sends thinking on, temperature 1 and top-p 0.95, with Dynamo session IDs.

Things to know:

  • Pareto coverage: both keys plot as one B300 Dynamo+SGLang curve. In Run Sweep 43835221171, 7 of its 9 points are on the throughput-per-GPU versus E2EL frontier at both P90 and P75: every disaggregated point and aggregated concurrency 32 to 56. Aggregated concurrency 1 and 4 are latency points that this view dominates.
  • KV transfer over TCP: these recipes move KV with Mooncake over TCP, not RDMA, even though B300 DSXE nodes have InfiniBand.
AI model disclosure
  • Model/version: Claude Opus 5.5 (claude-opus-5-5), via Claude Code.
  • Role: drove the automated configuration search whose settings these recipes reproduce. It ported those settings into the recipe bundles and master-config entries, and wrote the changelog entry and this PR text. It also ran the local matrix generation (infx.matrix.changed) and the perf-changelog validation.
PR checklist and change type

Type of Change

  • Bug fix
  • New feature
  • Configuration change
  • Documentation update
  • Other (please describe)

Checklist

  • I have completed the AI model disclosure and kept it current
  • I have tested my changes locally
  • I have updated documentation if necessary
  • If python -m infx.matrix.changed --base origin/main lists affected config keys, I have appended one new entry covering them to the physical end of inferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entries
  • If this PR appends an inferencex-e2e/perf-changelog.yaml entry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs): full-sweep-fail-fast (recommended), full-sweep-enabled, or non-canary-full-sweep-enabled. Optional modifiers all-evals, evals-only, 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.
中文

本 PR 在现有的 lmsysorg/sglang:dev-kimi-k31-pro 镜像(与 kimik3.1-fp4-b300-sglang-agentic-dflash 使用相同 digest)上新增两个 Kimi-K3.1-Pro B300 Dynamo+SGLang AgentX config key。两者均直接使用镜像自带的 Dynamo(dynamo.install: false),前面是一个带会话亲和的 Dynamo KV 路由 frontend:

  • kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg:六个聚合式点,每个点使用一个 8 GPU 节点,并发 1、4、32、40、48 和 56(新文件 agg-variants.yaml)。
  • kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg:三个分离式点,并发 24、48 和 56(新文件 disagg-variants.yaml)。

两个 key 都是新增的,因此 changelog 条目为常规追加,sweep 会运行所有点。各配置点的拓扑、最大运行请求数、decode CUDA graph batch 和验证宽度见上方表格。

  • 投机解码: 所有角色都使用 RadixArk/Kimi-K3.1-Dflash2-Preview DFLASH,启用 block verification,draft attention 使用 cutedsl_mla,draft KV cache 为 FP8。prefill 与 decode 的验证宽度一致。接受长度取自已提交的 golden 曲线 kimi-k3.1-pro__dflash__kimi-k3.1-dflash2-preview__default-block.yaml,由 srt driver 注入。DFLASH 计算的是验证宽度,因此验证 N 个 token 对应曲线的 level N-1:验证 8 个为 3.68,6 个为 3.43,5 个为 3.25。recipe 中未设置 SGLANG_SIMULATE_ACC_* 或 SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE。
  • 聚合式,并发 1 和 4: TP8。并发 1 启用镜像的 K3.1 GB runtime bundle(SGLANG_ENABLE_NV_MEGA_RUNTIME_K31_GB_OPTIMIZATION=1,并使用非 expandable segments,避免 KV pool 被缩小)。两者都将第 2 代 GC 阈值提高到 100,000。
  • 聚合式,并发 32 至 56: TP8,EP2 与 DCP8(fi_a2a combine),prefill 与 decode 使用 TRT-LLM DSA 后端。每个点单独调优 prefill-decode interval:并发 32 和 40 分别为 32 和 28(最小 batch 8),并发 48 为 16(最小 batch 8),并发 56 为 16(最小 batch 30)。并发 56 另设 mem-fraction-static 0.89、max-mamba-cache-size 240 和 mamba-full-memory-ratio 0.66。
  • 分离式 prefill: 一个 TP8 EP2 DCP8 worker,shortest-prefill-first 调度,16 个运行请求,write-back HiCache,KV 路由的会话亲和 TTL 为 14400 秒。
  • 分离式 decode: 一个或两个 TP8 EP2 DCP8 worker,64 个运行请求,decode CUDA graph 最大 64,开启 decode radix cache,16 个额外传输槽位,并启用 ReplaySSM 线性注意力投机。frontend 的 router-decode-active-request-weight 将每一轮请求发往负载最低的 decode worker。
  • KV 传输: Mooncake 走 TCP(MC_FORCE_TCP=1),以 4 MiB 分片传输,每个对端的队列很深。
  • 共同设置: 所有角色均使用 FP32 KDA 递归状态、FP8 KV cache 和 64 token page。聚合与 prefill worker 每个 rank 的 HiCache 为 230 GB,dram-utilization 为 0.75,与现有 B300 SGLang 条目一致。checkpoint 多线程加载并预取。AgentX 客户端开启 thinking,temperature 1,top-p 0.95,并携带 Dynamo session ID。

注意事项:

  • Pareto 覆盖: 两个 key 在看板上属于同一条 B300 Dynamo+SGLang 曲线。在 Run Sweep 43835221171 中,9 个点里有 7 个在 P90 和 P75 的单 GPU 吞吐与 E2EL 前沿上:所有分离式点以及聚合式并发 32 至 56。聚合式并发 1 和 4 是低延迟点,在这一视图中被支配。
  • KV 走 TCP: 这些 recipe 通过 Mooncake TCP 而非 RDMA 传输 KV,尽管 B300 DSXE 节点具备 InfiniBand。

AI 模型使用说明:Claude Opus 5.5(claude-opus-5-5,通过 Claude Code)驱动了自动配置搜索,这些 recipe 复现了搜索得到的设置。它将这些设置移植到 recipe 配方包和 master config 条目中,撰写了 changelog 条目和本 PR 说明,并在本地运行了矩阵生成(infx.matrix.changed)和 perf-changelog 校验。

🤖 Generated with Claude Code

…hind a KV router

Add two new config keys on the existing lmsysorg/sglang:dev-kimi-k31-pro
image, each with its own recipe bundle under kimik3.1/sglang/b300-fp4/agentx:

- kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg (agg-variants.yaml),
  one 8-GPU node per point: TP8 at concurrency 1 (with the image's K3.1 GB
  runtime bundle) and 4 with 8 verify tokens,
  and TP8 EP2 DCP8 with the TRT-LLM DSA backend at concurrency 32, 40, 48
  and 56, each with its own max-running-requests, verify width and
  prefill-decode interval.
- kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg (disagg-variants.yaml):
  a TP8 EP2 DCP8 prefill worker with one decode worker at concurrency 48 and
  two at concurrency 24 and 56, Mooncake KV transfer over TCP.

Every point keeps FP32 KDA recurrent state, FP8 KV, DFLASH block
verification and HiCache on the aggregated or prefill workers.

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

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, 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 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.

gc-threshold: [700, 10, 100000]

# DCP8 shards the TP-replicated MLA KV across the eight ranks; EP2 speeds up the decode
# down-projection. The TRT-LLM DSA kernels take an FP8 query.

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.

🟡 nit (optional): Two new comments break the repo's comment rules (AGENTS.md, Comments). Lines 109-110 cite a past result ("trims the single-request decode step by ~1.3%"). Lines 134-135 are a header describing the DCP8/EP2 override topology. Fix: remove the past-result figure and keep only the reason for the non-expandable segments. Then drop the topology header, or move the FP8-query note onto the dsa-*-backend lines it explains.

Why this was flagged

AGENTS.md:56-58 bans header comments that describe a topology or override, and history comments that cite past results. It allows only short technical reasons for a specific line. agg-variants.yaml:108 quotes a measured ~1.3% gain, which is a past result belonging in perf-changelog.yaml. agg-variants.yaml:134-135 sits above override_tp8_ep2_dcp8_c32 and describes what DCP8 and EP2 do for the whole override group. This is a convention slip only: the benchmark runs the same either way, so reviewers would ask for it to be fixed before merge.

Verification: CLAUDE.md:3 sends all guidance to AGENTS.md, whose lines 56-57 ban topology header comments and past results. The ~1.3% figure at agg-variants.yaml:109-110 is a past measured result. agg-variants.yaml:134-135 sits above override_tp8_ep2_dcp8_c32: and describes the topology for the whole EP2/DCP8 override group. The benchmark runs the same either way.

schema: 2

base:
name: kimik3.1-fp4-b300-dynamo-sglang-agentx-disagg

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does thsi work with EFA? @nvpohanh dont u need to add libfarbic and efa flags too

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's using Mooncake + TCP for P->D transfers right now. we will move to EFA after we move to the nightly image from main branch.

@nvpohanh

Copy link
Copy Markdown
Collaborator Author

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

@nvpohanh nvpohanh added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 12, 2026
@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook integration of this PR's AgentX configs (kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg, kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg) will happen in sgl-project/sglang#50081, in the Agentic Long-Context Deployment section of the Kimi-K3.1-Pro cookbook page.

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

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

@nvpohanh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook update of this PR's AgentX configs (kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg, kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg) will happen in sgl-project/sglang#50289, in the Agentic Long-Context Deployment section of the Kimi-K3.1-Pro cookbook page. The configs have been live in that section since sgl-project/sglang#50081; 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 (9574d8f44) 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 (kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg, kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg) are now in the Agentic Long-Context Deployment section of the SGLang Kimi-K3.1-Pro cookbook: https://docs.sglang.io/cookbook/autoregressive/Moonshotai/Kimi-K3.1-Pro#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 (9574d8f44) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

…00-dynamo-sglang-agentx

Conflicts:
	inferencex-e2e/perf-changelog.yaml (kept main's appended entries and moved
	this PR's entry back to the end)

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

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] The SGLang cookbook update of this PR's AgentX configs (kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg, kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg) will happen in sgl-project/sglang#50766, in the Agentic Long-Context Deployment section of the Kimi-K3.1-Pro cookbook page. The configs have been live in that section since sgl-project/sglang#50081; 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 (9574d8f44) 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 (kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-agg, kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg) are now in the Agentic Long-Context Deployment section of the SGLang Kimi-K3.1-Pro cookbook: https://docs.sglang.io/cookbook/autoregressive/Moonshotai/Kimi-K3.1-Pro#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 (9574d8f44) 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

/use 43835221171

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

@nvpohanh staged run 43835221171.

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

…gg recipe [skip-sweep]

AGENTS.md bans comments that cite past results or describe an override's
topology. Remove the measured-gain figure and the DCP8/EP2 header, and keep
the one-line reason on the line it explains. The parsed recipe is unchanged.

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

Copy link
Copy Markdown
Collaborator Author

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

Checklist items
  • 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
  • Verified that new models disable integer all-reduce, with SGLang ROCm explicitly setting ROCM_QUICK_REDUCE_QUANTIZATION=NONE. Existing models are grandfathered per MODELS.md.
  • 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
  • For official InferenceX (non-preview), verified that established models use official upstream engine images built from main or master (or the equivalent default development branch), or meet the community-engine branch exception: the upstream maintainers (Inferact for vLLM, RadixArk for SGLang, and LightSeek for TokenSpeed) approve the branch/image for the submission, the upstream PRs must merge in a timely manner after submission, and the submission must then move to a main-branch image. For this exception, linked the upstream PRs, maintainer approval, and image build/source provenance in the additional detail section. New models using model-enablement branches must transition within a reasonable time after release. See MODELS.md.
  • 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: 5c4277554 (current PR head). The pinned sweep ran on 91fa223c1, which is still in this PR. The only later commit, 5c4277554, edits two comments in agg-variants.yaml to follow the AGENTS.md comment rules. The parsed recipe YAML is identical before and after, and infx.matrix.changed reports the same nine recipe hashes, so the change is non-material. Checklist and verifier rules were fetched from main at 8daf7a255.

  • PR validation (pinned run):

    • Run Sweep 43835221171 (pull_request, head 91fa223c, conclusion success), pinned with /use 43835221171, the only reuse command on this PR.
    • All 9 benchmark jobs passed in attempt 1: the agg c1 multi-node canary / job and 8 multi-node agentic / jobs.
    • All 9 multi-node agentic eval / jobs passed in attempt 2. In attempt 1 the 1P1D c48 eval failed because the host-side srt-slurm orchestrator segfaulted (uv run ... srtctl.cli.do_sweep, exit 139) within a second of the Slurm start, before any server launched. Fail-fast then cancelled the other evals. Only the eval jobs were rerun.
    • check-changelog, collect-results, collect-evals and calc-success-rate passed. The skipped jobs are the single-node, fixed-sequence and video lanes these keys do not generate.
    • Its results_bmk, eval_results_all and 9 bmk_agentic_* artifacts are unexpired until 2027-02-14.
  • Evals: 9 gsm8k evals (n=1319), one per point, all on the PR image digest. em_strict is 0.9780-0.9826, above the default 0.90 in infx/evals/thresholds.yaml (no kimik3.1 override). Every row is within 2σ (σ ≈ 0.004) of its best sibling and of the closest ingested Kimi-K3.1-Pro Dynamo+SGLang cohorts: GB200 run 43177885534 (0.9788-0.9833) and B200 run 42932130835 (0.9795-0.9818). No B300 Dynamo+SGLang cohort exists yet, because both keys are new.

    Point em_strict
    agg TP8 c1 0.9826
    agg TP8 c4 0.9795
    agg TP8 EP2 DCP8 c32 0.9803
    agg TP8 EP2 DCP8 c40 0.9780
    agg TP8 EP2 DCP8 c48 0.9818
    agg TP8 EP2 DCP8 c56 0.9818
    1P2D c24 0.9803
    1P1D c48 0.9780
    1P2D c56 0.9810
  • Chat template: the AgentX client (aiperf replaying semianalysis_cc_traces_weka_062126) uses the chat endpoint. The agg c1 artifact agentic/conc_1/aiperf_artifacts/profile_export_aiperf.json shows input_config.endpoint.type = chat with streaming. Every benchmark job runs with THINKING_MODE: thinking_on, and the client sends chat_template_kwargs: {"thinking": true}. Requests go through Dynamo's SGLang chat processor (--dyn-chat-processor sglang) with the kimi_k3 reasoning and tool-call parsers.

  • Draft precision (shipped: BF16, effective: BF16):

    • Draft: RadixArk/Kimi-K3.1-Dflash2-Preview (DFlash2DraftModel) at ea257b38a8ee755b65287bb8ccd0938b519ce26b, the snapshot path in the server logs. It was last modified 2026-11-06, before the run. Points verify 8, 6 or 5 tokens.
    • Stored precision: config.json has dtype: bfloat16 and no quantization_config. The repo holds only config.json and model.safetensors, and the safetensors metadata reports 2,784,811,008 parameters, all BF16.
    • Pinned image handling: server logs were checked on the agg c1 worker and on the 1P1D c48 prefill and decode workers. All three show speculative_draft_model_quantization: None, speculative_draft_load_format: None and json_model_override_args: '{}'. Every draft rank logs Load weight end ... type=DFlash2DraftModel with no quant method, while the target logs quant=compressed-tensors. The draft loads as stored.
    • No draft overrides: there is no draft dtype or quantization override, checkpoint substitution, or patch. The FP8 draft KV cache (speculative-draft-kv-cache-dtype: fp8_e4m3) matches the target's kv-cache-dtype: fp8_e4m3.
    • SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE: not set in agg-variants.yaml or disagg-variants.yaml. It also does not appear in any of the 18 benchmark and eval job logs, nor in the inspected server logs and config dumps.
  • Golden AL:

    • Source: injected by the harness from kimi-k3.1-pro__dflash__kimi-k3.1-dflash2-preview__default-block.yaml, thinking_on, with block verification (speculative-use-block-verification on every role).
    • Values: DFLASH verifies the current token plus N-1 drafts, so 8, 6 and 5 verify tokens select 7, 5 and 4 speculative tokens.
      • 3.68: agg c1 and c4.
      • 3.43: agg c32 and c40, and every disaggregated point (1P2D c24 and c56, 1P1D c48) on both the prefill and decode roles.
      • 3.25: agg c48 and c56.
    • Verification: signoff_facts golden-al --verify block returns exactly these values. All 9 benchmark job logs show the matching SGLANG_SIMULATE_ACC_LEN with SGLANG_SIMULATE_ACC_METHOD=match-expected and SGLANG_SIMULATE_ACC_TOKEN_MODE=real-draft-token. The config dumps show 3.68 on the agg c1 worker and 3.43 on both 1P1D c48 workers.
  • MODELS.md: kimik3.1 (added 2026-11-04) is active for agentic coding, and no deprecated model, scenario or combination is submitted. The recipes follow the Kimi K3.1 Pro week-1 precision policy:

    • FP32 KDA state (mamba-ssm-dtype: float32) and FP8 KV on every role.
    • The released checkpoint runs as shipped (compressed-tensors).
    • Server logs on every role show moe_a2a_backend: 'none' (no quantized MoE dispatch or combine), enable_eplb: False and init_expert_location: 'trivial' (no static EPLB). No all-reduce quantization is set.
    • KV offload: HiCache holds 230 GB per rank, 1.84 TB per aggregated or prefill node. That is below the 3 TB HGX B300 per-server limit, and decode workers do not offload.
  • Model architecture: there is no --hf-overrides, no --json-model-override-args (it resolves to {}), and no model-file edit. DCP8 (fi_a2a), EP2, the TRT-LLM DSA backends and the image-shipped SGLANG_ENABLE_NV_MEGA_RUNTIME_K31_GB_OPTIMIZATION runtime path (agg c1) change kernels and parallelism, not model FLOPs. Every layer still runs, and all points pass evals.

  • Integer all-reduce: kimik3.1 is a new, non-grandfathered model. B300 runs the CUDA path, where the ROCm quick-reduce controls cannot be reached. None are set, and the worker environment dumps show no all-reduce quantization variable. SGLANG_CUSTOM_ALL_REDUCE_V2_MAX_SIZE_KB only sets the size threshold of the BF16 custom all-reduce.

  • Dynamo TRT-LLM metrics: N/A. The PR affects only dynamo-sglang configs and has no TRT-LLM worker.

  • Images and ordering:

    • Image: lmsysorg/sglang:dev-kimi-k31-pro@sha256:67fc77d1cbe67de27ca54d874c82757a4844743fea899ea7d0df547e30c2c391, from upstream lmsysorg. It is the same digest as the existing kimik3.1-fp4-b300-sglang-agentic-dflash entry, and Docker Hub's dev-kimi-k31-pro tag still points to it today.
    • Build provenance: the image labels record ai.radixark.source.repo: radixark/sglang-k31, ref day-0-public (afcd7d6b487a), on top of lmsysorg/sglang:nightly-dev-20261028-586355a8. That nightly is sgl-project/sglang main at 586355a8 (build run). The worker config dumps report dynamo_version 1.6.0 (bundled; dynamo.install: false) and SGLANG_BUILD_COMMIT 586355a8.
    • Main-branch policy: this is RadixArk's Kimi K3.1 Pro model-enablement build, the same image every merged K3.1 SGLang and Dynamo+SGLang curve uses, for a model added on 2026-11-04. The sign-off relies on MODELS.md's temporary allowance for new models, not on the community-engine branch exception.
    • Ordering: B300 already has kimik3.1 SGLang (kimik3.1-fp4-b300-sglang-agentic-dflash) and vLLM curves, and this PR adds only dynamo-sglang entries.
  • Upstream recipe:

    • Coverage: the SGLang cookbook Kimi-K3.1-Pro page (Agentic Long-Context Deployment section), sourced from docs/src/snippets/agentx/moonshotai/kimi-k3.1-pro.jsx. sgl-project/sglang#50081 (MERGED 2026-11-12) added it. #50289 (MERGED 2026-11-13) and #50766 (MERGED 2026-11-16) refreshed it from this PR at 9574d8f44 (prov.sha). Both recipe files are byte-identical at 9574d8f44 and 91fa223c1, and parse identically at 5c4277554.
    • Cells: 5 B300 cells cover all 9 points:
      • ...-agg#0: c1 and c4;
      • ...-agg#2: c32 and c40;
      • ...-agg#4: c48 and c56;
      • ...-disagg#0: 1P2D c24 and c56;
      • ...-disagg#1: 1P1D c48.
        Each point is mapped to its recipe override and golden AL.
    • Commands covered: the etcd service and the Dynamo frontend command with its DYN_* environment and, for disaggregation, --router-decode-active-request-weight 1000000. Also the dynamo.sglang aggregated, prefill and decode worker commands with their full serving flags and environment, including:
      • TP8, EP2 and DCP8 with fi_a2a, and the TRT-LLM DSA backends;
      • HiCache 230 with write_back on prefill, and the Mooncake TCP transfer settings;
      • the mamba and ReplaySSM settings and the GB runtime bundle;
      • the per-point running-request, CUDA-graph, draft-token, prefill-decode-interval and memory values.
    • Cross-check: resolving every cell and per-point patch against the recipes gives 0 value mismatches. The cookbook also lists --disaggregation-mode prefill|decode and NCCL_CUMEM_ENABLE=1, which the srt-slurm launcher supplies at runtime (both confirmed in the worker config dumps). It writes the Mooncake bind address as $NODE_IP in place of the launcher's {node} placeholder.
    • Excluded as InferenceX-only: these recipe settings are absent from the cookbook:
      • --enable-metrics and --enable-cache-report (observability and usage reporting, no serving effect);
      • --weight-loader-drop-cache-after-load: false (it only keeps the checkpoint in the node page cache between benchmark jobs);
      • PYTHONUNBUFFERED and PYTHONNOUSERSITE.
        The same goes for Slurm sbatch/srun options, health checks, the aiperf client environment (AIPERF_*, AGENTIC_WARMUP_GRACE_PERIOD), the disabled OTEL collector and tachometer, and the harness-injected SGLANG_SIMULATE_ACC_*, which the cookbook discloses as synthetic acceptance.
  • No engine patches: the recipes have no setup script, patch, or pip install.

    • The runner applies only the existing srt-slurm orchestrator patches (runners/srt-slurm/patches/573-participating-gpus.patch and 900-pool-expected-devices.patch) to the srt-slurm checkout.
    • The only pip install steps build the host-side orchestrator venv.
    • No waiver is needed.
  • append-only: N/A. The changelog entry does not use append-only: true; it is a regular entry for two new config keys.

  • AgentX stream interval: no recipe sets stream-interval, so the pinned engine default of 1 applies. Server logs show 'stream_interval': 1 on the agg, prefill and decode workers.

  • Pareto coverage: one affected curve: Kimi-K3.1-Pro / AgentX / B300 dynamo-sglang / FP4 / run 43835221171 (attempt 1, results_bmk, image digest 67fc77d1…). Both config keys map to this one app series. It has 9 measured points, with total throughput per GPU against E2EL.

    • P90: pareto_coverage reports 7 frontier points: 1P2D c24, 1P2D c56, 1P1D c48, and agg EP2 DCP8 c32, c40, c48 and c56.
    • P75: also 7.
    • Agg c1 and c4 are latency points that this view dominates.
  • Code quality: a config and recipe change only.

    • Files: two new recipe bundles (agg-variants.yaml, disagg-variants.yaml) whose overrides share one base each, two new nvidia-master.yaml entries, and one perf-changelog.yaml entry appended at the end. 5c4277554 removed the two comments that broke the AGENTS.md comment rules.
    • Consistency: the master config and the recipes agree on workers, TP/EP/DCP and node math for all 9 points, and check-changelog passed.
    • Merge state: against current main, git merge-tree reports a conflict only in perf-changelog.yaml, caused by other appends.

Signed: nvpohanh

@github-actions

Copy link
Copy Markdown
Contributor

✅✅✅ Verdict: PASS ✅✅✅

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — @nvpohanh is listed on inferencex-e2e/configs/nvidia-master.yaml and the **/b300-*/ srt-slurm recipe pattern, which cover both new recipe files; perf-changelog.yaml falls under the catch-all.

✅ Check 1 (Sweep on in-PR commit): PASS — In-PR commit 91fa223c1 has all 9 multi-node agentic / and multi-node canary / jobs and all 9 multi-node agentic eval / jobs at success in run 43835221171 (head 91fa223c1; evals passed on attempt 2). The only later commit, 5c4277554, deletes or moves YAML comments in agg-variants.yaml. That change is non-material.

✅ Check 2 (Evals): PASS — There are 9 gsm8k rows (n=1319), all on image digest 67fc77d1…, with em_strict between 0.9780 and 0.9826. The largest gap to the best sibling or the closest cohort is 0.0045, against a 2σ threshold of about 0.0103 to 0.0111 (GB300 Dynamo+SGLang run 42376772667). No row is materially weaker. Every point has its own eval.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#50081, #50289 and #50766 are all MERGED. The kimi-k3.1-pro.jsx cookbook has B300 dynamo-sglang agg#0/#2/#4 and disagg#0/#1 cells with etcd, frontend (including --router-decode-active-request-weight), agg, prefill and decode commands. In the spot-checked cells (agg c1/c4, agg c48/c56, disagg 1P2D), the flags, environment and per-point overrides match the recipes. Exclusions are justified as InferenceX-only.

✅ Check 4 (Reuse command): PASS — /use 43835221171 was posted on its own line by nvpohanh (permission write, role_name write) and names the Check 1 run.

✅ Check 5 (Latest checklist): PASS — All 20 items in the current PR_REVIEW_CHECKLIST.md template are present and checked.

✅ Check 6 (Upstream images): PASS — Both entries use the upstream lmsysorg/sglang:dev-kimi-k31-pro@sha256:67fc77d1…, the same digest as the merged kimik3.1-fp4-b300-sglang-agentic-dflash. The entries are dynamo-sglang, so the engine-first ordering rule does not apply. The image is a RadixArk Kimi K3.1 model-enablement build for kimik3.1 (added 2026-11-04), which MODELS.md's new-model allowance covers.

✅ Check 7 (Deprecated models): PASS — kimik3.1 is active for agentic coding in MODELS.md. No deprecated scenario is submitted.

✅ Check 8 (No arch hacks): PASS — There is no --hf-overrides, --json-model-override-args or model-file edit. DCP8, EP2 and the TRT-LLM DSA backends change kernels and parallelism, not FLOPs. kimik3.1 is not grandfathered: the B300 path is CUDA, no quick-reduce or all-reduce quantization control is set in the recipes, harness or job logs, and SGLANG_CUSTOM_ALL_REDUCE_V2_MAX_SIZE_KB is only a size threshold.

✅ Check 9 (Chat template): PASS — The AgentX trace-replay client sends chat_template_kwargs: {"thinking": true} through AIPERF_EXTRA_INPUTS to the Dynamo frontend with --dyn-chat-processor sglang. This is the same chat-based harness the merged K3.1 AgentX entries use.

✅ Check 10 (No engine patches): PASS — The recipes have no setup script, patch, pip install or source edit. The srt-slurm orchestrator patches already on main touch only the host orchestrator, not the serving stack.

✅ Check 11 (Golden AL): PASS — The job logs show SGLANG_SIMULATE_ACC_LEN of 3.68 (agg c1), 3.25 (agg c56) and 3.43 (1P1D c48 on both roles, 1P2D c24), each with match-expected and real-draft-token. These equal signoff_facts golden-al --verify block for kimi-k3.1-pro__dflash__kimi-k3.1-dflash2-preview__default-block.yaml at 7, 5 and 4 speculative tokens, which correspond to 8, 6 and 5 DFLASH verify tokens.

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

✅ Check 13 (Draft precision): PASS — The draft is RadixArk/Kimi-K3.1-Dflash2-Preview@ea257b38. Its config.json sets dtype: bfloat16 and has no quantization_config. The recipes have no draft quantization or dtype override and no checkpoint substitution, and the FP8 draft KV cache matches the target's FP8 KV. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE appears in neither the recipes, the harness nor the job logs.

✅ Check 14 (Pareto coverage): PASS — There is one curve: Kimi-K3.1-Pro / agentic-coding / B300 dynamo-sglang / FP4 / run 43835221171 attempt 1 / P90. Its 9 measured points give 7 frontier points on throughput per GPU versus E2EL: 1P2D c24 and c56, 1P1D c48, and agg c32, c40, c48 and c56.

✅ Check 15 (PR description): PASS — The title, body and changelog claims about topology, concurrency, verify widths, golden AL, image and validation run all match the recipes at 5c4277554 and run 43835221171.

✅ Check 16 (NVIDIA overview): PASS — Kimi-K3.1-Pro is listed with SGLang in both the Framework Recipes and Dynamo Disaggregated Recipes tables of the NVIDIA overview.

➖ Check 17 (Dynamo metrics): N/A — Only dynamo-sglang is affected and there is no Dynamo TRT-LLM worker, so the TRT-LLM metric-publication controls do not apply.

✅ Check 18 (Recipe consistency): PASS — Both config keys generate without errors. The master worker counts, TP/EP/DCP and node math match the recipe roles (agg 1 node; 1P1D; 1P2D with decode nodes and workers set to 2). The only image is already on main and docker manifest inspect resolves its digest. No points are removed or re-tuned, and there are no regressions. No role sets a stream interval, so SGLang's default of 1 applies (60 or less).

Assessed commit: 5c427755472be164da9ccd3abf50fc16f37ff749.

@Oseltamivir
Oseltamivir merged commit 404c7e1 into main Nov 17, 2026
29 checks passed
@Oseltamivir
Oseltamivir deleted the nvpohanh/kimik31-b300-dynamo-sglang-agentx branch November 17, 2026 09:01
@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 9 0 9 0 0
eval 9 9 0 0 0
trace 9 0 0 0 0
power 14 0 0 0 0

benchmarkFiles 10, rawBenchmarkRows 18, coveredByPerJobFiles 9, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 11871, gpuMetricSamplesNew 646760, powerPublicationPoints 9, 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-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants