Skip to content

Commit 8f86047

Browse files
committed
fix for pre-commit failed job - Error: vllm/executor/ray_distributed_executor.py:531: error: Library stubs not installed for "pkg_resources" (6)
Signed-off-by: Alexandru Badea <george-alexandru.badea@ionos.com>
1 parent 8205e35 commit 8f86047

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,10 @@ jobs:
1818
- name: Set VLLM_TARGET_DEVICE to CPU for pre-commit checks
1919
run: echo "VLLM_TARGET_DEVICE=cpu" >> $GITHUB_ENV
2020
- name: Install PyTorch for CPU
21-
# Explicitly install the CPU version of PyTorch from their stable index.
22-
# This ensures pip finds the correct wheel without the problematic '+cpu' tag.
23-
# Check PyTorch's official website for the exact command for torch==2.6.0 CPU
24-
# As of my last update, it would typically be:
2521
run: pip install torch==2.6.0 --index-url https://download.pytorch.org/whl/cpu
26-
- name: Install vLLM Build Dependencies (excluding torch, as it's already installed)
27-
# We need to filter out torch from build.txt for this step
28-
# A simple way is to use grep or sed, or if build.txt is small, just list others.
29-
# Given build.txt has `torch==2.6.0`, we'll exclude it here.
30-
run: pip install $(grep -v 'torch==' requirements/build.txt | tr '\n' ' ')
22+
- name: Install vLLM Build Dependencies (excluding torch and comments)
23+
# This command filters out lines with 'torch==' AND lines starting with '#'
24+
run: pip install $(grep -v 'torch==' requirements/build.txt | grep -v '^#' | tr '\n' ' ')
3125
- name: Install vLLM Project and Dev Dependencies
3226
run: pip install -e ".[dev]"
3327

0 commit comments

Comments
 (0)