Skip to content

Commit

Permalink
Fix typos (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Aug 21, 2023
1 parent bddae79 commit 97ac1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastchat/train/llama_flash_attn_monkey_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def forward(
)
output = output.view(bsz, q_len, -1)
else:
qvk = qkv.reshape(bsz, q_len, -1)
qkv = qkv.reshape(bsz, q_len, -1)
qkv, indices, cu_q_lens, max_s = unpad_input(qkv, key_padding_mask)
qkv = qkv.view(-1, 3, self.num_heads, self.head_dim)
output_unpad = flash_attn_varlen_qkvpacked_func(
Expand Down

0 comments on commit 97ac1a4

Please sign in to comment.