Skip to content

Commit

Permalink
ggml : fix bug in ggml_alibi
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed May 29, 2023
1 parent 2483676 commit 5d1830b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d1830b

Please sign in to comment.