ColossalAI icon indicating copy to clipboard operation
ColossalAI copied to clipboard

[BUG]: from colossalai._C import fused_optim ImportError

Open yufengyao-lingoace opened this issue 2 years ago β€’ 7 comments

πŸ› Describe the bug

/examples/images/dreambooth/ runs error as follows:

Using /home/ubuntu/.cache/torch_extensions/py37_cu117 as PyTorch extensions root... Traceback (most recent call last): File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/colossalai/kernel/init.py", line 4, in from colossalai._C import fused_optim ImportError: /home/ubuntu/anaconda3/lib/python3.7/site-packages/colossalai/_C/fused_optim.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops19empty_memory_format4callEN3c108ArrayRefIlEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEENS5_INS2_12MemoryFormatEEE

Environment

No response

yufengyao-lingoace avatar Jan 13 '23 05:01 yufengyao-lingoace

Did you install it from our official website. If install from source, please check if your CUDA tookit version matches your torch and colossalai version.

feifeibear avatar Jan 13 '23 05:01 feifeibear

Yes, I just folows your official document: WX20230113-134634@2x

yufengyao-lingoace avatar Jan 13 '23 05:01 yufengyao-lingoace

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


Yes, I just folows your official document: WX20230113-134634@2x

Issues-translate-bot avatar Jan 13 '23 05:01 Issues-translate-bot

my cuda is 11.4

yufengyao-lingoace avatar Jan 13 '23 06:01 yufengyao-lingoace

You can try with cuda 11.3 or 11.6, and install the corresponding Pytorch.

haofanwang avatar Jan 13 '23 07:01 haofanwang

my cuda is 11.4

I met the same question. Have you salved it by changing cuda version?

weiyuann1 avatar Jan 29 '23 10:01 weiyuann1

you may solve this problem if you use a higher version of gcc. I solved the same sort of problem using gcc 7.3.0.

gouchangjiang avatar Feb 01 '23 08:02 gouchangjiang

you may solve this problem if you use a higher version of gcc. I solved the same sort of problem using gcc 7.3.0.

Thanks for the advice. We have updated a lot. This issue was closed due to inactivity. If you have similar bugs, please open a new issue. Thanks.

binmakeswell avatar Apr 18 '23 08:04 binmakeswell