ColossalAI icon indicating copy to clipboard operation
ColossalAI copied to clipboard

No module named 'colossalai._C.cpu_adam_x86'

Open MountainGG opened this issue 11 months ago • 3 comments

Discussed in https://github.com/hpcaitech/ColossalAI/discussions/5381

Originally posted by mackmake February 13, 2024 Hi and thanks for your efficient library. I wanted to pretrain so I installed packages with CUDA_EXT=1. Then I run the pretrain code with colossalai run and faced this error: No module named 'colossalai._C.cpu_adam_x86'

why it happens and how to fix it?

I had the same problem with py3.9, cuda117, torch1.13.1 and colossalai0.3.5, when running Colossal-LLaMA-2.

MountainGG avatar Feb 29 '24 10:02 MountainGG

same error

ersanliqiao avatar Mar 01 '24 09:03 ersanliqiao

Hi, please install the colossalai with BUILD_EXT=1. The latest version update includes the option BUILD_EXT=1. https://colossalai.org/docs/get_started/installation.

flybird11111 avatar Mar 08 '24 02:03 flybird11111

already add BUILD_EXT=1

ersanliqiao avatar Mar 08 '24 07:03 ersanliqiao