summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llama.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llama.cpp b/llama.cpp
index cf95cea1..a5ef2fd8 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -15478,6 +15478,8 @@ size_t llama_state_set_data(struct llama_context * ctx, const uint8_t * src) {
GGML_ASSERT((uint32_t) id < ctx->cparams.n_batch);
ctx->output_ids[id] = i;
}
+
+ ctx->n_outputs = n_outputs;
}
}