lllyasviel / lllyasviel/stable-diffusion-webui-forge
"Torch is not able to use GPU"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist
- [ ] The issue exists after disabling all extensions
- [X] 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
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet
### What happened?
I downloaded and installed everything, but it keeps telling me "Torch is not able to use GPU". I'm on AMD windows so I tried --directml and then --use-directml but still no luck, how can I fix this?
### Steps to reproduce the problem
open the webui-user.bat
### What should have happened?
it should've opened
### What browsers do you use to access the UI ?
Mozilla Firefox, Google Chrome, Brave, Microsoft Edge
### Sysinfo
can't open the webui
### Console logs
```Shell
venv "D:\Forge\stable-diffusion-webui-forge\venv\Scripts\Python.exe"
Python 3.10.13 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:24:38) [MSC v.1916 64 bit (AMD64)]
Version: f0.0.15v1.8.0rc-latest-213-geacb14e1
Commit hash: eacb14e1157084c4bae01a6dc65a01f849408b2b
Traceback (most recent call last):
File "D:\Forge\stable-diffusion-webui-forge\launch.py", line 51, in
main()
File "D:\Forge\stable-diffusion-webui-forge\launch.py", line 39, in main
prepare_environment()
File "D:\Forge\stable-diffusion-webui-forge\modules\launch_utils.py", line 431, 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
thanks in advance foe any helps and tips
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with webui-user.bat and the prepare_environment path in launch.py and modules/launch_utils.py, where the reported GPU check raises the error. Reproduce the AMD Windows launch with the listed DirectML arguments and inspect the console output; done means the web UI starts or the unsupported configuration is clearly identified and covered by an appropriate diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100