wasi_nn_llamacpp.c: remove an unused variable (#4415)

This commit is contained in:
YAMAMOTO Takashi 2025-06-27 12:55:08 +09:00 committed by GitHub
parent d6876f1e9f
commit 8ed89e2ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -480,7 +480,6 @@ compute(void *ctx, graph_execution_context exec_ctx)
// main loop
int32_t n_cur = batch.n_tokens;
int n_decode = 0;
int32_t n_vocab = llama_n_vocab(backend_ctx->model);
llama_token_data *candidates = NULL;
@ -531,7 +530,6 @@ compute(void *ctx, graph_execution_context exec_ctx)
// push this new token for next evaluation
llama_batch_add(&batch, new_token_id, n_cur, seq_ids,
sizeof(seq_ids) / sizeof(seq_ids[0]), true);
n_decode++;
n_cur++;
if (llama_decode(backend_ctx->ctx, batch) != 0) {