From 0618078937b1a71f55f12d541c8b92709f5caf56 Mon Sep 17 00:00:00 2001 From: Giancarmine Salucci Date: Wed, 6 May 2026 17:41:20 +0200 Subject: [PATCH] llama: fix bigctx double-profile conflict (llama_server name collision) --- llama | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/llama b/llama index 250dcce..f1764c8 100755 --- a/llama +++ b/llama @@ -110,9 +110,14 @@ stop_running() { build_profiles_flag() { local model="$1" bigctx="$2" webui="$3" - local profiles=("$model") - [[ "$bigctx" == "1" ]] && profiles+=("${model}-bigctx") - [[ "$webui" == "1" ]] && profiles+=("webui") + local profiles=() + # bigctx is a replacement for the base profile, not an addition + if [[ "$bigctx" == "1" ]]; then + profiles+=("${model}-bigctx") + else + profiles+=("$model") + fi + [[ "$webui" == "1" ]] && profiles+=("webui") # docker compose --profile a --profile b local flags="" for p in "${profiles[@]}"; do flags+="--profile $p "; done