← 返回事件
持续讨论AI发版

trunk/05b558d4e79ea7a049dbc351a9067f0bf2a63faf: [c10d] Bind local rank before eager NCCL2 initialization (#193237)

图:PyTorch Releases

发生了什么

NCCL2 initializes eagerly, so selecting torch.cuda.current_device() before honoring LOCAL_RANK can bind forked workers to the same GPU. Prefer LOCAL_RANK and make DistributedTestBase bind the selected accelerator before init_process_group; the helper also accepts an explicit backend for compatibility tests. Test Plan: CUDA_VISIBLE_DEVICES=2,3 VIRTUAL_ENV=/home/tristanr/pytorch/.venv PATH=/home/tristanr/pytorch/.venv…

摘要按规则整理自下方来源原文

为什么在扩散

来源