Closed
【社区任务】7月社区任务第三期-Ascend for PyTorch API 一致性开发(100) #3209
yi_jiabinAdd on Jul 23Closed at Aug 27
Jul 27 Associated pull request
Jul 27 Associated pull request
Jul 27 Associated pull request
lgxxx
Jul 27 Comments:
Jul 27 Comments:
ProcessGroupNCCL validation update
- v2.7.1 already contains
test_upstream/test/distributed/test_c10d_nccl.py.patch. The patch only importstorch_npu.testing,torch_npu, andtorch_npu.contrib.transfer_to_npu; this is reasonable because the torch-npu implementation maps bothtorch.distributed.ProcessGroupNCCLandtorch.distributed.distributed_c10d.ProcessGroupNCCLtoProcessGroupHCCL, and maps NCCL backend availability and initialization to HCCL. - v2.11.0 and v2.12.0 now have version-specific patches generated from their corresponding upstream
test/distributed/test_c10d_nccl.pyfiles: PR #43001 and PR #43002. - The master native API documentation was missing the public
ProcessGroupNCCLentry. PR #43003 adds the support description to the 2.7.1, 2.9.0, 2.10.0, 2.11.0, and 2.12.0 documentation sections. - The task-local NPU HCCL smoke log passed on torch 2.9.0 with torch-npu 2.9.0rc1. The complete upstream NCCL test requires the matching torch version and a multi-device environment; no result is claimed here without that run.


Jul 28 Added label: bot-triaged
TorchNPU-Bot
Jul 28 Comments:
Jul 28 Comments:
检测到当前 issue 已关联 PR !43001,自动添加标签:bot-triaged


lgxxx
Aug 3 Comments:
Aug 3 Comments:
v2.7.1 官方分支已存在 test_upstream/test/distributed/test_c10d_nccl.py.patch,其中已引入 torch_npu.contrib.transfer_to_npu 完成 NCCL 到 HCCL 的测试适配,因此不重复提交 v2.7.1 patch PR。


Aug 27 Close issue
Aug 27 Added label: resolved
一、任务概览
Ascend for PyTorch是昇腾 NPU 适配 PyTorch 框架的核心插件,为 PyTorch 提供完整的昇腾硬件算子支持、调度能力与推理优化,保障 PyTorch 模型可在昇腾 NPU 上无缝、高效运行。
当前 PyTorch 官方原生 API 已形成完善体系,但部分API尚未在 Ascend for PyTorch 中完成实现、对齐与验证,导致部分 PyTorch 原生模型 / 代码在昇腾 NPU 上运行时出现接口报错、功能不一致等问题。
本任务邀请开发者参与Ascend for PyTorch API 补齐与适配验证,完成缺失 API 的开发、调试、测试与文档交付,完善 Torch-NPU 对 PyTorch 原生 API 的兼容性,提升昇腾 NPU 上 PyTorch 框架的易用性与模型适配覆盖率。
二、任务要求及参考指导
https://docs.qq.com/doc/DT3R3eVNWdm1yUkdR
三、任务价值
深度参与昇腾生态 + PyTorch 开源共建,贡献代码合入官方仓库;
掌握 NPU PyTorch 框架适配、异构计算核心技能;
获得开源社区认可,积累工业级实习项目经验,提升简历竞争力。
四、任务领取
请前往昇腾社区-任务广场领取任务:https://www.hiascend.com/activities/task-center ,其余领取方式无效。(昇腾社区任务发布会滞后,请耐心等候)
五、API名称
torch.distributed.distributed_c10d.ProcessGroupNCCL