Free | No tracking | Every fact with a source|German and English

Error / Graphics card and drivers

A1111/Forge: Torch is not able to use GPU

The WebUI can’t find a usable NVIDIA graphics card via CUDA.

The message

RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Affects: AUTOMATIC1111 Stable Diffusion WebUI, Stable Diffusion WebUI Forge

Why is this happening?

CUDA only works with NVIDIA cards. On an NVIDIA card, this is usually caused by a wrongly installed PyTorch version (without CUDA) in the venv folder or an outdated driver. On AMD cards or Macs, this message is expected.

How to fix it

  1. Check which graphics card you have. If you have an AMD card or a Mac, you need a suitable version (for example, the program’s AMD guide). Only then does --skip-torch-cuda-test in COMMANDLINE_ARGS make sense.
  2. For NVIDIA: Update the graphics driver through the NVIDIA app or nvidia.com and restart the PC.
  3. Delete the venv folder in the WebUI folder and restart webui-user.bat. PyTorch will then be freshly installed with CUDA support.
  4. If that doesn’t help, open a terminal in the WebUI folder and run .\venv\Scripts\python.exe -m torch.utils.collect_env (in the classic Command Prompt without .\ at the beginning). The output shows which torch and CUDA version is installed and helps when asking in the forum.
  5. If you have an RTX-50 card, also read the entry for "sm_120 is not compatible".

Better not: On an NVIDIA card, don’t just add --skip-torch-cuda-test, or everything will run extremely slowly on the CPU.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.