Skip to content

Commit

Permalink
'cu124-megapak' using stable PT & XF
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Jul 26, 2024
1 parent 8418b05 commit c3d9672
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions cu124-megapak/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,15 @@ cpp13 \
################################################################################
# Python Packages

# PyTorch
# PyTorch, xFormers
RUN --mount=type=cache,target=/root/.cache/pip \
pip list \
&& pip install \
--upgrade pip wheel setuptools \
&& pip install \
--pre torch torchvision torchaudio \
--index-url https://download.pytorch.org/whl/nightly/cu124
xformers torchvision torchaudio \
--index-url https://download.pytorch.org/whl/cu124 \
--extra-index-url https://pypi.org/simple

# Bind libs (.so files)
# Even we have CUDA installed by Zypper, we still need to install CUDA libs for Python in order to run PyTorch.
Expand All @@ -160,12 +161,6 @@ ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}\
:/usr/lib/python3.12/site-packages/nvidia/nvjitlink/lib\
:/usr/lib/python3.12/site-packages/nvidia/nvtx/lib"

# xFormers
# Wheel file compiled on PyTorch Nightly
COPY --from=docker.io/yanwk/comfyui-extras:xformers-cu124 /wheels /wheels
RUN --mount=type=cache,target=/root/.cache/pip \
pip install /wheels/*.whl

COPY builder-scripts/. /builder-scripts/

# 1. Deps for ComfyUI & custom nodes
Expand Down

0 comments on commit c3d9672

Please sign in to comment.