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.
This commit is contained in:
Leo Borcherding 2026-04-25 16:49:05 -07:00 committed by GitHub
parent b09aa82a3a
commit efed5c3739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: