Skip to content

Commit

Permalink
fix for indexing error from token/embeddings mismatch (#2257)
Browse files Browse the repository at this point in the history
Co-authored-by: jwong <[email protected]>
  • Loading branch information
jwongTensora and jwong authored Jan 15, 2025
1 parent cba5a45 commit 8606093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ def load_model(self) -> Tuple[PreTrainedModel, Optional[PeftConfig]]:
)
if (
hasattr(self.model, "get_input_embeddings")
and self.model.get_input_embeddings().num_embeddings < embeddings_len
and self.model.get_input_embeddings().num_embeddings != embeddings_len
):
resize_kwargs = {}
if self.cfg.mean_resizing_embeddings is not None:
Expand Down

0 comments on commit 8606093

Please sign in to comment.