server : bug fix in ingest_images

n_tokens is incremented internally by llama_batch_add
This commit is contained in:
Georgi Gerganov
2023-10-19 14:43:19 +03:00
parent a8c981b734
commit 3d5929e8ee
-1
View File
@@ -963,7 +963,6 @@ struct llama_server_context
{
llama_batch_add(batch, append_tokens[i], slot.n_past, { slot.id }, true);
slot.n_past += 1;
batch.n_tokens += 1;
}
}
return true;