Update convert-hf-to-gguf.py
Co-authored-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
7ad7da6af8
commit
fc69c408e8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue