ComfyUI on AMD Strix Halo (RDNA 3.5 / gfx1151) via Docker. Ubuntu 26.04 LTS + UV-managed Python 3.12 + TheRock ROCm 7.13 wheels. Fixes the silent CPU fallback that Debian / Python 3.13 images hit on gfx1151.
A Docker container for running ComfyUI on AMD's Strix Halo (Ryzen AI Max+ 3xx) APU. It targets gfx1151 directly so the GPU is actually used, instead of the silent CPU fallback you get from generic images.
Generic images fail on Strix Halo for three reasons:
- Permission: the container needs the host's exact
render/videogroup IDs to reach/dev/kfdand/dev/dri. - Debian pip: plain
pipon Debian installs a CPU-only torch and silently falls back to CPU. - Python version: Ubuntu 26.04 ships Python 3.13; the gfx1151 ROCm wheels are built for 3.12.
Solution: Ubuntu 26.04 LTS for a stable, current base, with uv building an isolated Python 3.12 venv inside the container, and TheRock ROCm 7.13 wheels pinned to one coherent build so the install is reproducible.
There is no stable PyPI index for gfx1151, so the Dockerfile pins one same-date build off TheRock's nightly index rather than floating "latest". The three packages must stay on the same line (an ABI set):
| package | version | tag |
|---|---|---|
| torch | 2.9.1 | +rocm7.13.0a20260513 |
| torchvision | 0.24.0 | +rocm7.13.0a20260513 |
| torchaudio | 2.9.0 | +rocm7.13.0a20260513 |
To bump, pick a date present for all three on the same line and update the ARGs in the Dockerfile:
for p in torch torchvision torchaudio; do
curl -fsSL https://rocm.nightlies.amd.com/v2/gfx1151/$p/ | grep rocm7.13.0a<DATE>
doneThis is the same ROCm stack the gamentic project runs on the same gfx1151 box.
- Host OS: Ubuntu 25.10+ / a recent 6.x kernel with amdgpu
- Hardware: AMD Ryzen AI Max+ 3xx (Strix Halo / RDNA 3.5, gfx1151)
- Docker + Compose
git clone https://github.com/hec-ovi/comfyui-strix-docker.git
cd comfyui-strix-dockerTell Docker your GPU group IDs:
getent group video | cut -d: -f3 # -> VIDEO_GID
getent group render | cut -d: -f3 # -> RENDER_GIDCopy the template and fill in your numbers and model path:
cp .envTemplate .env# .env
VIDEO_GID=44 # your 'video' GID
RENDER_GID=990 # your 'render' GID
MODELS_PATH=/path/to/your/modelsdocker compose up -d --buildMap a local folder so models persist across rebuilds. Suggested layout:
~/workspace/models/comfy/
├── checkpoints/ (SD checkpoints)
├── unet/ (FLUX.2 diffusion models)
├── clip/ (FLUX.2 text encoders / T5)
├── vae/ (FLUX.2 VAE)
└── loras/ (LoRAs)
Drop files in and hit "Refresh" in the UI.
- Base image:
ubuntu:26.04(LTS) - Python: 3.12, pinned and built by
uv(ignores the system 3.13) - PyTorch: TheRock ROCm 7.13 wheels for
gfx1151, pinned (see the table above) - GPU runtime env (set in the Dockerfile, overridable from compose):
HSA_OVERRIDE_GFX_VERSION=11.5.1pins the ISA for Strix HaloHSA_ENABLE_SDMA=0andHSA_USE_SVM=0are the community stability fixes for unified memory (avoid GPU ring timeouts / checkerboard artifacts during VAE decode)
- The build runs an
import torch; assert 'rocm' in torch.__version__check, so a CPU-only torch fails the build instead of failing silently at runtime.
Verified on a Ryzen AI Max+ 395 (gfx1151, June 2026): the image builds against ubuntu:26.04 with torch 2.9.1+rocm7.13.0a20260513, and a FLUX.2 klein graph renders a 1024x1024 image in about 22s with the weights in GTT (unified RAM) and the VRAM carve-out left at its idle baseline.
- "Torch not compiled with CUDA enabled": the GIDs in
.envare wrong, or your kernel is too old for amdgpu on gfx1151. - Permission denied on the GPU: add your user to the host
renderandvideogroups.
MIT for the build glue in this repository (Dockerfile, docker-compose.yml, entrypoint.sh, .envTemplate, README, scripts).
This repository does not redistribute ComfyUI source. The Dockerfile clones ComfyUI from github.com/comfyanonymous/ComfyUI at build time. ComfyUI is licensed under GPL-3.0. Any image built from this repository that bundles ComfyUI is therefore a derivative work of ComfyUI and is subject to GPL-3.0 when distributed. Building locally for personal use is fine; redistributing the resulting image, or any modified version of ComfyUI, requires complying with GPL-3.0.