From c42b80ebbd54d46c981d8194e427cfec65013fa6 Mon Sep 17 00:00:00 2001 From: mags0ft Date: Wed, 19 Nov 2025 18:11:36 +0100 Subject: [PATCH] add default behavior for undefined LLAMA_SERVER_CMD_ARGS --- src/start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/start.sh b/src/start.sh index 7233d81..0616006 100644 --- a/src/start.sh +++ b/src/start.sh @@ -14,6 +14,12 @@ cleanup() { exit 0 } +# check if $LLAMA_SERVER_CMD_ARGS is set +if [ -z "$LLAMA_SERVER_CMD_ARGS" ]; then + echo "start.sh: Warning: LLAMA_SERVER_CMD_ARGS is not set. Defaulting to -hf unsloth/gemma-3-270m-it-GGUF:Q6_K --ctx-size 4096" + LLAMA_SERVER_CMD_ARGS="-hf unsloth/gemma-3-270m-it-GGUF:Q6_K --ctx-size 4096" +fi + # check if the substring /workspace is in LLAMA_SERVER_CMD_ARGS if [[ "$LLAMA_SERVER_CMD_ARGS" != *"/workspace"* ]]; then echo "start.sh: Tip: For reduced downloads and faster startup times, consider using a model stored in a network volume mounted to /workspace."