From d907f70b0bc3e3aaec0859f8787d4fc71f1c98f4 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 29 Mar 2024 09:22:38 +0200 Subject: [PATCH] llama : add assert --- llama.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llama.cpp b/llama.cpp index 4cefaf0da4eef..1875e24716841 100644 --- a/llama.cpp +++ b/llama.cpp @@ -5523,6 +5523,7 @@ static void llm_build_kv_store( GGML_ASSERT(kv.size == n_ctx); // compute the transposed [n_tokens, n_embd] V matrix + assert(v_cur->ne[0] == n_embd_v_gqa && v_cur->ne[1] == n_tokens); struct ggml_tensor * v_cur_t = ggml_transpose(ctx, v_cur); cb(v_cur_t, "v_cur_t", il);