Repository navigation
dsv4.1: communication kernels and wrappers - #39653
Conversation
243b7e2 to
64087a9
Compare
8b59cbc to
beaa5af
Compare
64087a9 to
14e300f
Compare
57b1d21 to
0d80c36
Compare
14e300f to
8b5f7c1
Compare
adbcda4 to
5a8166b
Compare
|
/rerun-test test/registered/kernels/ops/communication/test_custom_all_reduce.py test/registered/kernel/communication/test_deterministic_reduce_scatter.py test/registered/kernels/ops/kimi_k3/test_collectives.py test/registered/kernels/ops/kimi_k3/test_ar_fusion.py test/registered/kernels/ops/communication/test_symm_mem_all_gather.py |
|
Results for 🚀 🚀 🚀 |
|
/tag-and-rerun-ci |
Summary
CustomAllReduceV2push and pull planes: all-reduce, all-gather and reduce-scatter, each as a push (Lamport slot) and a pull (multicast) kernel, with an optional residual folded into the reduction (csrc/distributed/nvlink_comm.cuh,ops/communication/nvlink_comm.py).csrc/distributed/all_reduce_fusion.cuh,ops/communication/all_reduce_fusion.py); the rank-local finalize is computed in registers and pushed straight into the peers' slots, keeping the unfused path's bf16 rounding points.ops/communication/all_reduce_mhc.py).VocabGather(srt/distributed/device_communicators/vocab_gather.py): one[rows, local] -> [rows, world_size * local]interface with local, NCCL and NVLink transports; the NVLink transport takes the push kernel while the slice fits a push slot, the pull kernel into a symmetric-memory output beyond that, and the NCCL ring otherwise.sharded_greedy_step(ops/speculative/dspark/sharded_greedy.py): each rank reduces its vocab shard to (value, index) partials and only those cross the transport.Changes to existing kernels
csrc/distributed/custom_all_reduce.cuh: the one-shot push kernel maps warps to blocks round-robin instead of block-major, so the tail CTAs keep work in the size band wherechoose_block_sizemoves past 512 threads before 1024 threads fill the grid. No numerical change.include/sgl_kernel/distributed/ptx.cuh: the bulkmultimemloads and stores name the.globalstate space (ST.E.128becomesSTG.E.128). No measured change.Both changes, and the collectives themselves, are the shared-kernel part of #36720; the Kimi K3 migration in that PR is not included here.
Verification
test_custom_all_reduce.py,test_deterministic_reduce_scatter.py,kimi_k3/test_collectives.py,kimi_k3/test_ar_fusion.py,test_symm_mem_all_gather.py.CI States
Latest PR Test (Base): 🚫 Run #35072303670
Latest PR Test (Extra): ❌ Run #35072303560
Latest PR Test (AMD ROCm 10): ❌ Run #35072303590