Skip to content

Commit c894862

Browse files
[CI] Don't fetch PyTorch for building vLLM upstream (#39)
This PR shortens the CI execution time significantly by using preinstalled PyTorch during vLLM build. --------- Signed-off-by: Konrad Zawora <[email protected]>
1 parent fcbe490 commit c894862

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/hourly-ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ jobs:
9494
ENV PT_HPU_ENABLE_LAZY_COLLECTIVES=true
9595
9696
# Ensure setup.py install works as expected
97-
RUN VLLM_TARGET_DEVICE=empty pip install .
97+
RUN bash -c 'pip install -r <(sed "/^[torch]/d" requirements/build.txt)'
98+
RUN VLLM_TARGET_DEVICE=empty pip install --no-build-isolation .
9899
99100
# install development dependencies (for testing)
100101
RUN python3 -m pip install -e tests/vllm_test_utils

.github/workflows/pre-merge.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
ENV PT_HPU_ENABLE_LAZY_COLLECTIVES=true
5454
5555
# Ensure setup.py install works as expected
56-
RUN VLLM_TARGET_DEVICE=empty pip install .
56+
RUN bash -c 'pip install -r <(sed "/^[torch]/d" requirements/build.txt)'
57+
RUN VLLM_TARGET_DEVICE=empty pip install --no-build-isolation .
5758
5859
# install development dependencies (for testing)
5960
RUN python3 -m pip install -e tests/vllm_test_utils

0 commit comments

Comments
 (0)