Skip to content

Commit

Permalink
chore: add alias from llama-2 to llama2
Browse files Browse the repository at this point in the history
fixes #836
  • Loading branch information
benoitf committed Feb 19, 2025
1 parent 51c85a5 commit 699c206
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions container-images/scripts/llama-server.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash
if [ -n "${MODEL_CHAT_FORMAT}" ]; then

# handle the case of llama.cpp python chat format
if [ "${MODEL_CHAT_FORMAT}" = "llama-2" ]; then
MODEL_CHAT_FORMAT="llama2"
fi
CHAT_FORMAT="--chat_template ${MODEL_CHAT_FORMAT}"
fi

Expand Down

0 comments on commit 699c206

Please sign in to comment.