forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
41 lines (35 loc) · 827 Bytes
/
startup.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
36
37
38
39
40
41
echo "Starting download of models"
if [[ $MODEL_SIZE == "7B" ]]; then
MODEL_SIZE=7B
elif [[ $MODEL_SIZE == "13B" ]]; then
MODEL_SIZE=13B
elif [[ $MODEL_SIZE == "30B" ]]; then
MODEL_SIZE=30B
elif [[ $MODEL_SIZE == "65B" ]]; then
MODEL_SIZE=65B
else
echo "No default model size set, defaulting to 7B"
MODEL_SIZE=7B
fi
if [[ $LLAMA == true ]]; then
npx dalai llama install $MODEL_SIZE
echo "Cleaning up"
rm /root/dalai/llama/models/7B/ggml-model-f16.bin
rm /root/dalai/llama/models/7B/*.pth
else
echo "LLAMA model set false"
fi
if [[ $MODEL_SIZE == "7B" ]]; then
MODEL_SIZE=7B
elif [[ $MODEL_SIZE == "13B" ]]; then
MODEL_SIZE=13B
else
echo "No default model size set, defaulting to 7B"
MODEL_SIZE=7B
fi
if [[ $ALPACA == true ]]; then
npx dalai alpaca install $MODEL_SIZE
else
echo "ALPACA model set false"
fi
npx dalai serve