ComfyUI with ROCm on Windows 11

If you're looking to run ComfyUI on Windows 11 with ROCm support, you're in the right place. ComfyUI is a powerful and flexible node-based UI for image generation using tools like Stable Diffusion. While most tutorials focus on CUDA and NVIDIA GPUs, this guide is tailored for those using AMD GPUs with ROCm.
We'll walk through the entire setup process—from cloning the repository, creating a clean Python virtual environment, installing dependencies, and running the app. Whether you're experimenting with generative models or building complex workflows, this lightweight setup keeps your system clean and ready for creativity.
Let's figure out how to get ComfyUI working with an unofficial version of PyTorch (ROCm version) on Windows 11, using a Python virtual environment created inside the cloned repository.
The steps below are tested on an AMD RX 7700 XT GPU.
📂 1. Clone the ComfyUI Repository
First, clone the official ComfyUI GitHub repository:
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
🐍 2. Set Up a Python Virtual Environment
Create and activate a Python virtual environment inside the ComfyUI directory with Python 3.11:
# Create virtual environment
python -m venv venv
# In case you use PyLauncher
py -3.11 -m venv venv
# Activate it (choose the command for your shell)
# CMD
venv\Scripts\activate
# PowerShell
.\venv\Scripts\Activate.ps1
Upgrade pip
to the latest version:
python -m pip install --upgrade pip
📦 3. Install Dependencies
First download the unofficial Torch files by jammm and put them in the ComfyUI folder:
-
torch-2.7.0a0+rocm_git3f903c3-cp311-cp311-win_amd64.whl
-
torchaudio-2.7.0a0+52638ef-cp311-cp311-win_amd64.whl
-
torchvision-0.22.0+9eb57cd-cp311-cp311-win_amd64.whl
Make sure that you see (venv) on the left of the command line. Otherwise, go back to the step of the Python 3.11 virtual environment.
Install the pip packages:
Torch:
pip install "torch-2.7.0a0+rocm_git3f903c3-cp311-cp311-win_amd64.whl"
Torch Audio:
pip install "torchaudio-2.7.0a0+52638ef-cp311-cp311-win_amd64.whl"
Torch Vision:
pip install "torchvision-0.22.0+9eb57cd-cp311-cp311-win_amd64.whl"
Run:
pip uninstall numpy
Change requirements.txt of ComfyUI to:
numpy==1.26.4
Install the required packages:
pip install -r requirements.txt
💡 Note that you are using an unofficial version of PyTorch (ROCm) now
🚀 4. Run ComfyUI
Launch ComfyUI:
python main.py
Once running, open your browser and go to:
http://127.0.0.1:8188/
✅ Done
You’re now running ComfyUI with ROCm on Windows 11 using a virtual environment within the project directory.
Member discussion