embeddings : fix llama_batch_init arg

This commit is contained in:
Georgi Gerganov 2024-03-04 14:06:00 +02:00
parent eb42596277
commit 9bbeb0f110
No known key found for this signature in database
GPG Key ID: BF970631944C16B7

View File

@ -136,7 +136,7 @@ int main(int argc, char ** argv) {
// initialize batch
const int n_prompts = prompts.size();
struct llama_batch batch = llama_batch_init(n_batch, 0, n_prompts);
struct llama_batch batch = llama_batch_init(n_batch, 0, 1);
// allocate output
const int n_embd = llama_n_embd(model);