Skip to content

Commit 0859000

Browse files
authored
Fix nccl blocking case (#1228)
1 parent 905e112 commit 0859000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mistralrs-core/src/attention.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ impl Sdpa {
340340
let k = repeat_kv(k.clone(), sdpa_params.n_kv_groups)?;
341341
let v = repeat_kv(v.clone(), sdpa_params.n_kv_groups)?;
342342

343-
if mask.is_some_and(|x| x.rank() == 2) {
343+
if mask.is_some_and(|x| x.rank() == 2) || mistralrs_quant::distributed::use_nccl() {
344344
return naive_sdpa(q, &k, &v, mask, sdpa_params);
345345
}
346346

0 commit comments

Comments
 (0)