Skip to content

Commit

Permalink
Fix logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 25, 2023
1 parent 01b83e9 commit e81133c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ def __init__(self, config, prefix, weights):
rotary_ndims = int(self.head_size * rotary_pct)
self.rotary_emb = PositionRotaryEmbedding.load(prefix=f"{prefix}.rotary_emb", weights=weights)

dtype = weights.dtype
weights.dtype = torch.float32
self.rotary_emb.inv_freq = nn.Parameter(
weights.get_tensor(f"{prefix}.rotary_emb.inv_freq")
)
weights.dtype = dtype

self.softmax_scale = self.head_size ** (-0.5)

self.query_key_value = load_qkv(
Expand Down

0 comments on commit e81133c

Please sign in to comment.