Merged
docs: add support information for PowerSGDState.__getstate__ #44658
GokoAdd on Aug 15
docs: add support information for PowerSGDState.__getstate__ #44658
Merged
Total: 4 files changed+92-8
| @@ -8,13 +8,22 @@ | |||
| 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 | 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 |
| 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.11/ddp_comm_hooks.html)。 | 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.11/ddp_comm_hooks.html)。 |
| 10 | 10 | ||
| 11 | -## 目录 | 11 | +<div style="border:1px solid #d1d5da;margin:10px 0;padding:16px 20px;background-color:#f3f4f5;border-radius:.25rem"> |
| 12 | +<div style="margin: 8px 0"><font size="5"><b>目录</b></font></div> | ||
| 12 | 13 | ||
| 13 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) | 14 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) |
| 14 | - [Default Communication Hooks](#default-communication-hooks) | 15 | - [Default Communication Hooks](#default-communication-hooks) |
| 15 | - [PowerSGD Communication Hook](#powersgd-communication-hook) | 16 | - [PowerSGD Communication Hook](#powersgd-communication-hook) |
| 16 | - [Debugging Communication Hooks](#debugging-communication-hooks) | 17 | - [Debugging Communication Hooks](#debugging-communication-hooks) |
| 17 | 18 | ||
| 19 | +</div> | ||
| 20 | + | ||
| 21 | +<div style="display:none;"> | ||
| 22 | + | ||
| 23 | +## ​DDP Communication Hooks | ||
| 24 | + | ||
| 25 | +</div> | ||
| 26 | + | ||
| 18 | ## What Does a Communication Hook Operate On? | 27 | ## What Does a Communication Hook Operate On? |
| 19 | 28 | ||
| 20 | ### <code><i>class</i></code> torch.distributed.GradBucket | 29 | ### <code><i>class</i></code> torch.distributed.GradBucket |
| @@ -241,7 +250,19 @@ | |||
| 241 | | <term>Atlas A3 训练系列产品</term> | ✔ | | 250 | | <term>Atlas A3 训练系列产品</term> | ✔ | |
| 242 | | <term>Ascend 950DT</term> | ✔ | | 251 | | <term>Ascend 950DT</term> | ✔ | |
| 243 | 252 | ||
| 244 | -**限制与说明**: `input`仅支持bf16,fp16,fp32 | 253 | +> <font size="3">__getstate__()</font> |
| 254 | + | ||
| 255 | +<div style="margin-left: 2em"> | ||
| 256 | + | ||
| 257 | +**原生文档**:[torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__](https://pytorch.org/docs/2.11/ddp_comm_hooks.html#torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__) | ||
| 258 | + | ||
| 259 | +**产品支持情况**: | ||
| 260 | + | ||
| 261 | +- <term>Atlas A2 训练系列产品</term>:支持 | ||
| 262 | +- <term>Atlas A3 训练系列产品</term>:支持 | ||
| 263 | +- <term>Ascend 950DT</term>:支持 | ||
| 264 | + | ||
| 265 | +</div> | ||
| 245 | 266 | ||
| 246 | </div> | 267 | </div> |
| 247 | 268 | ||
| @@ -8,13 +8,22 @@ | |||
| 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 | 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 |
| 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.12/ddp_comm_hooks.html)。 | 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.12/ddp_comm_hooks.html)。 |
| 10 | 10 | ||
| 11 | -## 目录 | 11 | +<div style="border:1px solid #d1d5da;margin:10px 0;padding:16px 20px;background-color:#f3f4f5;border-radius:.25rem"> |
| 12 | +<div style="margin: 8px 0"><font size="5"><b>目录</b></font></div> | ||
| 12 | 13 | ||
| 13 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) | 14 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) |
| 14 | - [Default Communication Hooks](#default-communication-hooks) | 15 | - [Default Communication Hooks](#default-communication-hooks) |
| 15 | - [PowerSGD Communication Hook](#powersgd-communication-hook) | 16 | - [PowerSGD Communication Hook](#powersgd-communication-hook) |
| 16 | - [Debugging Communication Hooks](#debugging-communication-hooks) | 17 | - [Debugging Communication Hooks](#debugging-communication-hooks) |
| 17 | 18 | ||
| 19 | +</div> | ||
| 20 | + | ||
| 21 | +<div style="display:none;"> | ||
| 22 | + | ||
| 23 | +## ​DDP Communication Hooks | ||
| 24 | + | ||
| 25 | +</div> | ||
| 26 | + | ||
| 18 | ## What Does a Communication Hook Operate On? | 27 | ## What Does a Communication Hook Operate On? |
| 19 | 28 | ||
| 20 | ### <code><i>class</i></code> torch.distributed.GradBucket | 29 | ### <code><i>class</i></code> torch.distributed.GradBucket |
| @@ -257,7 +266,19 @@ | |||
| 257 | | <term>Atlas A3 训练系列产品</term> | ✔ | | 266 | | <term>Atlas A3 训练系列产品</term> | ✔ | |
| 258 | | <term>Ascend 950DT</term> | ✔ | | 267 | | <term>Ascend 950DT</term> | ✔ | |
| 259 | 268 | ||
| 260 | -**限制与说明**:`input`仅支持bf16,fp16,fp32 | 269 | +> <font size="3">__getstate__()</font> |
| 270 | + | ||
| 271 | +<div style="margin-left: 2em"> | ||
| 272 | + | ||
| 273 | +**原生文档**:[torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__](https://pytorch.org/docs/2.12/ddp_comm_hooks.html#torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__) | ||
| 274 | + | ||
| 275 | +**产品支持情况**: | ||
| 276 | + | ||
| 277 | +- <term>Atlas A2 训练系列产品</term>:支持 | ||
| 278 | +- <term>Atlas A3 训练系列产品</term>:支持 | ||
| 279 | +- <term>Ascend 950DT</term>:支持 | ||
| 280 | + | ||
| 281 | +</div> | ||
| 261 | 282 | ||
| 262 | </div> | 283 | </div> |
| 263 | 284 | ||
| @@ -8,13 +8,22 @@ | |||
| 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 | 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 |
| 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.13/ddp_comm_hooks.html)。 | 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.13/ddp_comm_hooks.html)。 |
| 10 | 10 | ||
| 11 | -## 目录 | 11 | +<div style="border:1px solid #d1d5da;margin:10px 0;padding:16px 20px;background-color:#f3f4f5;border-radius:.25rem"> |
| 12 | +<div style="margin: 8px 0"><font size="5"><b>目录</b></font></div> | ||
| 12 | 13 | ||
| 13 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) | 14 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) |
| 14 | - [Default Communication Hooks](#default-communication-hooks) | 15 | - [Default Communication Hooks](#default-communication-hooks) |
| 15 | - [PowerSGD Communication Hook](#powersgd-communication-hook) | 16 | - [PowerSGD Communication Hook](#powersgd-communication-hook) |
| 16 | - [Debugging Communication Hooks](#debugging-communication-hooks) | 17 | - [Debugging Communication Hooks](#debugging-communication-hooks) |
| 17 | 18 | ||
| 19 | +</div> | ||
| 20 | + | ||
| 21 | +<div style="display:none;"> | ||
| 22 | + | ||
| 23 | +## ​DDP Communication Hooks | ||
| 24 | + | ||
| 25 | +</div> | ||
| 26 | + | ||
| 18 | ## What Does a Communication Hook Operate On? | 27 | ## What Does a Communication Hook Operate On? |
| 19 | 28 | ||
| 20 | ### <code><i>class</i></code> torch.distributed.GradBucket | 29 | ### <code><i>class</i></code> torch.distributed.GradBucket |
| @@ -257,7 +266,19 @@ | |||
| 257 | | <term>Atlas A3 训练系列产品</term> | ✔ | | 266 | | <term>Atlas A3 训练系列产品</term> | ✔ | |
| 258 | | <term>Ascend 950DT</term> | ✔ | | 267 | | <term>Ascend 950DT</term> | ✔ | |
| 259 | 268 | ||
| 260 | -**限制与说明**: `input`仅支持bf16,fp16,fp32 | 269 | +> <font size="3">__getstate__()</font> |
| 270 | + | ||
| 271 | +<div style="margin-left: 2em"> | ||
| 272 | + | ||
| 273 | +**原生文档**:[torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__](https://pytorch.org/docs/2.13/ddp_comm_hooks.html#torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__) | ||
| 274 | + | ||
| 275 | +**产品支持情况**: | ||
| 276 | + | ||
| 277 | +- <term>Atlas A2 训练系列产品</term>:支持 | ||
| 278 | +- <term>Atlas A3 训练系列产品</term>:支持 | ||
| 279 | +- <term>Ascend 950DT</term>:支持 | ||
| 280 | + | ||
| 281 | +</div> | ||
| 261 | 282 | ||
| 262 | </div> | 283 | </div> |
| 263 | 284 | ||
| @@ -8,13 +8,22 @@ | |||
| 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 | 8 | > - 产品支持范围说明:文档中仅提供已验证的产品信息,未经过验证产品暂不纳入。 |
| 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.7/ddp_comm_hooks.html)。 | 9 | > - 目录下罗列的模块和原生文档一致,对于模块的相关说明请查看原生文档[LINK](https://pytorch.org/docs/2.7/ddp_comm_hooks.html)。 |
| 10 | 10 | ||
| 11 | -## 目录 | 11 | +<div style="border:1px solid #d1d5da;margin:10px 0;padding:16px 20px;background-color:#f3f4f5;border-radius:.25rem"> |
| 12 | +<div style="margin: 8px 0"><font size="5"><b>目录</b></font></div> | ||
| 12 | 13 | ||
| 13 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) | 14 | - [What Does a Communication Hook Operate On?](#what-does-a-communication-hook-operate-on) |
| 14 | - [Default Communication Hooks](#default-communication-hooks) | 15 | - [Default Communication Hooks](#default-communication-hooks) |
| 15 | - [PowerSGD Communication Hook](#powersgd-communication-hook) | 16 | - [PowerSGD Communication Hook](#powersgd-communication-hook) |
| 16 | - [Debugging Communication Hooks](#debugging-communication-hooks) | 17 | - [Debugging Communication Hooks](#debugging-communication-hooks) |
| 17 | 18 | ||
| 19 | +</div> | ||
| 20 | + | ||
| 21 | +<div style="display:none;"> | ||
| 22 | + | ||
| 23 | +## ​DDP Communication Hooks | ||
| 24 | + | ||
| 25 | +</div> | ||
| 26 | + | ||
| 18 | ## What Does a Communication Hook Operate On? | 27 | ## What Does a Communication Hook Operate On? |
| 19 | 28 | ||
| 20 | ### <code><i>class</i></code> torch.distributed.GradBucket | 29 | ### <code><i>class</i></code> torch.distributed.GradBucket |
| @@ -257,7 +266,19 @@ | |||
| 257 | | <term>Atlas A3 训练系列产品</term> | ✔ | | 266 | | <term>Atlas A3 训练系列产品</term> | ✔ | |
| 258 | | <term>Ascend 950DT</term> | ✔ | | 267 | | <term>Ascend 950DT</term> | ✔ | |
| 259 | 268 | ||
| 260 | -**限制与说明**: `input`仅支持bf16,fp16,fp32 | 269 | +> <font size="3">__getstate__()</font> |
| 270 | + | ||
| 271 | +<div style="margin-left: 2em"> | ||
| 272 | + | ||
| 273 | +**原生文档**:[torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__](https://pytorch.org/docs/2.7/ddp_comm_hooks.html#torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState.__getstate__) | ||
| 274 | + | ||
| 275 | +**产品支持情况**: | ||
| 276 | + | ||
| 277 | +- <term>Atlas A2 训练系列产品</term>:支持 | ||
| 278 | +- <term>Atlas A3 训练系列产品</term>:支持 | ||
| 279 | +- <term>Ascend 950DT</term>:支持 | ||
| 280 | + | ||
| 281 | +</div> | ||
| 261 | 282 | ||
| 262 | </div> | 283 | </div> |
| 263 | 284 | ||
按照 https://gitcode.com/Ascend/pytorch/pull/45080/diffs 该格式修改文件