Skip to content

Commit 978399d

Browse files
authored
Update loader.py
1 parent fd2b9f8 commit 978399d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

loader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def gguf_clip_loader(path):
469469
if arch == "llama" and sd[temb_key].shape == (131072, 5120):
470470
# non-standard Comfy-Org tokenizer
471471
sd["tekken_model"] = gguf_tekken_tokenizer_loader(path, sd[temb_key].shape)
472-
if arch == "gemma3":
472+
elif arch == "gemma3":
473473
sd["spiece_model"] = gguf_gemma3_tokenizer_loader(path)
474474
# See note above for T5.
475475
logging.warning(f"Dequantizing {temb_key} to prevent runtime OOM.")
@@ -489,3 +489,4 @@ def gguf_clip_loader(path):
489489
pass
490490
return sd
491491

492+

0 commit comments

Comments
 (0)