-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdebian.sh
35 lines (31 loc) · 824 Bytes
/
debian.sh
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
# Install OS dependencies
sudo apt-get update
sudo apt-get install -y \
software-properties-common
sudo apt-get update
sudo apt-get install -y \
curl \
git
# Install Python
sudo apt-get install -y \
python3.11 \
python3-pip
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install FastChat
# https://github.com/lm-sys/FastChat#method-2-from-source
git clone https://github.com/lm-sys/FastChat.git
cd FastChat
pip3 install --upgrade pip
pip3 install -e .
# FastChat Model
# https://github.com/lm-sys/FastChat#vicuna-13b
cd ..
mkdir models
cd models
MODELS_PATH = $(echo $PWD)
cd ../FastChat
python3 -m fastchat.model.apply_delta \
--base-model-path $MODELS_PATH/llama-13b \
--target-model-path $MODELS_PATH/output/vicuna-13b \
--delta-path lmsys/vicuna-13b-delta-v1.1