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

CUDA 12.6 initialization error - PyTorch compatibility issue #389

Open
kadmy opened this issue Nov 11, 2024 · 1 comment
Open

CUDA 12.6 initialization error - PyTorch compatibility issue #389

kadmy opened this issue Nov 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kadmy
Copy link

kadmy commented Nov 11, 2024

Environment:

  • Ubuntu 24.04
  • CUDA 12.6
  • NVIDIA RTX A5000
  • Driver 560.35.03

Issue:
When running with CUDA 12.6, getting error:
CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up environment

Attempted fixes:

  1. Setting CUDA_VISIBLE_DEVICES explicitly - didn't help
  2. Installing PyTorch with different CUDA versions - fails as PyTorch supports only up to 12.4

Need guidance on running Whisper-WebUI with CUDA 12.6 system installation.

@kadmy kadmy added the bug Something isn't working label Nov 11, 2024
@jhj0517
Copy link
Owner

jhj0517 commented Nov 12, 2024

Hi. Can you

nvcc -V

in the terminal and show what it prints out?

I'm using the CUDA 12.6 Windows build and it works fine.

I believe it should work fine on Ubuntu too, and make sure you have the proper CUDA installed for your OS:
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=WSL-Ubuntu&target_version=2.0&target_type=deb_network

In Colab, it uses CUDA 12.2 on Linux, and it worked fine with both torch 2.5.0+cu121 and torch 2.5.1+cu124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants