解决方法:AttributeError: type object torch.distributed.Reduce0p has no attribute BAND
1.如果已经安装过 apex,需要先卸载它:
pip uninstall apex
rm -rf apex
2.重新安装一个新的 apex,即 apex_no_distributed :
git clone https://github.com/ptrblck/apex.git
cd apex
git checkout apex_no_distributed
pip install -v --no-cache-dir ./
pytorch:AttributeError: type object torch.distributed.Reduce0p has no attribute BAND
最新推荐文章于 2024-04-27 18:07:27 发布