Skip to content

[Bug]: Torch is not able to use GPU #16941

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

Open
1 of 6 tasks
Sirfluffykinz opened this issue Apr 10, 2025 · 1 comment
Open
1 of 6 tasks

[Bug]: Torch is not able to use GPU #16941

Sirfluffykinz opened this issue Apr 10, 2025 · 1 comment
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@Sirfluffykinz
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?

Failed to open

Steps to reproduce the problem

Click on run.bat dosnt open

What should have happened?

Open

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

..

Console logs

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Traceback (most recent call last):
  File "C:\Users\steve\Desktop\Stable Diffusion\webui\launch.py", line 48, in <module>
    main()
  File "C:\Users\steve\Desktop\Stable Diffusion\webui\launch.py", line 39, in main
    prepare_environment()
  File "C:\Users\steve\Desktop\Stable Diffusion\webui\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 . . .

Additional information

How do i fix this ?

System info:
AMD Ryzen 7 7800X3D 8-Core Processor 4.20 GHz
32,0 GB RAM
4070 TI Nvidia GPU

@Sirfluffykinz Sirfluffykinz added the bug-report Report of a bug, yet to be confirmed label Apr 10, 2025
@missionfloyd
Copy link
Collaborator

It may be trying to use the CPU's integrated graphics. You should be able to disable it the motherboard's BIOS settings,

Otherwise, try adding --device-id 0 or --device-id 1 to webui-user.bat.

Sysinfo

..

If you can't open webui, sysinfo can be obtained by adding --dump-sysinfo to webui-user.bat.

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

2 participants