Skip to content

Commit a8f7411

Browse files
authored
Fix scaled dot product attention mask argument (#236)
* fix SADP * empty mask
1 parent c7a826d commit a8f7411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/MLX/MLXFast.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public enum MLXFast {
9494
mlx_fast_scaled_dot_product_attention(
9595
&result,
9696
queries.ctx, keys.ctx, values.ctx, scale,
97-
mask == nil ? "causal" : "", masks,
97+
"", masks,
9898
stream.ctx)
9999
return MLXArray(result)
100100
}

0 commit comments

Comments
 (0)