Skip to content

Commit

Permalink
Merge branch 'main' of github.com:containers/ai-lab-recipes into squash
Browse files Browse the repository at this point in the history
  • Loading branch information
rhatdan committed Jun 11, 2024
2 parents 885fcb6 + f90a88c commit 3c85c24
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion model_servers/common/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif

.PHONY: build
build:
podman build --squash-all $(CHAT_FORMAT:%=--build-arg CHAT_FORMAT=%) --build-arg PORT=$(PORT) -t $(IMAGE) . -f base/Containerfile
podman build --squash-all --build-arg PORT=$(PORT) -t $(IMAGE) . -f base/Containerfile

.PHONY: install
install:
Expand Down
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
1 change: 0 additions & 1 deletion model_servers/llamacpp_python/base/Containerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM registry.access.redhat.com/ubi9/python-311:1-62.1716478620
ENV CHAT_FORMAT=llama-2
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 3c85c24

Please sign in to comment.