From: pockers21 Date: Mon, 28 Apr 2025 13:45:40 +0000 (-0700) Subject: context : do not clear output buffer on reserve (#13152) X-Git-Tag: upstream/0.0.5318~108 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fb0471d1753824e75474c24f82fbdd54c94dceda;p=pkg%2Fggml%2Fsources%2Fllama.cpp context : do not clear output buffer on reserve (#13152) Co-authored-by: pockers21 --- diff --git a/src/llama-context.cpp b/src/llama-context.cpp index a52b6850..e49225aa 100644 --- a/src/llama-context.cpp +++ b/src/llama-context.cpp @@ -1536,8 +1536,6 @@ int32_t llama_context::output_reserve(int32_t n_outputs) { // set all ids as invalid (negative) std::fill(output_ids.begin(), output_ids.end(), -1); - ggml_backend_buffer_clear(buf_output.get(), 0); - this->n_outputs = 0; this->n_outputs_max = n_outputs_max;