ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
TopicDisconfirmAI EditorialUpdated 2026-11-04 20:09

NCCL对称内存与GIN

5 steps2 pieces8 Sources

【背景】在分布式AI训练中,传统通信由CPU协调,导致延迟高且难以实现计算与通信融合。为解决此问题,NVIDIA在NCCL库中引入了**对称内存(Symmetric Memory)和GPU发起的网络(GIN, GPU-Initiated Networking)**技术。

对称内存将分布式系统中的对等内存访问抽象为统一的虚拟地址空间,使GPU线程能像访问本地内存一样访问远程节点数据。而GIN则允许CUDA内核直接发起网络传输,无需CPU介入,特别适用于MoE(混合专家模型)等需要低延迟细粒度通信的场景。

目前,这一技术栈正从底层库向主流框架渗透:

  1. NVIDIA发布了详细的技术文档和论文,确立了GIN的架构标准。
  2. PyTorch社区正在推进相关教程合并,并计划在2.15版本中将重写后的NCCL后端设为默认选项,Meta团队也参与了相关优化讨论。
  3. NCCL版本迭代(如2.28至2.30.3)持续增强GIN功能,包括多上下文支持、弹性缓冲区及与DeepEP等MoE库的深度集成。

读者需关注的是,GIN并非完全向后兼容,升级NCCL版本时可能需要重新编译使用GIN API的应用程序。此外,硬件要求严格,需配合特定版本的NVIDIA NIC、驱动及Linux内核才能启用GDAKI后端。

How it got here

  1. 2025-11-24

    NVIDIA发布arXiv论文《GPU-Initiated Networking for NCCL》,正式介绍GIN架构及其在MoE通信中的应用。

    arxiv.org ↗
  2. 2026-04-01

    在PyTorch Conference Europe上,Ke Wen和Sylvain Jeaugey展示PyTorch对称内存与NCCL设备API的结合方案。

    hosted-files.sched.co ↗
  3. 2026-07-01

    GitHub用户d4l3k提交PR #3932,为PyTorch官方教程添加关于NCCL GIN和对称内存的使用指南。

    github.com ↗
  4. 2026-10-14

    NVIDIA工程师Jeff Hammond等在PyTorch官方频道发布教程视频,讲解NCCL对称内存与GIN特性。

    youtube.com ↗
Sign in / Sign up
ReadingResearchRadarInvestment framework
2026-10-29

PyTorch官方预告2.15版直播问答,提及NCCL后端重写成为默认选项,并由Meta团队解析底层优化。

youtube.com ↗

What is still unsettled

  • PyTorch 2.15中NCCL后端成为默认选项后,对现有依赖旧版NCCL行为的项目有多大兼容性影响?
  • GIN的GDAKI后端在非NVIDIA专有NIC或特定Linux内核版本下的实际部署门槛有多高?
  • 除了MoE场景,GIN在常规All-Reduce操作中相比传统Host-initiated模式的具体性能增益数据是多少?

Sources

  • arxiv.orgNVIDIA GIN论文↗
  • github.comNCCL GIN与对称内存文档↗
  • docs.nvidia.comNCCL设备API官方文档↗
  • docs.nvidia.comNCCL 2.29.7发布说明↗
  • docs.nvidia.comNCCL 2.30.3发布说明↗
  • github.comPyTorch教程PR↗
  • youtube.comNVIDIA工程师视频教程↗
  • youtube.comPyTorch 2.15 Q&A预告↗

Coverage in this topic

  • PyTorch Official Channel Announces Live Q&A for Version 2.15: Meta Team to Explain NCCL Defaultization and NVFP4/FP8 Optimizations2026-10-29News

    The official PyTorch channel published a live Q&A video preview for version 2.15 on October 28, 2026. This version includes 3,117 commits since 2.14, with key updates such as the rewritten NCCL backend becoming the default, NVFP4 low-precision decoding optimizations on NVIDIA Blackwell GPUs, and FP8 support on Apple Silicon. The Q&A session scheduled for November 5, 2026, will be led by Tristan Rice, Natalia Gimelshein, Huy Do, and Jane Xu from Meta, moderated by Chris Gottbrath. For engineers focused on AI infrastructure, this resource offers direct insight into new features and rollback paths. As no verified transcript was obtained, readers are recommended to watch the video directly.

  • NVIDIA Engineers Explain NCCL Symmetric Memory and GPU-Initiated Networking2026-10-14News

    NVIDIA engineers Jeff Hammond, Hanyue He, and Ke Wen published a tutorial on the PyTorch official channel introducing new NCCL features: symmetric memory and GPU-initiated networking (GIN), and their application in MoE implementations.