mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 10:24:35 +00:00
ggml : fix bug in ggml_alibi
This commit is contained in:
parent
248367605e
commit
5d1830b99d
2
ggml.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user