from torch.distributed import init_process_group, destroy_process_group
torch.distributed members
- NCCL → GPU communication (default, fastest)
- Gloo → CPU and fallback communication (GPU possible but slower)
- MPI → Communication via MPI process launcher (non-standard, rarely used)

Seonglae Cho