]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix build after #3329
authorGeorgi Gerganov <redacted>
Wed, 4 Oct 2023 13:25:41 +0000 (16:25 +0300)
committerGeorgi Gerganov <redacted>
Wed, 4 Oct 2023 13:25:41 +0000 (16:25 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index f56d6ac721b0f36df7444efd342f377da147ef99..911a63988e0273d09891190fffa422e0ea82ffb5 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -13082,6 +13082,7 @@ static void ggml_compute_forward_alibi_f32(
         return;
     }
 
+    const int n_past = ((int32_t *) dst->op_params)[0]; UNUSED(n_past);
     const int n_head = ((int32_t *) dst->op_params)[1];
     float max_bias;
     memcpy(&max_bias, (int32_t *) dst->op_params + 2, sizeof(float));