]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix the rope fix (513f8619535a64fa9ace808cdcbcf66211535f5c)
authorGeorgi Gerganov <redacted>
Fri, 21 Jul 2023 12:16:55 +0000 (15:16 +0300)
committerGeorgi Gerganov <redacted>
Fri, 21 Jul 2023 12:16:55 +0000 (15:16 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index 7ecabc5de8bb8b3d7ea4f7a583d0062bc275ebe2..6055da867cb27ed1e3df51c0bae84e04571c28ab 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -12379,7 +12379,7 @@ static void ggml_compute_forward_rope_back_f32(
         const struct ggml_tensor * src1,
         struct ggml_tensor * dst) {
     assert(src1->type == GGML_TYPE_I32);
-    assert(ggml_nelements(src1) == 3);
+    assert(ggml_nelements(src1) == 4);
 
     if (params->type == GGML_TASK_INIT || params->type == GGML_TASK_FINALIZE) {
         return;