Skip to content

Commit cf14b2e

Browse files
Bhuvana KBhuvana K
authored andcommitted
Add mistral-chat-7b preset script for llama-server
1 parent 141a908 commit cf14b2e

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

examples/preset-mistral-chat.sh

Whitespace-only changes.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Mistral Chat Preset for llama-server
4+
if [[ "$preset" == "mistral-chat-7b" ]]; then
5+
MODEL_REPO="TheBloke/Mistral-7B-Instruct-v0.2-GGUF"
6+
MODEL_FILE="mistral-7b-instruct-v0.2.Q4_K_M.gguf"
7+
CONTEXT_SIZE=4096
8+
BATCH_SIZE=512
9+
OTHER_FLAGS="--chat"
10+
11+
echo "Starting llama-server with Mistral 7B Chat Preset..."
12+
./llama-server -m $MODEL_REPO/$MODEL_FILE --context-size $CONTEXT_SIZE -b $BATCH_SIZE $OTHER_FLAGS
13+
fi
14+
15+
chmod +x preset-mistral-chat.sh
16+
17+
./preset-mistral-chat.sh --preset mistral-chat-7b
18+
19+
git add preset-mistral-chat.sh
20+
21+
git commit -m "Add mistral-chat-7b preset for llama-server"
22+
23+
git push origin add-mistral-chat-preset
24+
25+
git branch -r
26+
27+
28+
29+
git branch
30+

0 commit comments

Comments
 (0)