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

Error / Installation

SwarmUI: Torch not compiled with CUDA enabled

In SwarmUI’s ComfyUI backend, a PyTorch version without CUDA was installed, and now the backend no longer starts or doesn’t use the graphics card.

The message

AssertionError: Torch not compiled with CUDA enabled

Affects: SwarmUI

Why is this happening?

According to the SwarmUI docs, the Python packages in the Comfy backend are then mixed up. This usually happens when custom nodes bring their own package versions through the Comfy Manager and replace torch in the process.

How to fix it

  1. Restart SwarmUI and your PC once. Then check under Server > Logs (set ViewType to Debug) to see the exact error message.
  2. Open a command prompt in the folder (your SwarmUI folder)\dlbackend\comfy.
  3. Reinstall PyTorch, using all three packages from the same CUDA variant: python_embeded\python.exe -s -m pip install torch torchvision torchaudio -U --index-url https://download.pytorch.org/whl/cu130. For RTX-20 cards and newer, cu130 is the current variant according to ComfyUI; for GTX-10 cards, use cu126 (see the entry “CUDA error: no kernel image”).
  4. Restart SwarmUI and check whether the backend is running.
  5. If that doesn’t help, do a clean reinstall: close SwarmUI, rename the folder to Old_SwarmUI, run the installer again, and then copy back Data, Models, and Output.

Better not: After that, don’t install node packages randomly through the Comfy Manager again; according to the docs, that’s the most common reason for a broken backend.

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.