Closed carmocca closed 2 years ago
@krshrimali can you take care of this?
This is a bug inside PyTorch as seen in the stacktrace:
File "/opt/homebrew/Caskroom/miniforge/base/envs/pl_error/lib/python3.9/site-packages/torch/distributed/algorithms/model_averaging/utils.py", line 10, in
params: Iterator[torch.nn.Parameter], process_group: dist.ProcessGroup
but we still can gate our import with a distributed_available
check here:
File "/opt/homebrew/Caskroom/miniforge/base/envs/pl_error/lib/python3.9/site-packages/pytorch_lightning/strategies/ddp.py", line 66, in
from torch.distributed.algorithms.model_averaging.averagers import ModelAverager
So this will require one PR to this repo and another one to PyTorch
@carmocca This is the stack trace I get when I import PyTorch lightning with the following
environment.yml
Import error
Originally posted by @schiegl in https://github.com/PyTorchLightning/pytorch-lightning/issues/10348#issuecomment-1095287462