Skip to content

Commit cfd64f7

Browse files
authored
Create start.sh
1 parent f0d4d17 commit cfd64f7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

start.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# إنشاء مجلد النماذج إذا لم يكن موجود
4+
mkdir -p models
5+
6+
# تحميل النموذج من المستودع الآخر إذا لم يكن موجود
7+
if [ ! -f models/tinyllama-1.1b-chat-v1.0.Q8_0.gguf ]; then
8+
echo "Downloading model..."
9+
wget -O models/tinyllama-1.1b-chat-v1.0.Q8_0.gguf \
10+
https://raw.githubusercontent.com/issa261/github-workflows-download-model.yml/main/tinyllama-1.1b-chat-v1.0.Q8_0.gguf
11+
fi
12+
13+
# تشغيل السيرفر
14+
./server -m models/tinyllama-1.1b-chat-v1.0.Q8_0.gguf -c 512 -n 256 --host 0.0.0.0 --port 8080

0 commit comments

Comments
 (0)