Skip to content

Add Kimi-K3 B300 AgentX on the DSXE EFA cluster / 在 DSXE EFA 集群上新增 Kimi-K3 B300 AgentX - #4681

Closed
mispa-ms wants to merge 5 commits into
mainfrom
mispa/kimi-k3-b300-efa-agentx
Closed

mispa-ms wants to merge 5 commits into
mainfrom
mispa/kimi-k3-b300-efa-agentx

Conversation

@mispa-ms

@mispa-ms mispa-ms commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds Kimi-K3 FP4 AgentX on B300 (DSXE, EFA), porting the DCP8 points of #4516 to 8-GPU B300 nodes with the same
image (vllm/vllm-openai:nightly-e4a5b5537344b103ed10de7764378ef09604ef3d), Dynamo and router.

Config key Points
kimik3-fp4-b300-dynamo-vllm-agentic-dspark-mooncake-dcp8-disagg 1P3D specdecode c16, 1P2D specdecode c24/c32, 1P2D cap128 c48/c64, 2P3D cap128 c240, 3P4D cap128 c240
kimik3-fp4-b300-dynamo-vllm-agentic-dspark-mooncake-dcp8-agg TP8/DCP8 c1 on one node, DSpark depth 7 (GB300: TP16/DCP16 on four nodes, DSpark depth 5)
  • Not run: the 3P1D DEP16 c336 point of Refresh Kimi-K3 GB300 AgentX points on the latest vLLM nightly / 基于最新 vLLM nightly 更新 Kimi-K3 GB300 AgentX 点位 #4516. Its DEP16 decode is one 16-GPU engine across four GB300 nodes over
    multi-node NVLink; on B300 it would span two 8-GPU nodes with no NVLink between them.
  • Eager prefill: as in Add Kimi K3 B300 EFA AgentX sweep / 新增 Kimi K3 B300 EFA AgentX 扫描 #4304, the disaggregated prefill workers run in eager mode (no torch.compile or CUDA
    graphs), and the disaggregated decode workers keep vLLM's default CUDA graphs. The aggregated worker uses
    cudagraph_mode: FULL_DECODE_ONLY in place of the FULL_AND_PIECEWISE of Refresh Kimi-K3 GB300 AgentX points on the latest vLLM nightly / 基于最新 vLLM nightly 更新 Kimi-K3 GB300 AgentX 点位 #4516.
  • EFA setup (waiver): the pinned image has no EFA transport, so for the disaggregated points
    kimik3-b300-efa-upstream-setup.sh installs it at container start, with no source patches or builds: EFA installer
    1.51.0 as vLLM docker/Dockerfile.efa installs it, the released NIXL 1.5.2 wheel, and the Mooncake 0.3.14rc3 wheel
    from its v0.3.14-pre-3 pre-release (default Mooncake wheels include the EFA transport) until 0.3.14 is on PyPI.
    The launcher's version binder now passes the master config's Mooncake version to this script, which checks it
    against the version it installs. The aggregated point runs the pinned image as shipped.
    See docs/waiver/4681.md.
  • Main recipe differences from GB300 (disaggregated workers): NIXL over LIBFABRIC, Mooncake over EFA with a
    190 GiB store per rank, and no CUDA VMM allocator (enable-cumem-allocator unset, NCCL_CUMEM_ENABLE=0). Both B300
    keys turn srtctl Tachometer off and collect no power.
  • Runner: the b300-dsxe cluster mounts the Hugging Face cache for the setup's download cache and excludes seven
    nodes (reasons in runners.yaml).
  • Upstream recipe: the published vLLM Kimi-K3 recipe does not yet cover these B300 points: disaggregated serving
    over EFA (NIXL LIBFABRIC, Mooncake protocol: efa, eager prefill) and the aggregated TP8/DCP8 point
    (FULL_DECODE_ONLY, DSpark depth 7, latency_specialized decode backend). A vLLM recipe PR covering both is needed
    before this PR merges.
  • Risk: decode workers still use host-launched CUDA graphs. In our runs on this cluster, a decode engine
    occasionally stopped mid-run at high concurrency, which fails that point; such a point would be rerun.

Validation: all eight points completed on this cluster before this PR. The seven disaggregated points ran in one
sweep with an earlier revision of the setup script (NIXL built from its release/1.5.2 source; the v1.5.2 release adds
only wheel-build changes); the 3P4D point passed on a rerun (an earlier attempt hit a decode stall). 1P2D c64 then ran
twice more, with Mooncake built from v0.3.14-pre and with the 0.3.14rc3 wheel: 14,858.5 and 14,750.1 tok/s/GPU at
the same p90 interactivity (82.9). The script as committed here installs only runtime apt packages in place of the
earlier build tools and ran on its own on a cluster node. The aggregated point ran without a setup script, as committed
here.

AI model disclosure
  • Model/version: Claude Opus 5.5 (claude-opus-5-5) in Claude Code, including the review subagents it ran (same
    model).
  • Role: ported the B300 configs and setup script from our validation runs, switched NIXL and Mooncake to released and pre-release wheels,
    registered the setup script with the version binder, and drafted the changelog entry, waiver and this
    description; subagents reviewed the diff and text before submission. The author reviewed the changes and runs the
    sweep.
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, an authorized maintainer (OWNER/MEMBER/COLLABORATOR) 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.
  • The setup installs EFA transport components before serving; covered by the waiver linked above
中文

在 B300(DSXE,EFA)上新增 Kimi-K3 FP4 AgentX:把 #4516 的 DCP8 配置移植到 8 卡 B300 节点,使用相同的镜像、Dynamo 和路由。

  • 分离式(...-dcp8-disagg):1P3D 投机解码 c16、1P2D 投机解码 c24/c32、1P2D cap128 c48/c64、2P3D cap128 c240、3P4D cap128 c240。
  • 聚合式(...-dcp8-agg):单节点 TP8/DCP8 c1,DSpark 深度 7(GB300 为四节点 TP16/DCP16,DSpark 深度 5)。
  • 不运行 Refresh Kimi-K3 GB300 AgentX points on the latest vLLM nightly / 基于最新 vLLM nightly 更新 Kimi-K3 GB300 AgentX 点位 #4516 的 3P1D DEP16 c336:其 DEP16 解码是跨四个 GB300 节点、经多节点 NVLink 连接的 16 卡引擎;在 B300 上需要跨两个 8 卡节点,而节点之间没有 NVLink。
  • 与 Add Kimi K3 B300 EFA AgentX sweep / 新增 Kimi K3 B300 EFA AgentX 扫描 #4304 相同,分离式预填充以 eager 模式运行(不使用 torch.compile 和 CUDA graph),分离式解码保留 vLLM 默认 CUDA graph;聚合式使用 FULL_DECODE_ONLY,替代 Refresh Kimi-K3 GB300 AgentX points on the latest vLLM nightly / 基于最新 vLLM nightly 更新 Kimi-K3 GB300 AgentX 点位 #4516 的 FULL_AND_PIECEWISE。
  • 镜像不含 EFA 传输,分离式配置由 kimik3-b300-efa-upstream-setup.sh 在容器启动时安装(无源码补丁,也不做构建):EFA 安装器 1.51.0(安装方式与 vLLM docker/Dockerfile.efa 相同)、NIXL 1.5.2 正式 wheel,以及在 0.3.14 发布到 PyPI 之前使用的 Mooncake v0.3.14-pre-3 预发布版 0.3.14rc3 wheel(Mooncake 默认 wheel 已包含 EFA 传输)。启动器的版本绑定把主配置中的 Mooncake 版本传给该脚本,脚本会与安装的版本核对。聚合式直接使用固定镜像,不做任何安装。豁免说明见 docs/waiver/4681.md。
  • 与 GB300 的主要配方差异(分离式):NIXL 使用 LIBFABRIC,Mooncake 经 EFA 传输、每个 rank 190 GiB 存储,不使用 CUDA VMM 分配器(未设置 enable-cumem-allocator,NCCL_CUMEM_ENABLE=0)。两个 B300 配置均关闭 srtctl Tachometer,且不采集功耗。
  • b300-dsxe 运行器挂载 Hugging Face 缓存作为下载缓存,并排除七个节点(原因见 runners.yaml)。
  • 上游配方:已发布的 vLLM Kimi-K3 配方尚未覆盖这些 B300 点:经 EFA 的分离式推理(NIXL LIBFABRIC、Mooncake protocol: efa、eager 预填充)以及聚合式 TP8/DCP8 点(FULL_DECODE_ONLY、DSpark 深度 7、latency_specialized 解码后端)。本 PR 合并前需要覆盖两者的 vLLM 配方 PR。
  • 风险:解码仍使用主机启动的 CUDA graph;在我们于该集群上的运行中,高并发时解码引擎偶尔会中途停止,导致该点失败,需要重跑。
  • 验证:本 PR 之前,全部八个点已在该集群上完成。七个分离式点在一次扫描中使用较早版本的安装脚本完成(NIXL 由 release/1.5.2 源码构建;v1.5.2 正式版仅增加 wheel 构建改动),其中 3P4D 点重跑通过(较早的一次尝试遇到解码停顿)。随后 1P2D c64 又运行两次,分别使用从 v0.3.14-pre 源码构建的 Mooncake 和 0.3.14rc3 wheel:14,858.5 与 14,750.1 tok/s/GPU,p90 交互性相同(82.9)。本 PR 提交的脚本只安装运行时 apt 软件包,不再安装构建工具,并已在集群节点上单独运行通过。聚合式点按本 PR 不使用安装脚本运行。
  • AI 模型:Claude Opus 5.5(claude-opus-5-5,Claude Code,含其使用同一模型的审查子代理),负责移植配置、将 NIXL 与 Mooncake 切换为正式版与预发布版 wheel、把安装脚本注册到版本绑定,并起草变更记录、豁免说明和本描述;子代理在提交前审查了改动和文字。作者审阅改动并运行扫描。

🤖 Generated with Claude Code

@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@mispa-ms mispa-ms added the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Oct 30, 2026
@@ -0,0 +1,224 @@
#!/usr/bin/env bash

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.

whats the reaosn for this script? can u get it working in upstream out of the box?

plz coordinate with @erezzarum from AWS side if u run into any issues on upstream

vllm-project/vllm#64028
vllm-project/vllm#64579

@functionstackx functionstackx removed the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@mispa-ms
mispa-ms force-pushed the mispa/kimi-k3-b300-efa-agentx branch from 06af9c1 to 0eafaff Compare October 30, 2026 23:17
mispa-ms and others added 4 commits October 30, 2026 22:39
Port the GB300 #4516 DCP8 points to 8-GPU B300 nodes over EFA: 1P3D and
1P2D specdecode, 1P2D cap128 c48/c64, 2P3D and 3P4D cap128 c240, and the
aggregated c1 point as TP8/DCP8 on one node. The disaggregated prefill
runs in eager mode, as in #4304; the aggregated worker uses
FULL_DECODE_ONLY and runs the pinned image as shipped.

The disaggregated setup installs the EFA transport at container start
without source patches: EFA installer 1.51.0 as vLLM
docker/Dockerfile.efa installs it, the NIXL 1.5.2 wheel, and Mooncake
v0.3.14-pre built from source. The version binder now passes the master
config's Mooncake version to the script, which checks it against the
version it builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The disaggregated B300 points install EFA transport at container start;
the waiver lists what the setup installs and when it can be removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g it

Since kvcache-ai/Mooncake#4356 the default Mooncake wheels include the EFA
transport, and the v0.3.14-pre-3 pre-release wheel carries the EFA fixes
this recipe needs. The setup installs that wheel, SHA256-pinned, in place
of building v0.3.14-pre from source, checks that it has EFA support, and
installs only the runtime libraries it and the EFA installer need. The
master config binds Mooncake 0.3.14rc3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vllm-project/vllm#64579 merged after the pinned nightly, so the setup
still installs NIXL 1.5.2 over the image's 1.5.0.

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

The B300 EFA setup installs the released Mooncake 0.3.14 wheel from PyPI
(same SHA256 as the v0.3.14 release asset) in place of the 0.3.14rc3
pre-release wheel, and the master config pins 0.3.14.

The disaggregated recipe no longer overrides LD_LIBRARY_PATH on the workers
and the Mooncake master. The setup registers the EFA installer's libfabric
and aws-ofi-nccl directories with ldconfig instead, so the image's library
path is kept.

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

functionstackx commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

As mentioned last week to everyone,we will deprecate it and not accept any more merges the moment k3.1 pro weights drop. this means existing open PRs will not be accepted anymore after k3.1 pro weights drops.

The PR may not have been merged due to various factors:

  • accuracy concerns that weren't addressed before the k3.1 pro weights drop
  • msging core maintainers in slack for review only after the k3.1 pro weights dropped (in accordance with the agreed upon policy for review/merge SLO MODELS.md )
  • having patches
  • or other assortment of issues

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants