Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
POI-WX committed Mar 20, 2024
1 parent 90c64e8 commit e4052a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeplink_ext/internlm_ops/mha/fa_qkvpacked_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DeepLinkFlashAttentionQKVPackedFunc(torch.autograd.Function):
def forward(ctx, qkv, dropout_p, softmax_scale, causal):
if softmax_scale is None:
softmax_scale = qkv.shape[-1] ** (-0.5)
head_num = q.shape[2]
head_num = qkv.shape[3]
(
out,
attention_mask,
Expand Down

0 comments on commit e4052a9

Please sign in to comment.