RuntimeError: NCCL error in:/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1248, unhandled syst

网友投稿 2329 2022-09-30

RuntimeError: NCCL error in:/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1248, unhandled syst

RuntimeError: NCCL error in:/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1248, unhandled syst

在NGC集群使用​​main.py --dist-url 'tcp://127.0.0.1:8888' --dist-backend 'nccl' --multiprocessing-distributed --world-size 1 --rank 0 --data /mount/imagenet/ImageNet2012/ImageNet2012 --epochs 200 -a resnet50

但是报错,信息如下

File "/code/hyperbox_app/hyperbox_app/distributed/finetune_masks/finetune_imagenet.py", line 188, in main_workermodel = torch.nn.parallel.DistributedDataParallel(model, device_ids=[args.gpu])File "/opt/conda/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 639, in __init__dist._verify_params_across_processes(self.process_group, parameters)RuntimeError: NCCL error in: /opt/pytorch/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1248, unhandled system error, NCCL version 2.12.10ncclSystemError: System call (e.g. socket, malloc) or external library call failed or device error. It can be also caused by unexpected exit of a remote peer, you can check NCCL warnings for failure reason and see if there is connection closure by a peer.

最后实测,在运行命令前面加上如下命令后就可以正常跑了

export NCCL_IB_DISABLE=1; export NCCL_P2P_DISABLE=1; NCCL_DEBUG=INFO python main.py ...

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:成功解决raise TypeError(‘Unexpected feature_names type‘)TypeError: Unexpected feature_names type
下一篇:日历签到小程序的实现(如何制作签到小程序)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~