Skip to content

Commit

Permalink
fix (#32162)
Browse files Browse the repository at this point in the history
  • Loading branch information
gante authored and MHRDYN7 committed Jul 23, 2024
1 parent e17e836 commit 955e9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/llama/modeling_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(
else:
# BC: "rope_type" was originally "type"
if config.rope_scaling is not None:
self.rope_type = config.rope_scaling.get("rope_type", config.rope_scaling["type"])
self.rope_type = config.rope_scaling.get("rope_type", config.rope_scaling.get("type"))
else:
self.rope_type = "default"
self.max_seq_len_cached = config.max_position_embeddings
Expand Down

0 comments on commit 955e9b9

Please sign in to comment.