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]: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check #16861

Open
6 tasks done
jabcreations opened this issue Feb 23, 2025 · 6 comments
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance

Comments

@jabcreations
Copy link

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?

The error message is not intuitive. It's a batch file, not an executable. I am a developer but not versed in anything being used. I had the impression that Automatic1111 would just work. Here is the dump for AMD 3800 / 32GB / RX 6800 / 10 x64 22H2:

Creating venv in directory D:\My Documents\Desktop\stable-diffusion-webui-1.10.1\venv using python "C:\Users\John\AppData\Local\Programs\Python\Python310\python.exe"
Requirement already satisfied: pip in d:\my documents\desktop\stable-diffusion-webui-1.10.1\venv\lib\site-packages (22.2.1)
Collecting pip
Using cached pip-25.0.1-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.2.1
Uninstalling pip-22.2.1:
Successfully uninstalled pip-22.2.1
Successfully installed pip-25.0.1
venv "D:\My Documents\Desktop\stable-diffusion-webui-1.10.1\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.10.1
Commit hash:
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Collecting torch==2.1.2
Using cached https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)
Collecting torchvision==0.16.2
Using cached https://download.pytorch.org/whl/cu121/torchvision-0.16.2%2Bcu121-cp310-cp310-win_amd64.whl (5.6 MB)
Collecting filelock (from torch==2.1.2)
Using cached filelock-3.17.0-py3-none-any.whl.metadata (2.9 kB)
Collecting typing-extensions (from torch==2.1.2)
Using cached https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting sympy (from torch==2.1.2)
Using cached sympy-1.13.3-py3-none-any.whl.metadata (12 kB)
Collecting networkx (from torch==2.1.2)
Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
Collecting jinja2 (from torch==2.1.2)
Using cached jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
Collecting fsspec (from torch==2.1.2)
Using cached fsspec-2025.2.0-py3-none-any.whl.metadata (11 kB)
Collecting numpy (from torchvision==0.16.2)
Using cached numpy-2.2.3-cp310-cp310-win_amd64.whl.metadata (60 kB)
Collecting requests (from torchvision==0.16.2)
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.16.2)
Using cached pillow-11.1.0-cp310-cp310-win_amd64.whl.metadata (9.3 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch==2.1.2)
Using cached MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl.metadata (4.1 kB)
Collecting charset-normalizer<4,>=2 (from requests->torchvision==0.16.2)
Using cached charset_normalizer-3.4.1-cp310-cp310-win_amd64.whl.metadata (36 kB)
Collecting idna<4,>=2.5 (from requests->torchvision==0.16.2)
Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests->torchvision==0.16.2)
Using cached urllib3-2.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests->torchvision==0.16.2)
Using cached certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy->torch==2.1.2)
Using cached https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
Using cached pillow-11.1.0-cp310-cp310-win_amd64.whl (2.6 MB)
Using cached filelock-3.17.0-py3-none-any.whl (16 kB)
Using cached fsspec-2025.2.0-py3-none-any.whl (184 kB)
Using cached jinja2-3.1.5-py3-none-any.whl (134 kB)
Using cached networkx-3.4.2-py3-none-any.whl (1.7 MB)
Using cached numpy-2.2.3-cp310-cp310-win_amd64.whl (12.9 MB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached sympy-1.13.3-py3-none-any.whl (6.2 MB)
Using cached https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached certifi-2025.1.31-py3-none-any.whl (166 kB)
Using cached charset_normalizer-3.4.1-cp310-cp310-win_amd64.whl (102 kB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Using cached MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl (15 kB)
Using cached urllib3-2.3.0-py3-none-any.whl (128 kB)
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, fsspec, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision
Successfully installed MarkupSafe-3.0.2 certifi-2025.1.31 charset-normalizer-3.4.1 filelock-3.17.0 fsspec-2025.2.0 idna-3.10 jinja2-3.1.5 mpmath-1.3.0 networkx-3.4.2 numpy-2.2.3 pillow-11.1.0 requests-2.32.3 sympy-1.13.3 torch-2.1.2+cu121 torchvision-0.16.2+cu121 typing-extensions-4.12.2 urllib3-2.3.0
Traceback (most recent call last):
File "D:\My Documents\Desktop\stable-diffusion-webui-1.10.1\launch.py", line 48, in
main()
File "D:\My Documents\Desktop\stable-diffusion-webui-1.10.1\launch.py", line 39, in main
prepare_environment()
File "D:\My Documents\Desktop\stable-diffusion-webui-1.10.1\modules\launch_utils.py", line 387, 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 . . .

Steps to reproduce the problem

Open webui-user.bat

What should have happened?

The program should make an attempt to not bomb out on this error or at least provide a useful and up-to-date debugging suggestion.

What browsers do you use to access the UI ?

No response

Sysinfo

N/A because it never successfully installed!

Console logs

N/A

Additional information

No response

@jabcreations jabcreations added the bug-report Report of a bug, yet to be confirmed label Feb 23, 2025
@w-e-w
Copy link
Collaborator

w-e-w commented Feb 23, 2025

AMD + Windows not supported, only on linux
please read the installation instructions
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs

Windows+AMD support has not officially been made for webui,
but you can install lshqqytiger's fork of webui that uses Direct-ml. https://github.com/lshqqytiger/stable-diffusion-webui-amdgpu

@w-e-w w-e-w added asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance and removed bug-report Report of a bug, yet to be confirmed labels Feb 23, 2025
@jabcreations
Copy link
Author

AMD GPUs are listed, then the index page should probably be updated to say "AMD on Linux only" or you'll just keep getting lot of disappointed people posting bugs.

On the upside thank you for the fork recommendation.

@HexRift
Copy link

HexRift commented Feb 25, 2025

the funny thing is this thing is so broken nothing works anymore im on a RTX 2060 same error nothing i try fixes it he really needs to do a full code rewrite but seeing as there has been no activity at months I highly doubt that's going to be the case

Windows 10
Cuda 11.8 even tried it with Cuda 12.6 and 12.8
RTX 2060 12 GB my gpu has been fine with this before
32GB of ram

I've done hundreds of clean installs same error
it wont even load lol this thing a completely dead and garbage project

@vptyp
Copy link

vptyp commented Feb 25, 2025

the funny thing is this thing is so broken nothing works anymore im on a RTX 2060 same error nothing i try fixes it he really needs to do a full code rewrite but seeing as there has been no activity at months I highly doubt that's going to be the case

Windows 10
Cuda 11.8 even tried it with Cuda 12.6 and 12.8
RTX 2060 12 GB my gpu has been fine with this before
32GB of ram

I've done hundreds of clean installs same error
it wont even load lol this thing a completely dead and garbage project

I got similar error on windows + rtx3060 several days ago, the problem was in the python version missmatch. (warning appears if this is the case)

After downgrading python works just fine

Anyway, I moved to ComfyUI shortly after

@HexRift
Copy link

HexRift commented Feb 25, 2025

i have been using the same Python version "3.10.6" as what was always in the docs

@HexRift
Copy link

HexRift commented Feb 25, 2025

the other problem is I primarily use it to train models and I haven't found anything else that will allow me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance
Projects
None yet
Development

No branches or pull requests

4 participants