From 1215ae89fd487f6204d50ceaa3e93075c4594035 Mon Sep 17 00:00:00 2001 From: ari Date: Mon, 13 Apr 2026 12:11:57 -0400 Subject: [PATCH] working oh my g --- Containerfile | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Containerfile b/Containerfile index 7b1f539..8bd1774 100644 --- a/Containerfile +++ b/Containerfile @@ -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"]