Skip to content

Add mistral-chat-7b preset for llama-server #13348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added examples/preset-mistral-chat.sh
Empty file.
30 changes: 30 additions & 0 deletions examples/preset-mistral-chat.sh.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# Mistral Chat Preset for llama-server
if [[ "$preset" == "mistral-chat-7b" ]]; then
MODEL_REPO="TheBloke/Mistral-7B-Instruct-v0.2-GGUF"
MODEL_FILE="mistral-7b-instruct-v0.2.Q4_K_M.gguf"
CONTEXT_SIZE=4096
BATCH_SIZE=512
OTHER_FLAGS="--chat"

echo "Starting llama-server with Mistral 7B Chat Preset..."
./llama-server -m $MODEL_REPO/$MODEL_FILE --context-size $CONTEXT_SIZE -b $BATCH_SIZE $OTHER_FLAGS
fi

chmod +x preset-mistral-chat.sh

./preset-mistral-chat.sh --preset mistral-chat-7b

git add preset-mistral-chat.sh

git commit -m "Add mistral-chat-7b preset for llama-server"

git push origin add-mistral-chat-preset

git branch -r



git branch