Update convert-hf-to-gguf.py

Co-authored-by: Aarni Koskela <akx@iki.fi>
This commit is contained in:
Georgi Gerganov 2024-02-22 11:27:32 +02:00 committed by GitHub
parent 216386f3f5
commit 7ad7da6af8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -279,7 +279,7 @@ class Model:
return gguf.MODEL_ARCH.BERT
if arch == "NomicBertModel":
return gguf.MODEL_ARCH.NOMIC_BERT
if arch in "GemmaForCausalLM":
if arch == "GemmaForCausalLM":
return gguf.MODEL_ARCH.GEMMA
raise NotImplementedError(f'Architecture "{arch}" not supported!')