Skip to content

Commit 97ef2f0

Browse files
committed
1 parent b8e868e commit 97ef2f0

File tree

9 files changed

+19
-11
lines changed

9 files changed

+19
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repos:
4646
rev: 0.6.2
4747
hooks:
4848
- id: pip-compile
49-
args: [requirements/test.in, -o, requirements/test.txt]
49+
args: [requirements/test.in, -o, requirements/test.txt, --index-strategy, unsafe-best-match]
5050
files: ^requirements/test\.(in|txt)$
5151
- repo: local
5252
hooks:

docker/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
6666
COPY requirements/common.txt requirements/common.txt
6767
COPY requirements/cuda.txt requirements/cuda.txt
6868
RUN --mount=type=cache,target=/root/.cache/uv \
69-
uv pip install --system -r requirements/cuda.txt
69+
uv pip install --system -r requirements/cuda.txt --index-strategy unsafe-best-match
7070

7171
# cuda arch list used by torch
7272
# can be useful for both `dev` and `test`
@@ -96,7 +96,7 @@ COPY requirements/build.txt requirements/build.txt
9696
ENV UV_HTTP_TIMEOUT=500
9797

9898
RUN --mount=type=cache,target=/root/.cache/uv \
99-
uv pip install --system -r requirements/build.txt
99+
uv pip install --system -r requirements/build.txt --index-strategy unsafe-best-match
100100

101101
COPY . .
102102
ARG GIT_REPO_CHECK=0
@@ -171,7 +171,7 @@ COPY requirements/dev.txt requirements/dev.txt
171171
RUN --mount=type=cache,target=/root/.cache/uv \
172172
uv pip install --system mamba-ssm==2.2.4 --no-build-isolation
173173
RUN --mount=type=cache,target=/root/.cache/uv \
174-
uv pip install --system -r requirements/dev.txt
174+
uv pip install --system -r requirements/dev.txt --index-strategy unsafe-best-match
175175
#################### DEV IMAGE ####################
176176

177177
#################### vLLM installation IMAGE ####################
@@ -228,7 +228,9 @@ RUN --mount=type=cache,target=/root/.cache/uv \
228228
# Install vllm wheel first, so that torch etc will be installed.
229229
RUN --mount=type=bind,from=build,src=/workspace/dist,target=/vllm-workspace/dist \
230230
--mount=type=cache,target=/root/.cache/uv \
231-
uv pip install --system dist/*.whl --verbose
231+
uv pip install --system dist/*.whl --verbose \
232+
--extra-index-url https://download.pytorch.org/whl/cu128 \
233+
--index-strategy unsafe-best-match
232234

233235
# TESTING: install xformers from source to test 2.7.0 final RC
234236
RUN --mount=type=cache,target=/root/.cache/uv \
@@ -268,7 +270,7 @@ uv pip list
268270
# TODO: Remove this once FlashInfer AOT wheel is fixed
269271
COPY requirements/build.txt requirements/build.txt
270272
RUN --mount=type=cache,target=/root/.cache/uv \
271-
uv pip install --system -r requirements/build.txt
273+
uv pip install --system -r requirements/build.txt --index-strategy unsafe-best-match
272274

273275
#################### vLLM installation IMAGE ####################
274276

@@ -288,7 +290,7 @@ ENV UV_HTTP_TIMEOUT=500
288290
RUN --mount=type=cache,target=/root/.cache/uv \
289291
uv pip install --system mamba-ssm==2.2.4 --no-build-isolation
290292
RUN --mount=type=cache,target=/root/.cache/uv \
291-
uv pip install --system -r requirements/dev.txt
293+
uv pip install --system -r requirements/dev.txt --index-strategy unsafe-best-match
292294

293295
# install development dependencies (for testing)
294296
RUN --mount=type=cache,target=/root/.cache/uv \

requirements/build.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ninja
44
packaging
55
setuptools>=61
66
setuptools-scm>=8
7+
--extra-index-url https://download.pytorch.org/whl/cu128
78
torch==2.7.0
89
wheel
910
jinja2>=3.1.6

requirements/cpu.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-r common.txt
33

44
# Dependencies for CPUs
5+
--extra-index-url https://download.pytorch.org/whl/cpu
56
torch==2.7.0+cpu; platform_machine == "x86_64"
67
torch==2.7.0; platform_system == "Darwin"
78
torch==2.7.0; platform_machine == "ppc64le" or platform_machine == "aarch64"

requirements/cuda.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ numba == 0.61.2; python_version > '3.9'
66

77
# Dependencies for NVIDIA GPUs
88
ray[cgraph]>=2.43.0, !=2.44.* # Ray Compiled Graph, required for pipeline parallelism in V1.
9+
--extra-index-url https://download.pytorch.org/whl/cu128
910
torch==2.7.0
1011
torchaudio==2.7.0
1112
# These must be updated alongside torch

requirements/rocm-build.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Common dependencies
22
-r common.txt
33

4+
--extra-index-url https://download.pytorch.org/whl/rocm6.2.4
45
torch==2.7.0
56
torchvision==0.22.0
67
torchaudio==2.7.0

requirements/test.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ sentence-transformers # required for embedding tests
2323
soundfile # required for audio tests
2424
jiwer # required for audio tests
2525
timm # required for internvl test
26+
--extra-index-url https://download.pytorch.org/whl/cu128
2627
torch==2.7.0
2728
torchaudio==2.7.0
2829
torchvision==0.22.0

requirements/test.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile requirements/test.in -o requirements/test.txt
2+
# uv pip compile requirements/test.in -o requirements/test.txt --index-strategy unsafe-best-match
33
absl-py==2.1.0
44
# via rouge-score
55
accelerate==1.0.1
@@ -718,12 +718,12 @@ torch==2.7.0
718718
# torchvision
719719
# vector-quantize-pytorch
720720
# vocos
721-
torchaudio==2.7.0
721+
torchaudio==2.7.0+cu128
722722
# via
723723
# -r requirements/test.in
724724
# encodec
725725
# vocos
726-
torchvision==0.22.0
726+
torchvision==0.22.0+cu128
727727
# via
728728
# -r requirements/test.in
729729
# timm

tests/standalone_tests/python_only_compile.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ apt autoremove -y
1818

1919
echo 'import os; os.system("touch /tmp/changed.file")' >> vllm/__init__.py
2020

21-
VLLM_TEST_USE_PRECOMPILED_NIGHTLY_WHEEL=1 VLLM_USE_PRECOMPILED=1 pip3 install -vvv -e .
21+
VLLM_TEST_USE_PRECOMPILED_NIGHTLY_WHEEL=1 VLLM_USE_PRECOMPILED=1 pip3 install -vvv -e . \
22+
--extra-index-url https://download.pytorch.org/whl/cu128
2223

2324
# Run the script
2425
python3 -c 'import vllm'

0 commit comments

Comments
 (0)