init_distributed¶
- torchtune.utils.init_distributed(**kwargs: Dict) bool [source]¶
Initialize torch.distributed.
- Parameters:
**kwargs (Dict) – Additional arguments to pass to torch.distributed.init_process_group.
- Returns:
True if torch.distributed is initialized.
- Return type:
- Raises:
RuntimeError – If torch.distributed is already initialized.