Skip to content

Commit 97ac1a4

Browse files
committed
Fix typos (#2274)
1 parent bddae79 commit 97ac1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastchat/train/llama_flash_attn_monkey_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def forward(
7373
)
7474
output = output.view(bsz, q_len, -1)
7575
else:
76-
qvk = qkv.reshape(bsz, q_len, -1)
76+
qkv = qkv.reshape(bsz, q_len, -1)
7777
qkv, indices, cu_q_lens, max_s = unpad_input(qkv, key_padding_mask)
7878
qkv = qkv.view(-1, 3, self.num_heads, self.head_dim)
7979
output_unpad = flash_attn_varlen_qkvpacked_func(

0 commit comments

Comments
 (0)