mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-30 13:24:35 +00:00
embeddings : fix llama_batch_init arg
This commit is contained in:
parent
eb42596277
commit
9bbeb0f110
@ -136,7 +136,7 @@ int main(int argc, char ** argv) {
|
|||||||
|
|
||||||
// initialize batch
|
// initialize batch
|
||||||
const int n_prompts = prompts.size();
|
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
|
// allocate output
|
||||||
const int n_embd = llama_n_embd(model);
|
const int n_embd = llama_n_embd(model);
|
||||||
|
Loading…
Reference in New Issue
Block a user