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:
1 parent
74462469aa
commit
6cf465cb5c
5 files changed
+26
-6
No files matched your search
+16
-1
@@ -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
|
# "Installing" flash-attention
|
||||||
# - Not sure if branch `main_perf` is actually better,
|
# - Not sure if branch `main_perf` is actually better,
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ Reported working on:
|
|||||||
|
|
||||||
Versions used:
|
Versions used:
|
||||||
|
|
||||||
* ROCm: 7.2.4
|
* ROCm: 10.1.0
|
||||||
* PyTorch: 2.9.1
|
* PyTorch: 2.13.0
|
||||||
* Python: 3.12
|
* Python: 3.12
|
||||||
* ComfyUI: whatever you clone (see below)
|
* ComfyUI: whatever you clone (see below)
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
comfyui:
|
comfyui:
|
||||||
# Built locally from the Dockerfile in this repo (docker compose build)
|
# Built locally from the Dockerfile in this repo (docker compose build)
|
||||||
image: comfyui-gfx1151:v0.8
|
image: comfyui-gfx1151:v1.0
|
||||||
container_name: comfyui
|
container_name: comfyui
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -13,6 +13,10 @@ services:
|
|||||||
# Clone ComfyUI into this directory first (see README):
|
# Clone ComfyUI into this directory first (see README):
|
||||||
# git clone https://github.com/comfyanonymous/ComfyUI
|
# git clone https://github.com/comfyanonymous/ComfyUI
|
||||||
- ./ComfyUI:/opt/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:
|
ports:
|
||||||
- "8188:8188"
|
- "8188:8188"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
+2
-2
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
docker build -t comfyui-gfx1151:v0.8 .
|
docker build -t comfyui-gfx1151:v1.0 .
|
||||||
|
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
--cap-add=SYS_PTRACE \
|
--cap-add=SYS_PTRACE \
|
||||||
@@ -20,4 +20,4 @@ docker run -it --rm \
|
|||||||
-v $(pwd)/ComfyUI:/opt/ComfyUI \
|
-v $(pwd)/ComfyUI:/opt/ComfyUI \
|
||||||
--shm-size 8G \
|
--shm-size 8G \
|
||||||
--name comfyui \
|
--name comfyui \
|
||||||
comfyui-gfx1151:v0.8
|
comfyui-gfx1151:v1.0
|
||||||
@@ -5,5 +5,6 @@
|
|||||||
|
|
||||||
if [ ! -e /opt/ComfyUI/requirements.txt ]; then
|
if [ ! -e /opt/ComfyUI/requirements.txt ]; then
|
||||||
echo "No ComfyUI detected, copying a built-in (pre-cloned) one..."
|
echo "No ComfyUI detected, copying a built-in (pre-cloned) one..."
|
||||||
|
mkdir -p /opt/ComfyUI
|
||||||
cp -r /opt/ComfyUI-pre-cloned/{.,}* /opt/ComfyUI/
|
cp -r /opt/ComfyUI-pre-cloned/{.,}* /opt/ComfyUI/
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user