Skip to content

Commit

Permalink
further fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rnwang04 committed Dec 13, 2024
1 parent 509bdb4 commit d2199db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def attention(self,
value_states = new_value_states
else:
value_states = self.transpose(value_states, [0, 2, 1, 3])
new_value_states = value_states

query_states, key_states = self.apply_rotary_pos_emb(
q=query_states,
Expand All @@ -225,7 +226,6 @@ def attention(self,
head_dim=head_dim,
)
new_key_states = key_states
new_value_states = value_states

if mode == "decode":
key_states = self.concat(past_key, key_states, axis=-2)
Expand Down

0 comments on commit d2199db

Please sign in to comment.