ComfyUI Falls Back to CPU: Solving the PyTorch CUDA Driver Mismatch

I was excited to set up a new virtual environment for ComfyUI, specifically targeting PyTorch with CUDA 13.0. I followed the standard setup process, creating a fresh venv and installing the necessary packages.

Diagram showing that Driver 566.36 is incompatible with CUDA 13 while Driver 580.65+ works correctly.
Visual comparison between an incompatible NVIDIA driver version for CUDA 13 and a compatible one.

However, when I launched ComfyUI, the application immediately fell back to CPU mode. The logs were clear: cudaGetDeviceCount() returned cudaErrorNotSupported. This error message was a direct indicator that PyTorch was unable to communicate with my NVIDIA GPU.

The Root Cause: A Version Mismatch

At first, I thought this might be a hardware issue, but digging into the logs revealed it was purely a software compatibility problem. CUDA 13.0 requires an extremely recent NVIDIA driver to function correctly. Upon checking my system, I discovered that I was running Driver version 566.36.

Because 566.36 is significantly older than the minimum requirement of 580.65 needed for CUDA 13 support, PyTorch silently disabled GPU acceleration and defaulted to CPU processing. This explains why I was seeing CUDA not available on this system in my backend logs.

The Solution: Downgrade for Stability

I initially considered updating my NVIDIA driver to at least 580.65 to support CUDA 13, but after analyzing the risks and performance gains, I decided against it. There is no real performance benefit in using bleeding-edge drivers for ComfyUI right now.

Instead, I chose stability. The best path forward was to downgrade my PyTorch installation to version CUDA 12.1 (cu121). This version is highly stable and works perfectly with Driver 566.36 without requiring any system updates or risky driver changes.

I uninstalled the CUDA 13 packages from my virtual environment, installed cu121, and restarted ComfyUI. The application now loads checkpoints and runs smoothly on GPU acceleration as intended.