Update convert-hf-to-gguf.py

Co-authored-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Georgi Gerganov 2024-02-22 23:22:32 +02:00 committed by GitHub
parent 7ad7da6af8
commit fc69c408e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1814,7 +1814,7 @@ class GemmaModel(Model):
for name, data_torch in self.get_tensors():
# ref: https://github.com/huggingface/transformers/blob/fc37f38915372c15992b540dfcbbe00a916d4fc6/src/transformers/models/gemma/modeling_gemma.py#L89
if name.endswith(("norm.weight")):
if name.endswith("norm.weight"):
data_torch = data_torch + 1
old_dtype = data_torch.dtype