llama : fix restoring the number of outputs from state files

This commit is contained in:
Francis Couture-Harpin 2024-04-15 08:40:17 -04:00
parent 3272896d79
commit 5598afb778

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);
ctx->output_ids[id] = i;
}
ctx->n_outputs = n_outputs;
}
}