DDP Communication Hooks

若API“是否支持”“是”“限制与说明”“-”,说明此API和原生API支持度保持一致。

API名称

是否支持

限制与说明

torch.distributed.GradBucket

支持fp32

torch.distributed.GradBucket.index

支持fp32

torch.distributed.GradBucket.buffer

支持fp32

torch.distributed.GradBucket.gradients

支持fp32

torch.distributed.GradBucket.is_last

-

torch.distributed.GradBucket.set_buffer

-

torch.distributed.GradBucket.parameters

-

torch.distributed.algorithms.ddp_comm_hooks.default_hooks.allreduce_hook

支持fp32

torch.distributed.algorithms.ddp_comm_hooks.default_hooks.fp16_compress_hook

支持fp32

torch.distributed.algorithms.ddp_comm_hooks.default_hooks.bf16_compress_hook

-

torch.distributed.algorithms.ddp_comm_hooks.default_hooks.fp16_compress_wrapper

支持fp32

torch.distributed.algorithms.ddp_comm_hooks.default_hooks.bf16_compress_wrapper

-

torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.PowerSGDState

支持bf16,fp16,fp32

torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.powerSGD_hook

-

torch.distributed.algorithms.ddp_comm_hooks.powerSGD_hook.batched_powerSGD_hook

-

torch.distributed.algorithms.ddp_comm_hooks.debugging_hooks.noop_hook

支持fp32

__getstate__

-

__setstate__

-