llama : fix restoring the number of outputs from state files (#6687)

This commit is contained in:
compilade 2024-04-15 08:56:55 -04:00 committed by GitHub
parent 3272896d79
commit 132f55795e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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); GGML_ASSERT((uint32_t) id < ctx->cparams.n_batch);
ctx->output_ids[id] = i; ctx->output_ids[id] = i;
} }
ctx->n_outputs = n_outputs;
} }
} }