HPUParallelStrategy
- class pytorch_lightning.strategies.HPUParallelStrategy(accelerator=None, parallel_devices=None, checkpoint_io=None, precision_plugin=None, process_group_backend='hccl')[source]
Bases:
pytorch_lightning.strategies.ddp.DDPStrategy
Strategy for distributed training on multiple HPU devices.
- broadcast(obj, src=0)[source]
Broadcasts an object to all processes.
- setup_environment()[source]
Setup any processes or distributed connections.
This is called before the LightningModule/DataModule setup hook which allows the user to access the accelerator environment before setup is complete.
- Return type