server : bug fix in ingest_images
n_tokens is incremented internally by llama_batch_add
This commit is contained in:
parent
a8c981b734
commit
3d5929e8ee
1 changed files with 0 additions and 1 deletions
|
@ -963,7 +963,6 @@ struct llama_server_context
|
||||||
{
|
{
|
||||||
llama_batch_add(batch, append_tokens[i], slot.n_past, { slot.id }, true);
|
llama_batch_add(batch, append_tokens[i], slot.n_past, { slot.id }, true);
|
||||||
slot.n_past += 1;
|
slot.n_past += 1;
|
||||||
batch.n_tokens += 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue