forked from Karylab-cklius/vllm
Signed-off-by: Shengqi Chen <harry-chen@outlook.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
580 B
Bash
23 lines
580 B
Bash
#!/bin/bash
|
|
set -eux
|
|
|
|
python_executable=python$1
|
|
cuda_home=/usr/local/cuda-$2
|
|
|
|
# Update paths
|
|
PATH=${cuda_home}/bin:$PATH
|
|
LD_LIBRARY_PATH=${cuda_home}/lib64:$LD_LIBRARY_PATH
|
|
|
|
# Install requirements
|
|
$python_executable -m pip install -r requirements/build/cuda.txt -r requirements/cuda.txt
|
|
|
|
# Limit the number of parallel jobs to avoid OOM
|
|
export MAX_JOBS=1
|
|
# Make sure release wheels are built for the following architectures
|
|
export TORCH_CUDA_ARCH_LIST="7.5 8.0 8.6 8.9 9.0 10.0 12.0+PTX"
|
|
|
|
bash tools/check_repo.sh
|
|
|
|
# Build
|
|
$python_executable setup.py bdist_wheel --dist-dir=dist
|