← Back to Pull requests

Add B300 Dynamo+SGLang AgentX configs for DeepSeek V4 with aggregate DEP8 c384 / 添加含聚合式 DEP8 c384 的 DeepSeek V4 B300 Dynamo+SGLang AgentX 配置 #3631

Closed
unknown closed this pull request without merging on Oct 12, 2026 05:04 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 08:21 UTC
Author

[by Claude Code]

Adds DeepSeek-V4-Pro-0813 FP4 B300 Dynamo+SGLang AgentX recipes. This PR replaces #3190. It carries the same recipes, rebased on current main, with these changes: a one-node aggregate DEP8 c384 point replaces the 2P1D DEP8 c480 point, two points (agg TP4 c8 and disagg 1P2D DEP8 c64) fill the interactivity gap between TP4 c4 and 1P1D c64, and no recipe enables the W4A4 MXFP4 Mega-MoE path.

  • Aggregate: TP8 c1, TP4 c4, TP4 c8 with HiCache (new), and DEP8 c384 (new).

  • Disaggregated with Mooncake KV transfer: 1P1D DEP8 c64/c240 and 1P2D DEP8 c64 (new).

  • enable-w4a4-mxfp4-megamoe is removed from every recipe. Mega-MoE (moe-a2a-backend: megamoe) uses its default FP8xFP4 kernels.

  • Installs only the public mooncake-transfer-engine-efa-cuda13==0.3.13.post1 wheel during disaggregated container setup, as SGLang's AWS EFA documentation prescribes; no SGLang source patch is applied. The waiver is at inferencex-e2e/docs/waiver/3631.md.

  • Relies on the DSXE-managed fabric injection without explicit /opt/amazon/efa or /opt/amazon/ofi-nccl mounts.

  • Uses the current Python launcher and cluster registry, including persistent AgentX and Hugging Face caches.

  • Serves Dynamo+SGLang DeepSeek-V4-Pro-0813 weights on b300-dsxe from the node-local NVMe copy (DeepSeek-V4-Pro-0813@scratch, as for vLLM).

  • Prefill and decode keep the same DSpark K=6 method.
  • Aggregate DEP8 c384

    Ported from the single-node SGLang DEP8 c384 point (dsv4-fp4-b300-sglang-agentic-hicache-mtp, benchmarks/single_node/srt-slurm-recipes/dsv4/sglang/b300-fp4-mtp/agentic.yaml, override_dep8_c384):

  • Engine settings kept: DP8 attention + EP8 Mega-MoE, FP4 indexer, DP LM head, local control broadcast, prefill delayer with prefill-decode-interval: 20, stream-interval: 20, chunked-prefill-size: 65536 with SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK=8320, max-running-requests: 768 (96 per DP rank, twice concurrency), mem-fraction-static: 0.88, swa-full-tokens-ratio: 0.075, HiCache ratio 3 (write_back, direct, page_first_direct), DSpark K=6.

  • Updated to this PR's conventions: lmsysorg/sglang:nightly-dev-20260916-c9a8fba9, tp-size/dp-size/ep-size, attention-backend: dsv4 (compressed is a deprecated alias in this image), and no SGLANG_ENABLE_UNIFIED_RADIX_TREE (deprecated; the unified radix tree is now the default). Thinking is enabled through SGLANG_DEFAULT_THINKING and SGLANG_DSV4_REASONING_EFFORT, as in the other recipes.

  • Decode graph limit: cuda-graph-max-bs-decode: 96, the per-rank request cap (768 / 8). The single-node recipe used 544, but SGLang clamps captured decode batches to the per-rank request pool, so 544 never captured more than this.

  • Routing: the Dynamo KV router replaces the SGLang router's DP-aware consistent hashing. Sessions stay sticky through X-Dynamo-Session-ID, and each DP rank publishes KV events (kv-events-config), so the router sees per-rank prefixes. One frontend; etcd and NATS run on the worker node. The frontend sets DYN_TCP_REQUEST_TIMEOUT: "60", as the disaggregated recipes do, so the c384 warmup burst does not exceed Dynamo's 5 s request-plane ack timeout.

  • Dropped: settings that only apply to SGLang's own HTTP server and have no effect behind the Dynamo frontend: tokenizer-worker-num, tool-call and reasoning parsers, chat template, skip-server-warmup, SGLANG_TIMEOUT_KEEP_ALIVE.

  • dram-utilization: 0.80 matches the disaggregated config.
  • Gap-filling points: agg TP4 c8 and disagg 1P2D DEP8 c64

    Two points fill the interactivity gap between agg TP4 c4 (~244 tok/s/user) and 1P1D DEP8 c64 (~128 tok/s/user):

  • Agg TP4 c8: the TP4 c4 recipe with max-running-requests: 16 and cuda-graph-max-bs-decode: 16. TP4 c4 already fills about 60% of the GPU KV pool, so this point adds a HiCache DRAM tier with the same settings as the B200 TP8 AgentX recipe on this image (hicache-ratio: 2.75, write_through, direct, page_first_direct).

  • Disagg 1P2D DEP8 c64: the 1P1D c64 recipe with a second decode worker (3 nodes), which halves each decode rank's load.
  • Local validation

  • YAML parse and shell syntax.

  • Exact-key matrix generation for both config keys: seven points (aggregate TP8 c1, TP4 c4, TP4 c8 and DEP8 c384 on one node; disaggregated 1P1D c64/c240 on two nodes and 1P2D c64 on three nodes).

  • validate_perf_changelog against main; the changelog change is append-only.

  • srt-slurm v2.39.1 validate_config_file and srtctl migrate (already current) for all seven recipes.

  • Focused tests: infx/tests/launch, infx/tests/clusters, infx/tests/matrix, infx/tests/srt_slurm, and the changelog workflow tests (769 passed); Ruff on models.py.

  • SGLang flag and environment-variable names checked against the image's SGLang revision (c9a8fba9).
  • AI model disclosure

  • Claude Opus 5.5 (claude-opus-5-5, via Claude Code): rebased the #3190 commits onto current main, replaced the 2P1D point with the aggregate DEP8 c384 recipe, removed the W4A4 MXFP4 Mega-MoE flag, ran the validation, and prepared this PR.

  • Commits carried over from #3190: GPT-5 (Codex, including one delegated agent) prepared the original submission and Mooncake configuration; GPT-6 (Codex) diagnosed and prepared earlier runtime repairs; Claude Opus 5.5 prepared the DeepGEMM fast-warmup and node-local checkpoint fixes.
  • <details><summary>中文</summary>

    新增 DeepSeek-V4-Pro-0813 FP4 B300 Dynamo+SGLang AgentX 配方。本 PR 取代 #3190:包含相同的配方并 rebase 到最新 main,另有以下改动:以单节点聚合式 DEP8 c384 测试点取代 2P1D DEP8 c480 测试点;新增聚合式 TP4 c8 与分离式 1P2D DEP8 c64 两个测试点,填补 TP4 c4 与 1P1D c64 之间的交互性空档;所有配方均不启用 W4A4 MXFP4 Mega-MoE 路径。

  • 聚合式:TP8 c1、TP4 c4,以及新增的带 HiCache 的 TP4 c8 和 DEP8 c384。

  • 使用 Mooncake KV 传输的分离式:1P1D DEP8 c64/c240,以及新增的 1P2D DEP8 c64。

  • 所有配方移除 enable-w4a4-mxfp4-megamoe,Mega-MoE(moe-a2a-backend: megamoe)使用默认的 FP8xFP4 kernel。

  • 分离式容器初始化时按照 SGLang 的 AWS EFA 文档,仅安装公开的 mooncake-transfer-engine-efa-cuda13==0.3.13.post1 wheel,不修改 SGLang 源码。豁免文件位于 inferencex-e2e/docs/waiver/3631.md。

  • 依赖 DSXE 管理的网络栈注入,不显式挂载 /opt/amazon/efa 或 /opt/amazon/ofi-nccl。

  • 使用当前 Python 启动器和集群注册表,并保留持久化 AgentX 与 Hugging Face 缓存。

  • b300-dsxe 上 Dynamo+SGLang 的 DeepSeek-V4-Pro-0813 权重从节点本地 NVMe 副本(DeepSeek-V4-Pro-0813@scratch,与 vLLM 相同)加载。

  • Prefill 与 decode 保持使用相同的 DSpark K=6 方法。
  • 聚合式 DEP8 c384

    移植自单节点 SGLang DEP8 c384 测试点(dsv4-fp4-b300-sglang-agentic-hicache-mtp,benchmarks/single_node/srt-slurm-recipes/dsv4/sglang/b300-fp4-mtp/agentic.yaml,override_dep8_c384):

  • 保留的引擎设置: DP8 注意力 + EP8 Mega-MoE、FP4 indexer、DP LM head、local control broadcast、prefill-decode-interval: 20 的 prefill delayer、stream-interval: 20、chunked-prefill-size: 65536 配合 SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK=8320、max-running-requests: 768(每个 DP rank 96,为并发数两倍)、mem-fraction-static: 0.88、swa-full-tokens-ratio: 0.075、HiCache 比例 3(write_back、direct、page_first_direct)、DSpark K=6。

  • 按本 PR 的约定更新: 使用 lmsysorg/sglang:nightly-dev-20260916-c9a8fba9、tp-size/dp-size/ep-size、attention-backend: dsv4(该镜像中 compressed 为已弃用别名),并且不再设置 SGLANG_ENABLE_UNIFIED_RADIX_TREE(已弃用,unified radix tree 现为默认)。与其他配方一样,通过 SGLANG_DEFAULT_THINKING 和 SGLANG_DSV4_REASONING_EFFORT 启用思考模式。

  • Decode CUDA graph 上限: cuda-graph-max-bs-decode: 96,即每个 rank 的请求上限(768 / 8)。单节点配方使用 544,但 SGLang 会把捕获的 decode batch 限制在每个 rank 的请求池以内,因此 544 实际上从未捕获超过该值。

  • 路由: 以 Dynamo KV 路由器取代 SGLang 路由器的 DP 感知一致性哈希。会话通过 X-Dynamo-Session-ID 保持亲和,各 DP rank 发布 KV 事件(kv-events-config),使路由器能看到每个 rank 的前缀。使用单个前端,etcd 与 NATS 运行在 worker 节点上。前端与分离式配方一样设置 DYN_TCP_REQUEST_TIMEOUT: "60",避免 c384 预热突发请求超过 Dynamo 请求平面默认 5 秒的确认超时。

  • 移除: 仅适用于 SGLang 自身 HTTP 服务端、在 Dynamo 前端之后不起作用的设置:tokenizer-worker-num、工具调用与推理解析器、聊天模板、skip-server-warmup、SGLANG_TIMEOUT_KEEP_ALIVE。

  • dram-utilization: 0.80 与分离式配置一致。
  • 补充测试点:聚合式 TP4 c8 与分离式 1P2D DEP8 c64

    以下两个测试点填补聚合式 TP4 c4(约 244 tok/s/user)与 1P1D DEP8 c64(约 128 tok/s/user)之间的交互性空档:

  • 聚合式 TP4 c8:基于 TP4 c4 配方,max-running-requests: 16、cuda-graph-max-bs-decode: 16。由于 TP4 c4 已占用约 60% 的 GPU KV 池,本测试点增加 HiCache DRAM 层,设置与该镜像上的 B200 TP8 AgentX 配方相同(hicache-ratio: 2.75、write_through、direct、page_first_direct)。

  • 分离式 1P2D DEP8 c64:即 1P1D c64 配方增加第二个 decode worker(共 3 个节点),使每个 decode rank 的负载减半。
  • 本地验证

  • YAML 解析与 Shell 语法检查。

  • 两个配置键的精确配置键矩阵生成:共七个测试点(单节点聚合式 TP8 c1、TP4 c4、TP4 c8 与 DEP8 c384;双节点分离式 1P1D c64/c240;三节点分离式 1P2D c64)。

  • 针对 main 运行 validate_perf_changelog;changelog 改动仅为追加。

  • 对全部七个配方运行 srt-slurm v2.39.1 的 validate_config_file 与 srtctl migrate(已是最新 schema)。

  • 专项测试:infx/tests/launch、infx/tests/clusters、infx/tests/matrix、infx/tests/srt_slurm 及 changelog 工作流测试(769 项通过);对 models.py 运行 Ruff。

  • 已对照镜像的 SGLang 版本(c9a8fba9)核对 SGLang 参数与环境变量名称。
  • AI 模型披露

  • Claude Opus 5.5(claude-opus-5-5,通过 Claude Code):将 #3190 的提交 rebase 到最新 main,以聚合式 DEP8 c384 配方取代 2P1D 测试点,移除 W4A4 MXFP4 Mega-MoE 参数,完成验证并准备本 PR。

  • 沿用自 #3190 的提交:GPT-5(Codex,包括一个委派代理)准备了最初提交与 Mooncake 配置;GPT-6(Codex)诊断并准备了前序运行时修复;Claude Opus 5.5 准备了 DeepGEMM 快速预热与节点本地权重路径修复。
  • </details>

    🤖 Generated with Claude Code

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: Ankur-singh Review duration: 15642m
    All Vouch review confidence checks passed
    Residual risk 0.32 = Change Risk (0.80) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.80 · 650 lines diff across 8 files
    0.80
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.080
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #3631"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 80.2% (HIGH) · Higher = larger blast radius
    80.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 31.7% · Safe to merge
    31.7%