ggml : fix bug in ggml_alibi

This commit is contained in:
Georgi Gerganov 2023-05-29 19:30:49 +03:00
parent 5d769f35b3
commit 6ae16e9c4f
1 changed files with 1 additions and 1 deletions

2
ggml.c
View File

@ -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;