mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 19:04:35 +00:00
llama : fix restoring the number of outputs from state files (#6687)
This commit is contained in:
parent
3272896d79
commit
132f55795e
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user