The scope of this repository is to document how to run Comfy UI with ROCm acceleration with a AMD 7900XTX under Windows.
Nvidia and CUDA works better. But Nvidia makes you pay a significant premium for VRAM, and VRAM is critical to machine learning.
When choosing how to upgrade in 2025-01 my choices were
- AMD 7900XTX 24GB: 940€
- Nvidia 3090 24GB 4 years old used: 750€
- Nvidia 4090 24GB: 2500 €
- Nvidia 5090 32GB: 3500 €
Initially I wasn't very happy, it's cheaper but it took me six months and a dozen rebuilds to find a stack that consistently accelerates ROCm. I helped debug some workaround for issues like OOM with VAE decode
A year later, I'm feeling better and better about the purchase. Finally AMD has released windows drivers for ROCm, and ComfyUI works for me without issues, I even rebuilt with this instruction and it worked instantly. I guess I experienced the "fine wine" AMD is famous for.
In my region the 7900XTX still goes for 850€ to 950€ at the time of update 2025-12-09, and in my opinion this is amazing value to accelerate ComfyUI generation and local LLMs.
16GB cards are more affordable, but those 8GB go a long way in machine learning.
- AMD RX 7900 XTX 24GB <--- The GOAT
- Intel 13700F
- DDR5 4x16GB 64GB 6400
- Windows 11
- Adrenaline preview driver 25.20.01.17
- ROCm 7.11
ROCm 7.10.0 Preview Compatibility Matrix
ROCm 7.10.0 Preview Installation
ROCm 7.1.1 Preview Installation
This is wrong, I need to use UV for this to have any chance of working, the env will brick a lot, and if I use a system python this is hopeless
Try this at your own risk and danger, tough I'm a lot more confident and it worked painlessly for me.
My 7900XTX is called GFX1100 and is supported under windows, so I can progress
Follow the article. AMD Software: PyTorch on Windows Edition 7.1.1 Driver for Windows® 11
-
Run the cleanup utility in safe mode, it does the restart itself, neat!
-
After the cleanup go in normal mode and install the driver
-
Reboot
Create an empty folder, I name it ComfyUI-ROCm-Windows
Copy the following powershell script as ps1 and execute >>>DANGER<<<
READ THE SCRIPT I MADE BEFORE RUNNING IT, POWERSHELL IS NO JOKE, ITS AT YOUR RISK AND DANGER
# Ensure uv is installed
if (-not (Get-Command uv -ErrorAction SilentlyContinue)) {
Write-Host "Installing uv..."
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.9.16/install.ps1 | iex"
} else {
Write-Host "uv already installed."
}
# Clone ComfyUI into current directory
git init
git remote add origin https://github.com/comfyanonymous/ComfyUI.git
git fetch
git checkout -t origin/master
# Create venv with Python 3.12
uv venv .venv --python 3.12
.venv\Scripts\Activate.ps1
# Install ROCm SDK and libraries
uv pip install --no-cache-dir `
https://repo.radeon.com/rocm/windows/rocm-rel-7.1.1/rocm_sdk_core-0.1.dev0-py3-none-win_amd64.whl `
https://repo.radeon.com/rocm/windows/rocm-rel-7.1.1/rocm_sdk_devel-0.1.dev0-py3-none-win_amd64.whl `
https://repo.radeon.com/rocm/windows/rocm-rel-7.1.1/rocm_sdk_libraries_custom-0.1.dev0-py3-none-win_amd64.whl `
https://repo.radeon.com/rocm/windows/rocm-rel-7.1.1/rocm-0.1.dev0.tar.gz
# Install ROCm-enabled PyTorch stack
uv pip install --no-cache-dir `
https://repo.radeon.com/rocm/windows/rocm-rel-7.1.1/torch-2.9.0+rocmsdk20251116-cp312-cp312-win_amd64.whl `
https://repo.radeon.com/rocm/windows/rocm-rel-7.1.1/torchaudio-2.9.0+rocmsdk20251116-cp312-cp312-win_amd64.whl `
https://repo.radeon.com/rocm/windows/rocm-rel-7.1.1/torchvision-0.24.0+rocmsdk20251116-cp312-cp312-win_amd64.whl
# Verify installation
try {
python -c "import torch" | Out-Null
Write-Host "Torch import: Success"
} catch {
Write-Host "Torch import: Failure"
}
Write-Host "CUDA available:" (python -c "import torch; print(torch.cuda.is_available())")
Write-Host "Device name:" (python -c "import torch; print(torch.cuda.get_device_name(0))")
python -m torch.utils.collect_env
# Install ComfyUI custom node manager
Set-Location custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager comfyui-manager
Set-Location ..
# Install ComfyUI requirements
uv pip install -r "requirements.txt"
# Run ComfyUI
uv run main.py
This take
xxx
The environment can brick easily.
It is convenient to move the models outside the ComfyUI folder, so that when I rebuild, the models are all there. This also allows multiple local env to all access models without duplication.
extra_model_paths.yaml
comfyui:
# Go up to the parent folder, and look for the model folder there
base_path: ..\ComfyUI-Models
# Model Folder
checkpoints: checkpoints\
clip: clip\
clip_vision: clip_vision\
text_encoders: text_encoders\
configs: configs\
controlnet: controlnet\
diffusion_models: |
diffusion_models
unet
embeddings: embeddings\
loras: loras\
upscale_models: upscale_models\
vae: vae\
# custom vibevoice node dumps here
vibevoice: vibevoice\This allows exporting the workflow as png that can be imported as workflow
CMD Line Output
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] broken item:{'author': 'rjgoif', 'title': 'Img Label Tools', 'id': 'Img-Label-Tools', 'reference': 'https://github.com/rjgoif/ComfyUI-Img-Label-Tools', 'install_type': 'git-clone', 'description': 'Tools to help annotate images for sharing on Reddit, Discord, etc.'}
[ComfyUI-Manager] All startup tasks have been completed.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[ComfyUI-Manager] The ComfyRegistry cache update is still in progress, so an outdated cache is being used.
FETCH DATA from: F:\ComfyUI-Windows\user\__manager\cache\1514988643_custom-node-list.json [DONE]
[ComfyUI-Manager] broken item:{'author': 'rjgoif', 'description': 'Tools to help annotate images for sharing on Reddit, Discord, etc.', 'id': 'Img-Label-Tools', 'install_type': 'git-clone', 'reference': 'https://github.com/rjgoif/ComfyUI-Img-Label-Tools', 'title': 'Img Label Tools'}
FETCH DATA from: F:\ComfyUI-Windows\user\__manager\cache\746607195_github-stats.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extras.json [DONE]
FETCH DATA from: F:\ComfyUI-Windows\user\__manager\cache\1742899825_extension-node-map.json [DONE]
100%|█████████████████████████████████████████████████████████████████████████████| 24.2k/24.2k [00:00<00:00, 1.41MB/s]
Extracted zip file to F:\ComfyUI-Windows\custom_nodes\minimal-workflow-image
[ComfyUI-Manager] Queued works are completed.
{'install': 1}
After restarting ComfyUI, please refresh the browser.
Restarting... [Legacy Mode]doesn't work
set MIOPEN_ENABLE_LOGGING=1
set MIOPEN_ENABLE_LOGGING_CMD=1
set MIOPEN_LOG_LEVEL=6
uv run main.pyif __name__ == "__main__":
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
os.environ['DO_NOT_TRACK'] = '1'
os.environ['MIOPEN_ENABLE_LOGGING'] = '1'
os.environ['MIOPEN_ENABLE_LOGGING_CMD'] = '1'
os.environ['MIOPEN_LOG_LEVEL'] = '6'
Workflows are stored in \user\default\workflows
CMD Line Output
xxx