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

Error when trying to use nvidia 5090 #308

Open
Roshy76 opened this issue Feb 18, 2025 · 10 comments
Open

Error when trying to use nvidia 5090 #308

Roshy76 opened this issue Feb 18, 2025 · 10 comments

Comments

@Roshy76
Copy link

Roshy76 commented Feb 18, 2025

When trying to use my graphics card I get an error:

RuntimeError:
CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

I am running this on windows, using cpu works, but is very slow. Would love to use my 5090.

@nagadomi
Copy link
Owner

To run on RTX5090, torch and torchvision built with CUDA 12.8 are required.
However, those official pre-built binaries for Windows are not released yet.
For Linux, it already exists in nightly build, so I think it will be released soon.
pytorch/pytorch#146977

@djskala
Copy link

djskala commented Feb 20, 2025

Hello, nagadomi,

First of all, thank you for the great work you do for the community.

I can confirm that the libraries for PyTorch 1.13.10 on Windows with support for CUDA 12.8 have already been released, but the issue persists. What would you recommend to make the program work correctly?

Thanks in advance!

@nagadomi
Copy link
Owner

cu128 is only available for torch 2.7. And so now it just got available.
However, it seems that torchvision cu128 is not yet available.

The installation steps are probably as follows. (obviously I haven't tried it yet)

  1. open nunif-prompt.bat
  2. pip3 install --pre torch torchvision --force-reinstall --index-url https://download.pytorch.org/whl/nightly/cu128

Also note that if you run update.bat, torch will revert to the old(current stable) version.

@djskala
Copy link

djskala commented Feb 20, 2025

I have already installed Torch 2.7, and the CUDA 12.8 version is also ready. However, I’m still missing torchvision. The command you suggested doesn’t work for me. Where can I check for updates on torchvision to stay up to date on its availability? Thanks!!

@nagadomi
Copy link
Owner

nagadomi commented Feb 21, 2025

The above command will not work until torchvision cu128 is released.
I don't know the workflow that nightly builds are generated by.

When torchvision-*+cu128-cp310-cp310-win_amd64.whl appears in https://download.pytorch.org/whl/nightly/torchvision/, it should be able to be installed.

@nagadomi
Copy link
Owner

Also unoffical builds may exist, but be careful security risk.
Do not post it here.

@nagadomi
Copy link
Owner

torchvision cu128 for Windows is now available.
The above installation command reports a numpy dependency conflict error, but I think it works fine.

You can also comment out the following line in update.bat with @rem comamnd to prevent reinstallation of the old torch.

python -m pip install --no-cache-dir --upgrade -r "%NUNIF_DIR%\requirements-torch.txt"

to

@rem python -m pip install --no-cache-dir --upgrade -r %NUNIF_DIR%\requirements-torch.txt

@Roshy76
Copy link
Author

Roshy76 commented Feb 26, 2025

That seems to be working, thanks! So much faster than using the cpu!

@djskala
Copy link

djskala commented Feb 26, 2025

CUDA error: no kernel image is available for execution on the device. Compile with "TORCH_USE_CUDA_DSA" to enable device-side assertions... :( :( :(

@djskala
Copy link

djskala commented Feb 26, 2025

Finally got it working! Huge thanks to GROK3 from xAI for guiding me step-by-step through installing the nightly PyTorch builds (torch-2.7.0.dev20250225+cu128 and torchvision-0.22.0.dev20250226+cu128) from local .whl files and resolving dependency issues with lpips and timm. Couldn’t have done it without the detailed help!

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

3 participants