From efed5c37394a144349cd9b1ea525e132e04584e5 Mon Sep 17 00:00:00 2001 From: Leo Borcherding Date: Sat, 25 Apr 2026 16:49:05 -0700 Subject: [PATCH] fix(studio): use endswith for mmproj F16 variant selection (#5184) "f16" in filename matched BF16 files because "bf16" contains "f16" as a substring. Switch to endswith("-f16.gguf") for an exact match. --- studio/backend/core/inference/llama_cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py index 33722f103..c1a37e2fa 100644 --- a/studio/backend/core/inference/llama_cpp.py +++ b/studio/backend/core/inference/llama_cpp.py @@ -1339,7 +1339,7 @@ class LlamaCppBackend: # Prefer F16 variant target = None for f in mmproj_files: - if "f16" in f.lower(): + if f.lower().endswith("-f16.gguf"): target = f break if target is None: