Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

ModuleNotFoundError: No module named 'colossal_layer_norm_cuda' #94

Open
200987299 opened this issue Apr 24, 2022 · 3 comments
Open

ModuleNotFoundError: No module named 'colossal_layer_norm_cuda' #94

200987299 opened this issue Apr 24, 2022 · 3 comments

Comments

@200987299
Copy link

Dear developers,

I am trying to run the bert example but I got this error, any hint to fix it?

Thanks

@FrankLeeeee
Copy link
Contributor

Hi, this is because you CUDA extension is not built. Can you make sure your PyTorch uses the same cuda version as your cuda runtime. One way is to add the -v flag to your pip install command. If cuda extension is not built, the log will tell you the info about the version mismatch.

@200987299
Copy link
Author

Hi, this is because you CUDA extension is not built. Can you make sure your PyTorch uses the same cuda version as your cuda runtime. One way is to add the -v flag to your pip install command. If cuda extension is not built, the log will tell you the info about the version mismatch.

Hi, could you be more specific? I tried few times reinstalling all the stuff, but I failed every time. The pip -v install shown everything was fine.

Thanks

@binmakeswell
Copy link
Member

Hi @200987299 We have updated and simplified the installation process, and the example code has been updated. You can try to reinstall, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants