Skip to content

Commit

Permalink
[NPU] fix transpose_value = False for NPU optimize_model=True (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
rnwang04 authored Dec 11, 2024
1 parent 588bfa2 commit 41ef497
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ 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 41ef497

Please sign in to comment.