Skip to content
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

Keep saying "no CUDA", while installed Pytorch 2.0, with cuda11.7, on A100" #11

Closed
wensdong opened this issue Feb 16, 2023 · 3 comments
Closed

Comments

@wensdong
Copy link

/usr/local/lib/python3.8/dist-packages/torch/cuda/init.py in _lazy_init()
245 if 'CUDA_MODULE_LOADING' not in os.environ:
246 os.environ['CUDA_MODULE_LOADING'] = 'LAZY'
--> 247 torch._C._cuda_init()
248 # Some of the queued calls may reentrantly call _lazy_init();
249 # we need to just return without initializing in that case.

RuntimeError: No CUDA GPUs are available

@wensdong
Copy link
Author

The following is the full error mesaage:

"ChatRWKV project: https://github.com/BlinkDL/ChatRWKV

Loading ChatRWKV - English - cuda - fp16 - QA_PROMPT False

RWKV_JIT_ON 1

Loading model - /content/ChatRWKV/rwkv-4-pile-169m/RWKV-4-Pile-169M-20220807-8023

RuntimeError Traceback (most recent call last)
in
197
198 print(f'Loading model - {MODEL_NAME}')
--> 199 model = RWKV_RNN(args)
200
201 model_tokens = []

2 frames
/usr/local/lib/python3.8/dist-packages/torch/cuda/init.py in _lazy_init()
245 if 'CUDA_MODULE_LOADING' not in os.environ:
246 os.environ['CUDA_MODULE_LOADING'] = 'LAZY'
--> 247 torch._C._cuda_init()
248 # Some of the queued calls may reentrantly call _lazy_init();
249 # we need to just return without initializing in that case.

RuntimeError: No CUDA GPUs are available"

@BlinkDL
Copy link
Owner

BlinkDL commented Feb 17, 2023

pip install torch --extra-index-url https://download.pytorch.org/whl/cu117
Make sure you install torch 1.13.1+cu117

@BlinkDL BlinkDL closed this as completed Feb 17, 2023
@wensdong
Copy link
Author

After a little back and forth, it worked. Thanks so much!

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

No branches or pull requests

2 participants