working oh my g

This commit is contained in:
ari committed 2026-04-13 12:11:57 -04:00
1 parent 271895b0e9
commit 1215ae89fd
1 file changed
+3 -17
+3 -17
View File
@@ -1,11 +1,10 @@
FROM rocm/pytorch:rocm7.1_ubuntu24.04_py3.12_pytorch_release_2.6.0
FROM rocm/pytorch:rocm7.2.1_ubuntu24.04_py3.12_pytorch_release_2.9.1
# ─── ROCm environment for gfx1151 (Strix Halo) ───────────────────────────
ENV HSA_OVERRIDE_GFX_VERSION=11.5.1
ENV HSA_ENABLE_SDMA=0
ENV ROCBLAS_USE_HIPBLASLT=1
ENV PYTORCH_HIP_ALLOC_CONF=expandable_segments:False
ENV HIP_LAUNCH_BLOCKING=1
# ─── Clone ComfyUI ────────────────────────────────────────────────────────
ARG COMFYUI_COMMIT=master
@@ -15,16 +14,7 @@ RUN git clone https://github.com/comfyanonymous/ComfyUI "$COMFYUI_PATH" \
&& cd "$COMFYUI_PATH" \
&& if [ "$COMFYUI_COMMIT" != "master" ]; then git checkout "$COMFYUI_COMMIT"; fi
# ─── Pin PyTorch to ROCm 6.2.4 wheels FIRST ──────────────────────────────
# Must be a separate step — mixing --index-url with -r requirements.txt
# breaks PyPI resolution for all the non-torch packages.
# RUN pip install --no-cache-dir --force-reinstall \
# torch torchvision torchaudio \
# --index-url https://download.pytorch.org/whl/rocm6.2.4
RUN pip install --no-cache-dir --pre torch torchvision torchaudio \
--index-url https://download.pytorch.org/whl/nightly/rocm6.3
# ─── Install ComfyUI requirements from PyPI (no index-url override) ───────
# ─── Install ComfyUI requirements ─────────────────────────────────────────
RUN pip install --no-cache-dir -r "$COMFYUI_PATH/requirements.txt"
# ─── Custom nodes ─────────────────────────────────────────────────────────
@@ -59,14 +49,10 @@ RUN mkdir -p \
"$COMFYUI_PATH/models/controlnet" \
"$COMFYUI_PATH/output"
# NOTE: sageattention removed — CUDA-only, won't build on ROCm.
# --use-pytorch-cross-attention below is the ROCm-compatible equivalent.
WORKDIR "$COMFYUI_PATH"
EXPOSE 8188
CMD ["python", "main.py", \
"--listen", "0.0.0.0", \
"--port", "8188", \
"--use-pytorch-cross-attention", \
"--cpu-vae"]
"--use-pytorch-cross-attention"]