Skip to content

Commit

Permalink
fix rope type
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Oct 28, 2024
1 parent 64a938d commit dc3fd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdeploy/pytorch/nn/rotary_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _get_longrope_parameters(config: PretrainedConfig):
params.short_factor = rope_scaling.long_factor
params.original_max_position_embeddings = rope_scaling.get(
'original_max_position_embeddings', config.max_position_embeddings)
return dict(emb_type=RopeType.Yarn,
return dict(emb_type=RopeType.LongRoPEScaling,
scaling_factor=scaling_factor,
longrope_params=params)

Expand Down

0 comments on commit dc3fd8d

Please sign in to comment.