Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysjprojects committed Jan 8, 2025
1 parent d3456e3 commit 121f851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litgpt/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ def forward(
q, k, v = qkv.split((query_size, key_size, value_size), dim=-1) # 3x(B, T, C*)

if self.config.norm_qk:
q = self.norm_q(q)
k = self.norm_k(k)
q = self.q_norm(q)
k = self.k_norm(k)

# To place the num_heads (nh) dimension right after the batch (B) dimension, the first step is to decouple the
# embedding size (C) into num_heads (nh) and head_size (hs).
Expand Down

0 comments on commit 121f851

Please sign in to comment.