This guide explains how to install ComfyUI in an isolated Python virtual environment with an advanced configuration:
- Python: 3.12.9
- Torch: 2.9.0.dev20250716+cu128
- Triton: triton-windows==3.3.1.post19
- SageAttention: enabled
- fp16 accumulation: enabled via
--fast fp16_accumulation
📡 Recommended GPU: NVIDIA GPU compatible with CUDA 12.8 or higher.
💡 AMD / Other GPUs: This guide is only compatible with NVIDIA GPUs supporting CUDA 12.8 or later. It does not cover installation on AMD, Intel, or CPU-only configurations.
While ComfyUI can theoretically run on these alternatives, expect major limitations:
- Very slow performance (especially without GPU)
- Key features (SageAttention, Triton) require CUDA-compatible NVIDIA GPU
- No official support for ROCm (AMD) or DirectML (Intel)
✅ Compatible GPUs:
- NVIDIA GTX 10xx series, RTX 20xx, 30xx, 40xx, 50xx (e.g., GTX 1080, RTX 2060, 3080, 4090, 5080)
🛑 Not supported:
- AMD Radeon (RX 5000/6000/7000)
- Intel Arc / iGPU
- Any non-NVIDIA GPU
-
CUDA Toolkit 12.8 installed on your system (mandatory for Torch 2.9 + Triton)
-
OS: Windows 10 or 11
-
NVIDIA GPU with CUDA 12.8 support
-
Up-to-date NVIDIA drivers
-
Python 3.12.9 (check “Add Python to PATH”)
-
Git
-
Visual Studio Build Tools
- https://visualstudio.microsoft.com/visual-cpp-build-tools/
- During installation, check: C++ build tools, MSVC v143, Windows 10 SDK, CMake
-
Internet access
-
Optional: Notepad++ or similar text editor
To save time, you can use the provided batch script to automate installation. It performs:
- Cloning the ComfyUI repository
- Creating and activating a Python 3.12.9 virtual environment
- Installing specific Torch (2.9.0.dev20250716+cu128) and Triton (3.3.1.post19) versions
- Cleaning
requirements.txt - Installing SageAttention and dependencies
- Creating the launch script
launch_comfyUI_torch2.9.bat - Installing ComfyUI-Manager
💡 To use it:
- Make sure Python 3.12.9, CUDA Toolkit 12.8, and Visual C++ Build Tools are already installed.
- Download or copy the
.batfile and run it using CMD.
Use CMD to avoid .bat or environment issues.
-
Open CMD (Win + R → type
cmd→ Enter).
❗ Do not close this window until the installation is complete. -
In your desired install location, run:
git clone https://github.com/comfyanonymous/ComfyUI.git ComfyUI.torch2.9
cd ComfyUI.torch2.9Ensure Python 3.12.9 is properly installed.
py -m venv venv
call venv\Scripts\activate.batpython -m pip install --upgrade pip setuptools wheelpip uninstall torch torchvision torchaudio -y
pip install torch==2.9.0.dev20250716+cu128 torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128pip install triton-windows==3.3.1.post19Open requirements.txt inside ComfyUI.torch2.9 and remove or comment:
# torch
# torchvision
# torchaudio
Then install dependencies:
pip install -r requirements.txtpython -m pip install sageattentionCreate a launch_comfyUI_torch2.9.bat file in the ComfyUI.torch2.9 folder with this content:
@echo off
call venv\Scripts\activate.bat
python main.py --use-sage-attention --fast fp16_accumulation --preview-method taesd
pausecd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd ..pkg_resources).
pip uninstall -y setuptools
pip install setuptools==78.1.1Launch launch_comfyUI_torch2.9.bat to start ComfyUI.
Check the console to confirm that Torch, Triton, and SageAttention load without errors.
✨ You're now ready to use ComfyUI with full performance!