Skip to content

Commit

Permalink
Merge pull request #340 from EricLBuehler/fix_mistral_repeat
Browse files Browse the repository at this point in the history
Fix mistral model repeat kv
  • Loading branch information
EricLBuehler committed May 22, 2024
2 parents 6697d6c + f367820 commit ea8dbec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mistralrs-core/src/models/mistral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ impl Attention {
)?;

let k = repeat_kv(k, self.num_kv_groups)?.contiguous()?;
let v = repeat_kv(v, self.num_kv_groups)?.contiguous()?;

let mut attn_output = ScaledDotProductAttention.run_attention(
&q,
Expand Down

0 comments on commit ea8dbec

Please sign in to comment.