talk.wasm : add audio pre-processing + bump memory

This commit is contained in:
Georgi Gerganov
2022-11-24 00:34:00 +02:00
parent be3b720f96
commit 37422ed733
4 changed files with 11 additions and 5 deletions

View File

@ -513,7 +513,7 @@ bool gpt2_eval(
const int n_head = hparams.n_head;
const int n_vocab = hparams.n_vocab;
static size_t buf_size = 512u*1024*1024;
static size_t buf_size = 640u*1024*1024;
static void * buf = malloc(buf_size);
if (mem_per_token > 0 && mem_per_token*N > buf_size) {