Skip to content

Commit

Permalink
fix phi3 8k
Browse files Browse the repository at this point in the history
  • Loading branch information
minhthuc2502 committed May 17, 2024
1 parent 7e5de1d commit e342e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ctranslate2/converters/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ def get_model_spec(self, model):
rope_scaling = getattr(model.config, "rope_scaling", None)
if rope_scaling:
rotary_scaling_type = _SUPPORTED_ROPE_SCALING.get(rope_scaling["type"])
rotary_scaling_factor = 1
rotary_scaling_factor = rope_scaling.get("factor", 1)

if rotary_scaling_type is None:
raise NotImplementedError(
Expand Down

0 comments on commit e342e98

Please sign in to comment.