llama: fix bigctx double-profile conflict (llama_server name collision)
This commit is contained in:
11
llama
11
llama
@@ -110,9 +110,14 @@ stop_running() {
|
|||||||
|
|
||||||
build_profiles_flag() {
|
build_profiles_flag() {
|
||||||
local model="$1" bigctx="$2" webui="$3"
|
local model="$1" bigctx="$2" webui="$3"
|
||||||
local profiles=("$model")
|
local profiles=()
|
||||||
[[ "$bigctx" == "1" ]] && profiles+=("${model}-bigctx")
|
# bigctx is a replacement for the base profile, not an addition
|
||||||
[[ "$webui" == "1" ]] && profiles+=("webui")
|
if [[ "$bigctx" == "1" ]]; then
|
||||||
|
profiles+=("${model}-bigctx")
|
||||||
|
else
|
||||||
|
profiles+=("$model")
|
||||||
|
fi
|
||||||
|
[[ "$webui" == "1" ]] && profiles+=("webui")
|
||||||
# docker compose --profile a --profile b
|
# docker compose --profile a --profile b
|
||||||
local flags=""
|
local flags=""
|
||||||
for p in "${profiles[@]}"; do flags+="--profile $p "; done
|
for p in "${profiles[@]}"; do flags+="--profile $p "; done
|
||||||
|
|||||||
Reference in New Issue
Block a user