- class pytorch_lightning.strategies.DDPSpawnShardedStrategy(accelerator=None, parallel_devices=None, cluster_environment=None, checkpoint_io=None, precision_plugin=None, ddp_comm_state=None, ddp_comm_hook=None, ddp_comm_wrapper=None, **kwargs)¶
Optimizer sharded training provided by FairScale.
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
Returns state of an optimizer.
Allows for syncing/collating optimizer state from processes in custom plugins.