We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e6a6d4 commit 3294036Copy full SHA for 3294036
examples/llava/gemma3-cli.cpp
@@ -93,7 +93,7 @@ static int eval_text(gemma3_context & ctx, std::string input, bool logits_last =
93
llama_batch_ext_clear(ctx.batch.get());
94
for (llama_token & t : tokens) {
95
llama_seq_id seq_id = 0;
96
- llama_batch_ext_add_text(ctx.batch.get(), t, 0, &seq_id, 1, false);
+ llama_batch_ext_add_text(ctx.batch.get(), t, ctx.n_past++, &seq_id, 1, false);
97
}
98
if (logits_last) {
99
llama_batch_ext_set_output_last(ctx.batch.get());
0 commit comments