stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Torch is not able to use GPU

Open Rihnami opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Start webui-user.bat as usially And got an error "Torch is not able to use GPU"

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

Everything worked fine before Didn't run SD for a couple of weeks

Commit where the problem happens

5ab7f213bec2f816f9c5644becb32eb72c8ffb89

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

No response

Command Line Arguments

--medvram

List of extensions

no

Console logs

venv "F:\StableD\Stav\Stable-diffusion-webui\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)]
Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
Traceback (most recent call last):
  File "F:\StableD\Stav\Stable-diffusion-webui\stable-diffusion-webui\launch.py", line 352, in <module>
    prepare_environment()
  File "F:\StableD\Stav\Stable-diffusion-webui\stable-diffusion-webui\launch.py", line 257, in prepare_environment
    run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
  File "F:\StableD\Stav\Stable-diffusion-webui\stable-diffusion-webui\launch.py", line 120, in run_python
    return run(f'"{python}" -c "{code}"', desc, errdesc)
  File "F:\StableD\Stav\Stable-diffusion-webui\stable-diffusion-webui\launch.py", line 96, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "F:\StableD\Stav\Stable-diffusion-webui\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
  File "<string>", line 1, in <module>
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Additional information

GPU: GTX 1650 GDDR6 4Gb CUDA 11.8 (Rolled back from 12.0) I looked at all the solutions and nothing helped, I also reinstalled the webui

Rihnami avatar May 04 '23 12:05 Rihnami

Same issue OS: Windows 11 GPU: Nvidia Geforce RTX 2060 12Gb Vram (Works with Cuda) CUDA version 12

mcworkaholic avatar May 06 '23 16:05 mcworkaholic

Refer to this section and submit your details.

Sakura-Luna avatar May 09 '23 06:05 Sakura-Luna

I change dns to 8.8.8.8 , 8.8.8.4 and delete "venv" folder And everything works again

Rihnami avatar May 10 '23 05:05 Rihnami