Repository navigation
[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
Conversation
…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>
|
Thanks for the contribution!
中文感谢你的贡献!
|
| 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. |
There was a problem hiding this comment.
🟡 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 |
There was a problem hiding this comment.
does thsi work with EFA? @nvpohanh dont u need to add libfarbic and efa flags too
There was a problem hiding this comment.
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.
|
[by Claude Code] I've started babysitting the pipeline of this PR. I'll keep monitoring it until it passes. If a job fails, I may rerun it when the cause is infrastructure, or push a fix or a merge of the latest |
|
[by Claude Code] The SGLang cookbook integration of this PR's AgentX configs ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#50081 has been merged. This PR's AgentX configs ( This PR has no authorized |
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=43835221171 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=43835221171 |
|
[by Claude Code] The SGLang cookbook update of this PR's AgentX configs ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#50289 has been merged. This PR's AgentX configs ( This PR has no authorized |
…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>
|
[by Claude Code] The SGLang cookbook update of this PR's AgentX configs ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#50766 has been merged. This PR's AgentX configs ( This PR has no authorized |
|
/use 43835221171 |
|
@nvpohanh staged run 43835221171. This run remains available across future |
…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>
|
As a PR reviewer and CODEOWNER, I have reviewed this and have: Checklist items
Additional detail section:
Signed: |
✅✅✅ Verdict: PASS ✅✅✅Passed and not applicable checks✅ Check 0 (CODEOWNER): PASS — ✅ Check 1 (Sweep on in-PR commit): PASS — In-PR commit ✅ Check 2 (Evals): PASS — There are 9 gsm8k rows (n=1319), all on image digest ✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#50081, #50289 and #50766 are all MERGED. The ✅ Check 4 (Reuse command): PASS — ✅ Check 5 (Latest checklist): PASS — All 20 items in the current ✅ Check 6 (Upstream images): PASS — Both entries use the upstream ✅ Check 7 (Deprecated models): PASS — ✅ Check 8 (No arch hacks): PASS — There is no ✅ Check 9 (Chat template): PASS — The AgentX trace-replay client sends ✅ Check 10 (No engine patches): PASS — The recipes have no setup script, patch, ✅ Check 11 (Golden AL): PASS — The job logs show ➖ Check 12 (Append-only): N/A — The new changelog entry does not set ✅ Check 13 (Draft precision): PASS — The draft is ✅ 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 ✅ 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 ✅ 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 Assessed commit: |
|
Ingest report — ✅ Results ingested into the Ingest workflow · Merge Ingest run · Benchmark source run
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 报告 — ✅ 结果已写入 上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。 |
Summary
Adds two Kimi-K3.1-Pro B300 Dynamo+SGLang AgentX config keys on the existing
lmsysorg/sglang:dev-kimi-k31-proimage (same digest askimik3.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 (newagg-variants.yaml).kimik3.1-fp4-b300-dynamo-sglang-agentic-dflash-disagg: three disaggregated points at concurrency 24, 48 and 56 (newdisagg-variants.yaml).Both keys are new, so the changelog entry is a regular append and a sweep runs every point.
agg-variants.yaml:override_tp8_c1agg-variants.yaml:override_tp8_c4agg-variants.yaml:override_tp8_ep2_dcp8_c32agg-variants.yaml:override_tp8_ep2_dcp8_c40agg-variants.yaml:override_tp8_ep2_dcp8_c48agg-variants.yaml:override_tp8_ep2_dcp8_c56disagg-variants.yaml:override_1p2d_tp8_c24disagg-variants.yaml:override_1p1d_tp8_c48disagg-variants.yaml:override_1p2d_tp8_c56RadixArk/Kimi-K3.1-Dflash2-Preview, block verification,cutedsl_mladraft attention and an FP8 draft KV cache on every role. Prefill and decode use the same verify width. Acceptance comes from the committed golden curvekimi-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 setsSGLANG_SIMULATE_ACC_*orSGLANG_NVFP4_CKPT_FP8_NEXTN_MOE.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.fi_a2acombine) 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 setsmem-fraction-static0.89,max-mamba-cache-size240 andmamba-full-memory-ratio0.66.router-decode-active-request-weightsends each turn to the least-loaded decode worker.MC_FORCE_TCP=1), in 4 MiB slices with deep per-peer queues.dram-utilization0.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:
AI model disclosure
claude-opus-5-5), via Claude Code.infx.matrix.changed) and the perf-changelog validation.PR checklist and change type
Type of Change
Checklist
python -m infx.matrix.changed --base origin/mainlists affected config keys, I have appended one new entry covering them to the physical end ofinferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entriesinferencex-e2e/perf-changelog.yamlentry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs):full-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied./use <run_id>(or the legacy/reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.中文
本 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-PreviewDFLASH,启用 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。SGLANG_ENABLE_NV_MEGA_RUNTIME_K31_GB_OPTIMIZATION=1,并使用非 expandable segments,避免 KV pool 被缩小)。两者都将第 2 代 GC 阈值提高到 100,000。fi_a2acombine),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-static0.89、max-mamba-cache-size240 和mamba-full-memory-ratio0.66。router-decode-active-request-weight将每一轮请求发往负载最低的 decode worker。MC_FORCE_TCP=1),以 4 MiB 分片传输,每个对端的队列很深。dram-utilization为 0.75,与现有 B300 SGLang 条目一致。checkpoint 多线程加载并预取。AgentX 客户端开启 thinking,temperature 1,top-p 0.95,并携带 Dynamo session ID。注意事项:
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