-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·36 lines (32 loc) · 762 Bytes
/
build.sh
File metadata and controls
executable file
·36 lines (32 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
set -e
if [[ $(pwd) != *"vllm"* ]] ; then
echo "Must be done in a vllm folder"
exit 1
fi
if command -v nvidia-smi ; then
IS_CUDA=1
elif command -v rocm-smi ; then
IS_ROCM=1
else
echo "No GPU found"
exit 1
fi
prefix_arg=
if [[ $(whoami) != "root" ]] ; then
prefix_arg=" --prefix ~/.local"
fi
if [[ $IS_ROCM == 1 ]] ; then
if [[ -f requirements-rocm.txt ]] ; then
pip install -U -r requirements-rocm.txt
elif [[ -f requirements/rocm.txt ]] ; then
pip install -U -r requirements/rocm.txt
else
echo "No requirements-rocm.txt found"
exit 1
fi
pip install 'ray<2.45'
pip install 'setuptools<80'
pip install setuptools_scm
fi
python3 setup.py develop ${prefix_arg}