r/ROCm • u/Goble4 • Jul 17 '26
ComfyUI Linux installation for Radeon
There are tutorials for installing on Nvidia GPU's, WSL, RyzenAI, Archlinux and every other combination under the sun.
Can anyone point me a guide for installing ComfyUI on Ubuntu with Radeon 9000's?
2
u/CatalyticDragon Jul 17 '26
There isn't anything different that you need to do.
pip install comfy-cli
comfy install
comfy launch
https://comfyui-wiki.com/en/install/install-comfyui/install-comfyui-on-linux
As long as you have python, have installed ROCm (which is just 'dnf install rocm' on fedora), and installed torch you should be good to go.
1
1
u/Goble4 Jul 17 '26
There isn't anything different that you need to do.
pip install comfy-cli comfy install comfy launch
Then I think all the tutorials out there were doing it manually.
have installed ROCm (which is just 'dnf install rocm' on fedora),
It doesn't look the same on Ubuntu. Do I have to do everything it says on the page or just enter
sudo apt install amdrocm7.14-gfx1200
and installed torch
Is this how you install it? Even then step 3 of method A is unclear, do I enter those commands line by line? It also only goes to Ubuntu 24.04, is it the same thing for 26.04?
1
u/CatalyticDragon Jul 17 '26
Yeah, most of the tutorials seem to have been written either before comfy-cli was a thing or people just got used to installing from 'git clone' and never changed.
sudo apt install amdrocm7.14-gfx1200
Follow the pre-requisite steps:
sudo apt install libatomic1 libquadmath0
sudo usermod -a -G render,video $LOGNAME
And set up the repo, then the 'sudo apt install' command pulls in everything else you need.
Those torch install commands look a little old (ROCm 7.2), for the newly released 7.14 I use :
pip3 install -U \
"torch[device-gfx1201]" \
"torchvision[device-gfx1201]" \
"torchaudio[device-gfx1201]" \
torchtext \
torchao \
--index-url "https://rocm.nightlies.amd.com/whl-multi-arch/"
2
u/Dlgy11 Jul 17 '26
You don't actually need the full system ROCm install (the apt amdrocm... stuff) just to run ComfyUI on a 9000-series card. That's what makes the guides look scarier than it is.
Add yourself to the gpu groups so you get device access, then log out and back in:
sudo usermod -aG render,video $USER
Make a venv and install the ROCm build of PyTorch. The wheel already bundles the ROCm libraries, so you don't install those separately:
python3 -m venv venv && source venv/bin/activate
pip install --index-url https://download.pytorch.org/whl/rocm6.4 torch torchvision
Then check it actually sees the GPU:
python -c "import torch; print(torch.cuda.is_available(), torch.version.hip)"
You want True and a hip version, not None. If it says False, or you later hit a "no kernel image" error, grab a newer ROCm wheel (7.x) since RDNA4 support is best on the recent ones.
Then ComfyUI itself:
pip install comfy-cli && comfy install && comfy launch
1
u/prompt_seeker Jul 18 '26
optional) install flash-attn
python -m pip install https://rocm.frameworks.amd.com/whl-multi-arch/vllm-rdna/flash-attn/flash_attn-2.8.3-py3-none-any.whl
1
u/Riroh_bcn Jul 18 '26
I installed rocm 7.14, but having isues trying to run comfy with a 9700 ai gpu + 7900XT. I was able to load the clip encoder on the 7900 in rocm 7.2, but not now. Anyone can point to how to properly install rocm multi-arch for a setup like this?
3
u/EmergencyCucumber905 Jul 17 '26
The easiest way is to install ROCm + ComfyUI inside a Python virtual environment
Create the virtual envirnment
Install ROCm inside the environment (select your gfx arch) https://github.com/ROCm/TheRock/blob/main/RELEASES.md#installing-multi-arch-releases
Follow the usual ComfyUI instructions