Skip to content

Commit

Permalink
fix head dim in rope (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
vince62s authored Nov 1, 2024
1 parent 146c8f9 commit 39d0396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eole/modules/rope.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, model_config):
"""
super(RotaryPosition, self).__init__()
self.model_config = model_config
self.dim_per_head = model_config.hidden_size // model_config.heads
self.dim_per_head = model_config.dim_per_head
if model_config.rope_config.rotary_dim == 0:
rotary_dim = self.dim_per_head
else:
Expand Down

0 comments on commit 39d0396

Please sign in to comment.