mirror of
https://github.com/unslothai/unsloth.git
synced 2026-04-26 10:31:03 +00:00
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:
parent
b09aa82a3a
commit
efed5c3739
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue