Skip to content

Commit 456985c

Browse files
committed
Handle xformers
Signed-off-by: Huy Do <huydhn@gmail.com>
1 parent d6bf991 commit 456985c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docker/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ RUN --mount=type=bind,from=build,src=/workspace/dist,target=/vllm-workspace/dist
363363
uv pip install --system dist/*.whl --verbose \
364364
--extra-index-url ${PYTORCH_CUDA_INDEX_BASE_URL}/cu$(echo $CUDA_VERSION | cut -d. -f1,2 | tr -d '.')
365365

366+
# TODO (huydhn): Remove this once xformers is released for 2.8.0
367+
RUN --mount=type=cache,target=/root/.cache/uv \
368+
uv pip install --system --no-build-isolation "git+https://github.com/facebookresearch/xformers@v0.0.30"
369+
366370
# If we need to build FlashInfer wheel before its release:
367371
# $ # Note we remove 7.0 from the arch list compared to the list below, since FlashInfer only supports sm75+
368372
# $ export TORCH_CUDA_ARCH_LIST='7.5 8.0 8.9 9.0a 10.0a 12.0'

requirements/cuda.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ torch==2.8.0
1010
torchaudio==2.8.0
1111
# These must be updated alongside torch
1212
torchvision==0.23.0 # Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version
13+
# TODO (huydhn): Re-enable this once xformers is released for 2.8.0
1314
# https://github.com/facebookresearch/xformers/releases/tag/v0.0.30
14-
git+https://github.com/facebookresearch/xformers@v0.0.30; platform_system == 'Linux' and platform_machine == 'x86_64' # Requires PyTorch >= 2.7
15+
# git+https://github.com/facebookresearch/xformers@v0.0.30; platform_system == 'Linux' and platform_machine == 'x86_64' # Requires PyTorch >= 2.7

0 commit comments

Comments
 (0)