Closed
【社区任务】7月社区任务第一期-Ascend for PyTorch API 一致性开发(55) #2678
群青世界Add on  Jul 9Closed at  9 days ago
群青世界
群青世界Collaborators
Jul 9 Create

一、任务概览
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._dispatch.python.enable_python_dispatcher

likedislike
群青世界群青世界Collaborators
Jul 10 Modify description of issue
7 event messages are collapsed here。 See more
TorchNPU-BotTorchNPU-BotCollaborators
Jul 28 Added label: bot-triaged
TorchNPU-Bot
TorchNPU-BotCollaborators
Jul 28 Comments:

检测到当前 issue 已关联 PR !41030,自动添加标签:bot-triaged

likedislike
sodachansodachan
Sep 7 Associated pull request
sodachansodachan
Sep 7 Associated pull request
sodachansodachan
Sep 7 Associated pull request
sodachansodachan
Sep 7 Associated pull request
sodachan
sodachan
Sep 7 Comments:

关联结果:结果 #4682。

torch._dispatch.python.enable_python_dispatcher 按 1.2-2 保留四个版本对应的新增专项测试:社区候选未完整覆盖守卫进入/退出、嵌套恢复、异常恢复、非法参数与真实 NPU 分发的组合契约。四个 PR 仅新增 test/npu/test__dispatch_python_enable_python_dispatcher.py,不修改 API、实现或公开资料;私有 _dispatch 模块不适用 native API 资料。

历史运行记录覆盖 v2.7.1、v2.11.0、v2.12.0、master 的 A3/Ascend910B3 与 A5/Ascend950PR,共 8 个单元、32/32 项通过;日志、测试方法和 SHA-256 已复核。该证据不包含 A2,也不等同维护者验收。

请维护者确认两项待办:

  1. 当前实际可用的 torch.testing._internal.common_utils.run_tests 是否满足“从 torch.testing 导入”的规范表述。目标版本的顶层 torch.testing 未导出该符号,故未机械改写;若要求修改,仅补跑受影响版本的原四项 A3/A5 测试。
  2. 四个 PR 的评审与合入决定。当前 CI、CLA 已通过,review 与 merge 仍待平台和维护者确认。
likedislike
群青世界群青世界Collaborators
9 days ago changed custom state from TODO to DONE
群青世界群青世界Collaborators
9 days ago Close issue
TorchNPU-BotTorchNPU-BotCollaborators
9 days ago Added label: triagedhelp-wanted
TorchNPU-Bot
TorchNPU-BotCollaborators
9 days ago Comments:

检测到社区任务相关 issue,自动添加标签:help-wanted

likedislike
ascend-robotascend-robotCollaborators
9 days ago Added label: resolved