Skip to content

Commit

Permalink
different way to install PyTorch & xFormers
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Oct 12, 2023
1 parent 2b258c9 commit 6c77abc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@ RUN --mount=type=cache,target=/var/cache/zypp \
shadow git aria2 \
Mesa-libGL1

# Install PyTorch (stable version)
# Install xFormers (dev version, will install PyTorch as well)
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --break-system-packages \
torch torchvision --index-url https://download.pytorch.org/whl/cu118

# Install xFormers (stable version)
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --break-system-packages \
xformers
--pre -U xformers

# Deps for main app
RUN --mount=type=cache,target=/root/.cache/pip \
Expand Down

0 comments on commit 6c77abc

Please sign in to comment.