DDPSpawnShardedStrategy¶
- class pytorch_lightning.strategies.DDPSpawnShardedStrategy(*args, **kwargs)[source]¶
Bases:
pytorch_lightning.strategies.ddp_spawn.DDPSpawnStrategy
Optimizer sharded training provided by FairScale.
- block_backward_sync()[source]¶
Blocks syncing gradients behaviour on backwards pass.
This is useful for skipping sync when accumulating gradients, reducing communication overhead Returns: context manager with sync behaviour off
- Return type