File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments