You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I met a problem today when running with python train.py, as below,
/home/user/software/python/anaconda/anaconda3/envs/conda-general/bin/python /home/user/***/***
/ColossalAI-Examples/image/resnet/train.py
Traceback (most recent call last):
File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/colossalai/initialize.py", line 210, in launch_from_torch
rank = int(os.environ['RANK'])
File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'RANK'
During handling of the above exception, another exception occurred:
...
RuntimeError: Could not find 'RANK'in the torch environment, visit https://www.colossalai.org/ for more information on launching with torch
Is this error due to the absence of environment variable RANK in my Ubuntu?