Skip to content

Commit

Permalink
Update docker-entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
3x3cut0r authored Dec 7, 2023
1 parent 9f867db commit 679df56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama-cpp-python/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
############################

# download default model
if [ "$DOWNLOAD_DEFAULT_MODEL" = "True" ] || [ "$DOWNLOAD_DEFAULT_MODEL" = "true" ]; then
if [ "${DOWNLOAD_DEFAULT_MODEL,,}" = "true" ]; then
# download DEFAULT_MODEL only, if not exist
if [ ! -e "/model/Llama-2-7b-Chat-GGUF/${DEFAULT_MODEL}" ]; then
echo -e "\nINFO: start downloading default model:\nhttps://huggingface.co/TheBloke/Llama-2-7b-Chat-GGUF/resolve/main/${DEFAULT_MODEL}\n"
Expand Down Expand Up @@ -100,4 +100,4 @@ else
fi
fi

exec runsvdir /runit-services
exec runsvdir /runit-services

0 comments on commit 679df56

Please sign in to comment.