-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Not finding CUDA when it's installed both in conda env and for Windows globally (different versions) #26
Comments
look at the torch documentation it says 12.1 :) get the right torch package here -> https://pytorch.org/get-started/locally/ |
Thanks I didn't see it in the documentation, just looked at the main github page and there is no link to docs. Maybe a line under "Running locally" on the main repo page, "You will need CUDA 12.1 and etc etc, then git clone etc.". :) Will 12.3 work as well? Doing a system update and it seems like I should get on the latest, other LLM apps need 12.2 and I hope 12.3 will at least get me through the next few months! |
no i don’t think so. maybe you can customise torch trough some configs but out of the box (as far as i know) thats not possible |
Alright so I uninstalled CUDA and installed 12.1. Check win environment variable, all seems OK. Error:
Why would it not find it when it's exactly where it says it's looking?
It's there? Driver also supports it, I did check that too. |
The failure seems to happen in PyTorch, at this point: arch_list = []
# the assumption is that the extension should run on any of the currently visible cards,
# which could be of different types - therefore all archs for visible cards should be included
for i in range(torch.cuda.device_count()):
capability = torch.cuda.get_device_capability(i)
supported_sm = [int(arch.split('_')[1])
for arch in torch.cuda.get_arch_list() if 'sm_' in arch]
max_supported_sm = max((sm // 10, sm % 10) for sm in supported_sm)
# Capability of the device may be higher than what's supported by the user's
# NVCC, causing compilation error. User's NVCC is expected to match the one
# used to build pytorch, so we use the maximum supported capability of pytorch
# to clamp the capability.
capability = min(max_supported_sm, capability)
arch = f'{capability[0]}.{capability[1]}'
if arch not in arch_list:
arch_list.append(arch)
arch_list = sorted(arch_list)
arch_list[-1] += '+PTX' It fails on the last line indexing the last element of Are you sure you have the CUDA-enabled version of Torch installed? |
for "pip show torch":
pip freeze shows nvidia-smi shows So that's the weird thing, torch is there, CUDA is there, etc.
So I don't know. I have it or not. |
You definitely have the non-CUDA version of Torch. Why 2.1.0+cu121 shows up in Anaconda I don't know. In any case, I would do:
There's definitely something up with your conda envs though.
( |
Had same issue today, installed from anaconda :
And received same error.
Now everything is working. I guess it would be nice to add some note in installation guide for conda users. |
I had this issue today, because I'm using 12.1 instead of 12.2. The readme doc currently refers to 12.1, but the install expects 12.2. We could be more generic about it to help other users troubleshoot, maybe: |
true something like a "currently supported versions" list would be helpful |
Hi
Not sure what is happening here, but when I try to run
python server.py
, it saysNo CUDA runtime is found
.Is a specific version needed? Which one?
ie, I have 12.0 installed with PATH set in Win11 environment variables. I use 12.0 for 3D rendering and design.
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0
It says not found here though, should I assume 12.0 is not the version we need then?
So, I also installed 12.3 inside the conda environment "exui".
It's not seeing this either. I though the point of an environment was that it looks in there first, and then outside if the components it needs are not present in the env. If I have to set the windows PATH for every environment I run, I'll be forever switching the PATH all day.
Or is 12.3 too new? Do I need 12.2 instead?
This GUI/app looks really good, but I think the install instructions could be a bit more detailed and take into account an environment manager or two.
The text was updated successfully, but these errors were encountered: