Skip to content

Commit b0778a6

Browse files
committed
fix
1 parent b1a1562 commit b0778a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/llama.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,9 +604,8 @@ static struct ggml_tensor * llm_build_kqv(
604604
ggml_flash_attn_ext_set_prec(cur, GGML_PREC_F32);
605605

606606
if (n_embd_head_v < n_embd_head_k) {
607-
cur = ggml_cont(ctx, ggml_view_3d(ctx, ggml_cont(ctx, cur), n_embd_head_v, n_head, n_tokens,
607+
cur = ggml_cont(ctx, ggml_view_2d(ctx, ggml_cont(ctx, cur), n_embd_head_v*n_head, n_tokens,
608608
ggml_element_size(cur) * n_embd_head_v_out,
609-
ggml_element_size(cur) * n_embd_head_v_out * n_head,
610609
0));
611610
}
612611

0 commit comments

Comments
 (0)