Skip to content

Commit

Permalink
Repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 24, 2024
1 parent b4dba1a commit f34fdb9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mistralrs-core/src/vision_models/mllama/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,12 @@ impl MLlamaTextCrossAttention {
&k.contiguous()?.to_dtype(DType::F32)?,
&v.contiguous()?.to_dtype(DType::F32)?,
attention_mask
.map(|m| m.to_dtype(DType::F32).unwrap())
.map(|m| {
m.to_dtype(DType::F32)
.unwrap()
.repeat((1, self.num_heads, 1, 1))
.unwrap()
})
.as_ref(),
None,
&self.sdpa_params,
Expand Down

0 comments on commit f34fdb9

Please sign in to comment.