forked from ViperX7/Alpaca-Turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·40 lines (36 loc) · 1.29 KB
/
start.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
#!/bin/bash
clear
echo ""
echo " / \ | |_ __ __ _ ___ __ _ |_ _| _ _ __| |__ ___ "
echo ' / _ \ | | |_ \ / _` |/ __/ _` | | || | | | |__| |_ \ / _ \ '
echo " / ___ \| | |_) | (_| | (_| (_| | | || |_| | | | |_) | (_) |"
echo "/_/ \_\_| .__/ \__,_|\___\__,_| |_| \__,_|_| |_.__/ \___/ "
echo " |_| "
echo ""
echo ""
echo "https://github.com/ViperX7/Alpaca-Turbo/"
echo ""
echo ""
echo ""
echo ""
if [ ! -f "ggml-alpaca-7b-q4.bin" ]; then
read -p "The model has not been downloaded. Would you like to download it now? (y/n)" choice
case "$choice" in
y | Y) wget https://huggingface.co/Sosaka/Alpaca-native-4bit-ggml/resolve/main/ggml-alpaca-7b-q4.bin ;;
n | N) ;;
*) echo "Invalid choice. Please enter y or n." ;;
esac
fi
filesize=$(stat -c%s "ggml-alpaca-7b-q4.bin")
if [ $filesize -le 3221225472 ]; then
read -p "The file size is less than or equal to 3GB. Do you want to redownload and delete the older file? (y/n)" choice
case "$choice" in
y | Y)
rm ggml-alpaca-7b-q4.bin
wget https://huggingface.co/Sosaka/Alpaca-native-4bit-ggml/resolve/main/ggml-alpaca-7b-q4.bin
;;
n | N) exit ;;
*) echo "Invalid choice. Please enter y or n." ;;
esac
fi
docker-compose up