File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,10 @@ jobs:
18
18
- name : Set VLLM_TARGET_DEVICE to CPU for pre-commit checks
19
19
run : echo "VLLM_TARGET_DEVICE=cpu" >> $GITHUB_ENV
20
20
- 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:
25
21
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' ' ')
31
25
- name : Install vLLM Project and Dev Dependencies
32
26
run : pip install -e ".[dev]"
33
27
You can’t perform that action at this time.
0 commit comments