Repository navigation
CollectiveX: run b300 EP16 over EFA with a faster aws-ofi-nccl / CollectiveX:在 EFA 上运行 b300 EP16 并使用更快的 aws-ofi-nccl - #3872
Merged
Merged
Conversation
With gdrcopy installed the aws-ofi-nccl GIN plugin loads, but NCCL still prefers its built-in GDAKI on the two ConnectX-7 IB ports, which are not the GPU fabric, so window registration fails on most ranks and the rest hang. The EFA profile now pins NCCL_GIN_TYPE=2 so GIN rides the Libfabric plugin. DeepEP sizes its SMs from an ibstat probe that cannot see EFA devices; it returns 0 and the model divides by it. A network.rdma_gbs registry field (b300: 100 GB/s per GPU) is passed through instead. Hand runs on two b300 nodes: nccl-ep and deepep-v2 EP16 bf16 decode and prefill all pass the oracle. 现在 b300 节点已装 gdrcopy,CollectiveX 在 EFA 上运行 b300 EP16。装上 gdrcopy 后 aws-ofi-nccl 的 GIN 插件可以加载,但 NCCL 仍优先在两个并非 GPU 网络的 ConnectX-7 IB 端口上使用内置 GDAKI,导致多数 rank 窗口注册失败、其余 rank 挂起。EFA 配置现固定 NCCL_GIN_TYPE=2,使 GIN 走 Libfabric 插件。DeepEP 通过 ibstat 探测 RDMA 速率来确定 SM 数,但 ibstat 看不到 EFA 设备,返回 0 导致除零; 现由注册表字段 network.rdma_gbs(b300 每 GPU 100 GB/s)传入。两节点手动运行: nccl-ep 与 deepep-v2 EP16 bf16 decode/prefill 均通过校验。
GIN on EFA runs through the aws-ofi-nccl CPU proxy. The hosts mount 1.20, whose proxy thread applies every GIN signal with an inline gdrcopy read-modify-write of device memory; 1.21 hands signals to a worker thread and drops the read. Multi-node EFA shards now build 1.21.1 from a hash-pinned release tarball into the shared backend cache, against the host libfabric, and the EFA profile loads it (net and tuner) in place of the host's. On b300 EP16 bf16: deepep-v2 decode T=1 1825 -> 1011 us, nccl-ep decode T=512 5145 -> 1576 us, nccl-ep prefill T=8192 72 -> 15.9 ms. GPU-initiated GIN on EFA is still out of reach: it needs EFA installer 1.50.0 on the hosts (efa.ko 3.3.0 completion counters, libfabric 2.6) and NCCL 2.31. The README now says so. CollectiveX:为多节点 EFA 分片构建 aws-ofi-nccl 1.21.1。EFA 上的 GIN 经由 aws-ofi-nccl 的 CPU 代理。主机挂载的 1.20 版代理线程对每个 GIN 信号都内联执行 一次 gdrcopy 设备内存读-改-写;1.21 将信号交给工作线程并去掉读取。多节点 EFA 分片现从哈希固定的发布包针对主机 libfabric 构建 1.21.1 到共享后端缓存,EFA 配置用它(net 与 tuner)替代主机版本。b300 EP16 bf16:deepep-v2 decode T=1 1825 -> 1011 us,nccl-ep decode T=512 5145 -> 1576 us,nccl-ep prefill T=8192 72 -> 15.9 ms。EFA 上 GPU 发起的 GIN 仍不可用:需主机安装 EFA installer 1.50.0 (efa.ko 3.3.0 完成计数器、libfabric 2.6)及 NCCL 2.31,README 已注明。
Oseltamivir
force-pushed
the
cx-b300-ep16
branch
from
October 14, 2026 06:37
1dcd5df to
e32c758
Compare
curl's --retry only fires once an attempt fails, and without a timeout a stalled transfer never fails: backend preparation, and every peer node waiting on the shared cache, would hang. Each attempt now gives up after 30 s to connect or 300 s in total, so --retry gets its chance. CollectiveX:为 aws-ofi-nccl 下载设置超时,使卡住的下载能够重试 curl 的 --retry 只在一次尝试失败后才会触发,而没有超时设置时,卡住的传输 永远不会失败:后端准备步骤以及所有等待共享缓存的节点都会挂起。现在每次 尝试在连接超过 30 秒或总时长超过 300 秒后放弃,--retry 因此能够生效。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
b300 (AWS p6-b300, EFA) EP16 was blocked: first by missing gdrcopy, then (once gdrcopy was installed) by NCCL choosing the wrong GIN backend. This PR enables EP16 for nccl-ep and deepep-v2 on b300 and moves the pool onto a faster aws-ofi-nccl.
1. Make EP16 run (
2439a6055)NCCL_GIN_TYPE=2, so GIN uses the plugin's proxy.get_theoretical_num_smsraisedZeroDivisionErroron EFA. DeepEP reads the scale-out rate fromibstat, which cannot see EFA devices and returns 0. A newnetwork.rdma_gbsregistry field (b300: 100 GB/s per GPU, i.e. 16 × 400 Gb/s per node across 8 GPUs) is passed through asrdma_gbs=.nccl-epanddeepep-v2go from[8]to[8, 16].2. Faster proxy (
1dcd5df2e)a698b6e,dea6e05).--retrycan recover from a stalled transfer instead of hanging backend preparation.Results
Two-node b300 runs through the real launcher; every row below passed the oracle. Values are period p50.
Knobs that had no effect:
OFI_NCCL_GIN_STRONG_SIGNAL=0,OFI_NCCL_GIN_CQ_PROCESS_MAX_ITER,NCCL_GIN_PROXY_NTHREADS(NCCL 2.30.4 does not read it) andNCCL_GIN_NCONNECTIONS=4.Caveat: these rows are still far behind IB pools
NCCL_GIN_TYPE=5. The hosts run efa.ko 3.1.0g, and a container cannot supply the kernel module. Published third-party numbers for that stack on p6-b300 show DeepEP V2 decode at 118/168 µs (whn09/ep-benchmarks-efa).Internal queue pair error (local)on one rank and timed out; the rerun was clean.Please decide whether b300 EP16 rows should publish now or wait for the host upgrade.
Validation
Hand-driven
launch_single-slurm.shon b300 covered:NCCL_GIN_TYPEandrdma_gbs).AI model disclosure
claude-opus-5-5, run through Claude Code): the rebase ontomain, the download-timeout fix and this description (2026-10-14).中文
摘要
b300(AWS p6-b300,EFA)的 EP16 此前被阻塞:先是缺少 gdrcopy,安装 gdrcopy 之后又因为 NCCL 选错了 GIN 后端。本 PR 为 b300 上的 nccl-ep 和 deepep-v2 启用 EP16,并让该资源池使用更快的 aws-ofi-nccl。
1. 让 EP16 跑起来(
2439a6055)NCCL_GIN_TYPE=2,让 GIN 使用插件的代理。get_theoretical_num_sms在 EFA 上抛出ZeroDivisionError,因为 DeepEP 从ibstat读取 scale-out 速率,而ibstat看不到 EFA 设备、返回 0。新增注册表字段network.rdma_gbs(b300:每 GPU 100 GB/s,即每节点 16 × 400 Gb/s 分给 8 个 GPU),以rdma_gbs=传入。nccl-ep和deepep-v2从[8]改为[8, 16]。2. 更快的代理(
1dcd5df2e)a698b6e、dea6e05)。--retry重试,而不会让后端准备挂起。结果
在 b300 上通过真实启动器的两节点运行,下表每行都通过了 oracle 检查,数值为 period p50。
无效的参数:
OFI_NCCL_GIN_STRONG_SIGNAL=0、OFI_NCCL_GIN_CQ_PROCESS_MAX_ITER、NCCL_GIN_PROXY_NTHREADS(NCCL 2.30.4 不读取)和NCCL_GIN_NCONNECTIONS=4。注意:这些结果仍远落后于 IB 资源池
NCCL_GIN_TYPE=5。主机运行的是 efa.ko 3.1.0g,容器无法提供内核模块。第三方公布的 p6-b300 上该软件栈的数据显示 DeepEP V2 decode 为 118/168 µs(whn09/ep-benchmarks-efa)。Internal queue pair error (local)并超时,重跑正常;主机 1.20 上的 nccl-ep decode 用例耗时约 28 分钟,在每个用例 5400 秒的保护时限之内。请决定 b300 的 EP16 结果是现在发布,还是等待主机升级。
验证
在 b300 上手动驱动
launch_single-slurm.sh,覆盖:EP16 下完整的 nccl-ep 和 deepep-v2 bf16 decode 与 prefill 用例(使用NCCL_GIN_TYPE和rdma_gbs);上述每种变体的精简 decode 和 prefill shard;本分支的冷缓存运行(第一个节点构建插件,第二个节点在锁保护下复用,数值与手工构建的插件一致)。