From 5d1830b99dfd85bb6279adb4dd94aa444afd5b5e Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 29 May 2023 19:30:49 +0300 Subject: [PATCH] ggml : fix bug in ggml_alibi --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 07ea92a..b4570eb 100644 --- a/ggml.c +++ b/ggml.c @@ -6317,7 +6317,7 @@ struct ggml_tensor * ggml_alibi( ggml_scratch_save(ctx); - struct ggml_tensor * b = ggml_new_tensor_1d(ctx, GGML_TYPE_I32, 2); + struct ggml_tensor * b = ggml_new_tensor_1d(ctx, GGML_TYPE_I32, 3); ((int32_t *) b->data)[0] = n_past; ((int32_t *) b->data)[1] = n_head;