Skip to content

Commit 81d3265

Browse files
committed
- slim build down targeting colab env
- enable pytorch nightly installation in ci
1 parent 16b24e7 commit 81d3265

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/publish.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
name: Create Release
55

66
on:
7+
workflow_dispatch:
78
push:
89
tags:
910
- v*
@@ -48,9 +49,9 @@ jobs:
4849
fail-fast: false
4950
matrix:
5051
os: ['ubuntu-20.04']
51-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
52-
pytorch-version: ['2.4.0'] # Must be the most recent version that meets requirements-cuda.txt.
53-
cuda-version: ['11.8', '12.1']
52+
python-version: ['3.10']
53+
pytorch-version: ['nightly'] # Must be the most recent version that meets requirements-cuda.txt.
54+
cuda-version: ['12.1']
5455

5556
steps:
5657
- name: Checkout

.github/workflows/scripts/build.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ $python_executable -m pip install -r requirements-cuda.txt
1414
# Limit the number of parallel jobs to avoid OOM
1515
export MAX_JOBS=1
1616
# Make sure release wheels are built for the following architectures
17-
export TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6 8.9 9.0+PTX"
18-
export VLLM_FA_CMAKE_GPU_ARCHES="80-real;90-real"
17+
export TORCH_CUDA_ARCH_LIST="7.5"
1918
# Build
2019
$python_executable setup.py bdist_wheel --dist-dir=dist

.github/workflows/scripts/pytorch-install.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ cuda_version=$3
66

77
# Install torch
88
$python_executable -m pip install numpy pyyaml scipy ipython mkl mkl-include ninja cython typing pandas typing-extensions dataclasses setuptools && conda clean -ya
9-
$python_executable -m pip install torch==${pytorch_version}+cu${cuda_version//./} --extra-index-url https://download.pytorch.org/whl/cu${cuda_version//./}
109

10+
if [[ $pytorch_version == "nightly" ]]; then
11+
$python_executable -m pip install torch --pre --upgrade --index-url https://download.pytorch.org/whl/nightly/cu121
12+
else
13+
$python_executable -m pip install torch==${pytorch_version}+cu${cuda_version//./} --extra-index-url https://download.pytorch.org/whl/cu${cuda_version//./}
14+
fi
1115
# Print version information
1216
$python_executable --version
1317
$python_executable -c "import torch; print('PyTorch:', torch.__version__)"

0 commit comments

Comments
 (0)