From af1a096bf87e7b17f9ea53fae8ad45a5e3caf09f Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 9 Dec 2023 12:07:39 +0200 Subject: [PATCH] llama : fix cur -> cur_expert --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index e4d1a530a..3320c781f 100644 --- a/llama.cpp +++ b/llama.cpp @@ -4269,7 +4269,7 @@ struct llm_build_context { ggml_mul_mat_id(ctx0, ffn_gate_exp, selected_experts, i, cur))); // [n_tokens, n_embd] cur_expert = ggml_mul_mat_id(ctx0, ffn_down_exp, selected_experts, i, cur_expert); // [n_tokens, n_embd] - cur_expert = ggml_mul(ctx0, cur, + cur_expert = ggml_mul(ctx0, cur_expert, ggml_view_2d(ctx0, weights, 1, n_tokens, weights->nb[1], i*weights->nb[0])); if (i == 0) {