Skip to content

Commit

Permalink
Bump memory buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 11, 2023
1 parent 0c68033 commit 7d9ed7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ bool llama_eval(

const int d_key = n_embd/n_head;

static size_t buf_size = 256u*1024*1024;
static size_t buf_size = 512u*1024*1024;
static void * buf = malloc(buf_size);

if (mem_per_token > 0 && mem_per_token*N > buf_size) {
Expand Down

0 comments on commit 7d9ed7b

Please sign in to comment.