New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: CUDA extension build skipped when installing from source #891
Comments
Hi, you should use torch built with cuda 11.1 as your cuda version is 11.1. |
Generally, this is allowed in Colossal-AI to build with torch 1.11+cu11.3 and cuda 11.1. However, I think the problem is that you don't have a GPU on your system as the log says CUDA is not available. |
You can check this by python -c "import torch;print(torch.cuda.is_available());" |
thanks for your reply.Now I assured my cuda is available,but I got error like:
|
Any possible solution? @FrankLeeeee |
Hi, one possible reason is that you PyTorch is built with cuda 11.3 and your CUDA is 11.1. Can you tried this version? pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html |
Thanks for the prompt reply, I will try it. |
well,I tried the abve command line and test it like:
and still can't compile it.Maybe you have a prebuilt package for release? |
@imabackstabber Sorry makes you struggle to install our software. We will solve the cuda dependency problems ASAP. Could you please use the docker container to install and run? |
@imabackstabber We are building the self-hosted pip source, we will let you known ASAP. |
ok,looking forward to your reply! |
Colossal-AI pre-built with CUDA extension is provided at https://www.colossalai.org/download now. |
🐛 Describe the bug
Hi,I use
Install From Source
option to install colossalAI,but i encouter problem like:/path/to/myconda/anaconda3/envs/py37-pt111-cu111-colai/lib/python3.7/site-packages/torch/autocast_mode.py:162: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling') Colossalai should be built with cuda extension to use the FP16 optimizer If you want to activate cuda mode for MoE, please install with cuda_ext!
I have installed torch1.11+cu11.3 and using cuda 11.1
any suggestion?
Environment
Pytorch 1.11+cu11.3
CUDA 11.1
The text was updated successfully, but these errors were encountered: