Skip to content

Commit

Permalink
Fix aya-23 conversion scripts (#7539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Galunid authored May 26, 2024
1 parent c429b33 commit 32a2821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2395,7 +2395,8 @@ def __init__(self, *args, **kwargs):

# max_position_embeddings = 8192 in config.json but model was actually
# trained on 128k context length
self.hparams["max_position_embeddings"] = self.hparams["model_max_length"]
# aya-23 models don't have model_max_length specified
self.hparams["max_position_embeddings"] = self.find_hparam(["model_max_length", "max_position_embeddings"])

def set_gguf_parameters(self):
super().set_gguf_parameters()
Expand Down

0 comments on commit 32a2821

Please sign in to comment.