# Torch not compiled with CUDA enabled: get your graphics card working

> Markdown version of https://stella.sh/how/local-ai/torch-not-compiled-with-cuda-enabled for agents and LLMs.
> Getting AssertionError: Torch not compiled with CUDA enabled? Stella (stella.sh) puts the right PyTorch for your NVIDIA card in the Python your app uses.

The error means the app has a copy of PyTorch built without NVIDIA support, so it can't use your card. Stella (stella.sh) swaps in the CUDA build that matches your card and driver, in the Python that app runs.

## What you get

- The right PyTorch for your card and driver
- Installed in the app's own Python, not another one

## Ask Stella

> ComfyUI says AssertionError: Torch not compiled with CUDA enabled. I have an RTX 3060. Fix it.

## An example chat

**You:** ComfyUI says AssertionError: Torch not compiled with CUDA enabled. I have an RTX 3060. Fix it.

**Stella:** On it. Finding which Python ComfyUI really uses.

*Stella works on: Fixing Torch and CUDA*
- ComfyUI has the processor-only PyTorch
- Installing PyTorch with CUDA for your driver
- Starting ComfyUI on the RTX 3060

**Stella:** Fixed. ComfyUI had a PyTorch with no CUDA, pulled in by a node pack. It now has the CUDA build and starts on your RTX 3060.

Works on Windows, Linux.

## Questions

**Why does Torch not compiled with CUDA enabled keep coming back?**
A custom node or update reinstalls the plain PyTorch. Stella puts the CUDA one back and names the pack.

**I have an AMD card or a Mac. What now?**
CUDA is NVIDIA only. The app needs the AMD or Apple version of PyTorch instead, and the setting asking for CUDA switched off.

**What does no kernel image is available mean?**
Your PyTorch is too old for your card, common on RTX 50 series. A newer CUDA build fixes it.

**Is Stella free?**
Yes. Free with the ChatGPT, Claude or Gemini plan you already have.

## By hand

1. Use the app's own Python: python_embeded in ComfyUI portable, venv in Forge.
2. With that Python: pip uninstall torch torchvision torchaudio, then install the CUDA build from [pytorch.org](https://pytorch.org/get-started/locally/).

## Related

- [ComfyUI Python version wrong? Run it on the right one](https://stella.sh/how/local-ai/comfyui-python-version.md)
- [ComfyUI out of memory: make it fit your graphics card](https://stella.sh/how/local-ai/comfyui-out-of-memory.md)
- [Install ComfyUI on your computer](https://stella.sh/how/local-ai/install-comfyui.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT, Claude or Gemini plan you already have.
