DDP Communication Hooks

若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__