-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodel.gguf
More file actions
53 lines (45 loc) · 1.2 KB
/
model.gguf
File metadata and controls
53 lines (45 loc) · 1.2 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
# Ensure token exists
if [ -z "$HF_TOKEN" ]; then
echo "❌ HF_TOKEN not found. Run: export HF_TOKEN=your_token"
exit 1
fi
echo "📥 Select a model to download:"
echo "1) TinyLlama (1.1B, Q4_K_M) — fastest"
echo "2) CodeLlama 7B (Q4_K_M) — best quality"
echo "3) Phi-2 (2.7B, Q4_K_M) — balance of size & IQ"
echo "4) Mistral 7B (Q4_K_M) — chat-style general model"
echo "5) Cancel"
read -rp "Enter a number [1-5]: " choice
case "$choice" in
1)
MODEL_NAME="TinyLlama/TinyLlama-1.1B-Chat-v1.0-GGUF"
FILE="tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf"
;;
2)
MODEL_NAME="TheBloke/CodeLlama-7B-Instruct-GGUF"
FILE="codellama-7b-instruct.Q4_K_M.gguf"
;;
3)
MODEL_NAME="TheBloke/phi-2-GGUF"
FILE="phi-2.Q4_K_M.gguf"
;;
4)
MODEL_NAME="TheBloke/Mistral-7B-Instruct-v0.1-GGUF"
FILE="mistral-7b-instruct-v0.1.Q4_K_M.gguf"
;;
5)
echo "❌ Cancelled."
exit 0
;;
*)
echo "❌ Invalid choice"
exit 1
;;
esac
echo "🔗 Downloading $FILE from $MODEL_NAME..."
wget --header="Authorization: Bearer $HF_TOKEN" \
"https://huggingface.co/$MODEL_NAME/resolve/main/$FILE" \
-O model.gguf
echo "✅ model.gguf downloaded successfully!"