Merged
docs: add support information for PowerSGDState.__getstate__ #44658
GokoAdd on Aug 15
docs: add support information for PowerSGDState.__getstate__ #44658
Merged
Pull Request has been successfully merged by ascend-robot.
(Thank you for Goko's contribution.)Aug 15 Associated issue: 【社区任务】7月社区任务第一期-Ascend for PyTorch API 一致性开发(1),[Usage]: 【API一致性任务】torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__ 纯 Python 接口验证说明
Aug 15 Associated issue: 【社区任务】7月社区任务第一期-Ascend for PyTorch API 一致性开发(1),[Usage]: 【API一致性任务】torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__ 纯 Python 接口验证说明
atomgit-bot
Aug 15 Comments:
Aug 15 Comments:
变更摘要
本 PR 属于资料更新,主要为 torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__ 补充 TorchNPU 支持资料。该接口是纯 Python 状态整理接口,用于返回 PowerSGDState.__slots__ 中除 process_group 以外的状态字典,不执行 NPU 算子或分布式 collective。本次在 master 上统一更新 PyTorch 2.7.1、2.11.0、2.12.0、2.13.0 四个资料版本的 DDP-Communication-Hooks.md,不涉及测试用例、NPU 适配 patch 或功能源码修改。
主要改动
- 新增 API 条目: 在四个版本的
docs/zh/api/native_api/pytorch_2-*-0/DDP-Communication-Hooks.md中新增PowerSGDState.__getstate__独立条目及对应版本的 PyTorch 原生文档链接。 - 补充支持矩阵: 为
PowerSGDState.__getstate__标记 Atlas A2、Atlas A3 和 Ascend 950DT 均支持,统一使用✔(U+2714)字符。 - 填写限制说明: 由于该 API 不涉及输入数据类型限制,将新增条目的“限制与说明”填写为
-。 - 修正既有错误说明: 修正非计算类
PowerSGDState原有的错误 dtype 限制说明,将其改为-。 - 变更范围限定: 本 PR 仅包含 API 1 的资料更新,不修改
PowerSGDState、__getstate__的签名、返回值、序列化契约或 TorchNPU 功能实现。


Incorrect?
ascend-robot
Aug 15 Comments:
Aug 15 Comments:
atomgit-bot
Aug 15 Comments:
Aug 15 Comments:
🤖 本次改动均为数据 / 生成 / 二进制文件(如测试用例、锁文件、媒体资源),没有可审查的代码逻辑,已跳过 AI 代码审查。


Incorrect?
264 messages are collapsed here。 See more
Sep 16 Closed associated issue
Sep 16 Merged pull request
ascend-robot
Sep 16 Comments:
Sep 16 Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


ascend-robot
Sep 16 Comments:
Sep 16 Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


AtlasAccount
Sep 16 Comments:
Sep 16 Comments:
流水线 pytorch_gitcode_PR_multiVersion-onetrack#93 [ commitID:1526026d ] 已完成


【合入来源】
【修改方案】
本 PR 补充以下 API 的 TorchNPU 支持资料:
该 API 是纯 Python 状态整理接口,用于返回
PowerSGDState.__slots__中除process_group以外的状态字典;方法自身不执行 NPU 算子或分布式 collective。PyTorch 官方社区缺少该方法的完整直接用例。依据新版 API 一致性任务要求,不新增测试用例或 NPU 适配 patch,运行验证和判型证据已提交至说明性 Issue #4045。当前正式资料已列出
PowerSGDState,但遗漏其公开方法PowerSGDState.__getstate__。本 PR 在 master 统一更新当前保留的四个资料版本:每份资料均进行以下修改:
PowerSGDState.__getstate__独立条目和对应版本的 PyTorch 原生文档链接;✔字符;-;PowerSGDState原有的错误 dtype 限制说明,将其改为-。本 PR 仅包含 API 1 的资料更新,不包含测试文件、NPU 适配 patch、功能源码或其他 API 修改。
【资料变更】
涉及。
更新 master 下 PyTorch 2.7.1、2.11.0、2.12.0 和 2.13.0 的
DDP-Communication-Hooks.md,补充目标 API 的支持情况,并修正PowerSGDState的非计算类限制说明。【接口变更】
不涉及。
本 PR 不修改
PowerSGDState、__getstate__、函数签名、返回值、序列化契约或 TorchNPU 功能实现。【功能验证】
目标 API 的 PyTorch 2.7.1、2.11.0、2.12.0 三套 TorchNPU NPU 环境验证均为
PASS,详细环境、源码分析和运行截图见说明性 Issue #4045。资料修改已完成以下本地检查:
提交信息:
Atlas A5(Ascend 950PR)实机验证
补充 Atlas A5 / Ascend 950 系列环境完成独立实机验证。
验证环境:
关键验证结果:
完整日志保存在验证环境:
资料修改已完成以下本地检查:
提交信息:
【CheckList】