Skip to content

Commit

Permalink
allow prerelease xformers
Browse files Browse the repository at this point in the history
  • Loading branch information
neggles committed Feb 26, 2024
1 parent c3867c3 commit d72fe44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ FROM base as xformers-binary
ARG XFORMERS_PACKAGE="xformers"
ARG XFORMERS_PIP_ARGS=""
RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked \
python -m pip install ${XFORMERS_PIP_ARGS} "${XFORMERS_PACKAGE}"

python -m pip install ${XFORMERS_PIP_ARGS} "${XFORMERS_PACKAGE}" \
|| python -m pip install --pre ${XFORMERS_PIP_ARGS} "${XFORMERS_PACKAGE}"

# or if xformers has to be compiled; flash attention 2 makes this impossible
# on a public github actions runner without limiting yourself to only a handful of architectures
Expand Down

0 comments on commit d72fe44

Please sign in to comment.