-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-gpu.sh
More file actions
executable file
·34 lines (25 loc) · 854 Bytes
/
setup-gpu.sh
File metadata and controls
executable file
·34 lines (25 loc) · 854 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
#!/bin/bash
set -e
set -o pipefail
# This projects setup a ubuntu 22.04 instance with a vLLM development environment.
if [[ "$USER" -ne "ubuntu" ]]; then
echo "Please run as ubuntu"
exit 1
fi
echo "Changing to home directory"
cd ~
echo "Set hostname to vllm-dev"
sudo hostnamectl set-hostname vllm-dev
echo "Installing development dependencies"
sudo apt-get update -y
sudo apt-get install -y gcc-12 g++-12 libnuma-dev python3-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10 --slave /usr/bin/g++ g++ /usr/bin/g++-12
echo "Installing uv"
curl -LsSf https://astral.sh/uv/install.sh | sh
uv version
echo "Create venv for vllm"
uv venv venv --python 3.12 --seed
echo "Cloning vllm project"
git clone https://github.com/vllm-project/vllm.git
echo "Cloning LMBenchmark"
git clone https://github.com/lmcache/LMBenchmark.git