embeddings : fix llama_batch_init arg
This commit is contained in:
parent
eb42596277
commit
9bbeb0f110
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue