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

[Bug]: Missing requirement for VC_redist.x64.exe causes "RuntimeError: Torch is not able to use GPU" #16032

Open
4 of 6 tasks
nathanielhudson opened this issue Jun 16, 2024 · 0 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@nathanielhudson
Copy link

nathanielhudson commented Jun 16, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

On a clean windows installation with a Nvidia GPU when I try to follow the installation requirements I find that I encounter the "RuntimeError: Torch is not able to use GPU" error despite meeting all the requirements. I have found that the solution is to install VC_redist.x64.exe, which is not installed by default (although many/most users will already have it installed).

Steps to reproduce the problem

  1. Clean install windows
  2. Install python3, git, nvidia drivers
  3. Attempt either of the two install methods (manual or automatic)

You might also be able to reproduce this problem by uninstalling VC_redist.x64.exe and attempting to launch the web UI.

What should have happened?

I believe the Windows requirements should include Visual C++ Redistributable, https://download.visualstudio.microsoft.com/download/pr/9613cb5b-2786-49cd-8d90-73abd90aa50a/CEE28F29F904524B7F645BCEC3DFDFE38F8269B001144CD909F5D9232890D33B/VC_redist.x64.exe

What browsers do you use to access the UI ?

No response

Sysinfo

Here is a sysinfo file from the web UI after installing VC_redist.x64.exe: sysinfo_working.json

Console logs

venv "C:\XXXXXXXXXX\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Traceback (most recent call last):
  File "C:\XXXXXXXXXX\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "C:\XXXXXXXXXX\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "C:\XXXXXXXXXX\stable-diffusion-webui\modules\launch_utils.py", line 386, in prepare_environment
    raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
Press any key to continue . . .

Additional information

No response

@nathanielhudson nathanielhudson added the bug-report Report of a bug, yet to be confirmed label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

1 participant