Update to ROCm 10.1.0 / PyTorch 2.13 base image

- FROM rocm/pytorch:rocm10.1.0_ubuntu24.04_py3.12_pytorch_release_2.13.0
- Install git via apt (no longer bundled in ROCm 10.x images)
- Add LD_LIBRARY_PATH/LIBRARY_PATH for the _rocm_sdk_* wheel layout
  (fixes aiter JIT 'ld: cannot find -lamdhip64' with flash-attention)
- compose: persist aiter + Triton JIT kernel caches in ./cache/
- check-comfyui.sh: mkdir -p /opt/ComfyUI before copying pre-cloned
- Bump image tag v0.8 -> v1.0, README versions
This commit is contained in:
hermes committed 2026-10-26 22:11:18 +00:00
1 parent 74462469aa
commit 6cf465cb5c
5 files changed
+26 -6

No files matched your search

+16 -1
View File
@@ -1,4 +1,19 @@
FROM rocm/pytorch:rocm7.2.4_ubuntu24.04_py3.12_pytorch_release_2.9.1
FROM rocm/pytorch:rocm10.1.0_ubuntu24.04_py3.12_pytorch_release_2.13.0
# ROCm 10.x images no longer ship /opt/rocm: the ROCm SDK is packaged inside
# pip wheels (_rocm_sdk_core = runtime libs, _rocm_sdk_devel = headers +
# unversioned .so files for linking).
# - LD_LIBRARY_PATH: runtime loading (the torch wheel does this itself at
# import time, but aiter's JIT subprocesses need it globally).
# - LIBRARY_PATH: link time. Without this, aiter's JIT builds fail with
# "ld: cannot find -lamdhip64" when flash-attention delegates to aiter.
ENV LD_LIBRARY_PATH=/usr/local/lib/python3.12/dist-packages/_rocm_sdk_devel/lib:/usr/local/lib/python3.12/dist-packages/_rocm_sdk_core/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
ENV LIBRARY_PATH=/usr/local/lib/python3.12/dist-packages/_rocm_sdk_devel/lib:/usr/local/lib/python3.12/dist-packages/_rocm_sdk_core/lib${LIBRARY_PATH:+:$LIBRARY_PATH}
# git is no longer bundled in the ROCm 10.x images
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
# "Installing" flash-attention
# - Not sure if branch `main_perf` is actually better,
+2 -2
View File
@@ -16,8 +16,8 @@ Reported working on:
Versions used:
* ROCm: 7.2.4
* PyTorch: 2.9.1
* ROCm: 10.1.0
* PyTorch: 2.13.0
* Python: 3.12
* ComfyUI: whatever you clone (see below)
+5 -1
View File
@@ -1,7 +1,7 @@
services:
comfyui:
# Built locally from the Dockerfile in this repo (docker compose build)
image: comfyui-gfx1151:v0.8
image: comfyui-gfx1151:v1.0
container_name: comfyui
build:
context: .
@@ -13,6 +13,10 @@ services:
# Clone ComfyUI into this directory first (see README):
# git clone https://github.com/comfyanonymous/ComfyUI
- ./ComfyUI:/opt/ComfyUI
# Persist JIT kernel caches (aiter + Triton) so container recreates
# don't recompile everything on startup (first boot takes minutes).
- ./cache/aiter:/usr/local/lib/python3.12/dist-packages/aiter/jit/build
- ./cache/triton:/root/.triton
ports:
- "8188:8188"
environment:
+2 -2
View File
@@ -5,7 +5,7 @@
set -e
docker build -t comfyui-gfx1151:v0.8 .
docker build -t comfyui-gfx1151:v1.0 .
docker run -it --rm \
--cap-add=SYS_PTRACE \
@@ -20,4 +20,4 @@ docker run -it --rm \
-v $(pwd)/ComfyUI:/opt/ComfyUI \
--shm-size 8G \
--name comfyui \
comfyui-gfx1151:v0.8
comfyui-gfx1151:v1.0
+1
View File
@@ -5,5 +5,6 @@
if [ ! -e /opt/ComfyUI/requirements.txt ]; then
echo "No ComfyUI detected, copying a built-in (pre-cloned) one..."
mkdir -p /opt/ComfyUI
cp -r /opt/ComfyUI-pre-cloned/{.,}* /opt/ComfyUI/
fi