Skip to content

Commit

Permalink
defaulting no option but allow override chat format
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <grpereir@redhat.com>
  • Loading branch information
Gregory-Pereira committed Jun 7, 2024
1 parent e959cd4 commit 9882e59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion model_servers/llamacpp_python/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP := llamacpp_python
PORT ?= 8001
CHAT_FORMAT ?= llama-2
CHAT_FORMAT ?=

include ../common/Makefile.common

Expand Down
2 changes: 1 addition & 1 deletion model_servers/llamacpp_python/base/Containerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM registry.access.redhat.com/ubi9/python-311:1-62.1716478620
ENV CHAT_FORMAT=llama-2
ENV CHAT_FORMAT=
WORKDIR /locallm
COPY src .
USER root
Expand Down
2 changes: 1 addition & 1 deletion model_servers/llamacpp_python/src/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ ${MODEL_PATH} ]; then
--port ${PORT:=8001} \
--n_gpu_layers ${GPU_LAYERS:=0} \
--clip_model_path ${CLIP_MODEL_PATH:=None} \
--chat_format ${CHAT_FORMAT:="llama-2"} \
--chat_format ${CHAT_FORMAT:=None} \
--interrupt_requests ${INTERRUPT_REQUESTS:=False}
exit 0
fi
Expand Down

0 comments on commit 9882e59

Please sign in to comment.