mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
server : fix uninitialized sampling context (close #3685)
This commit is contained in:
parent
f439e506e8
commit
a0edf73bda
@ -198,7 +198,7 @@ struct llama_server_context
|
|||||||
llama_model *model = nullptr;
|
llama_model *model = nullptr;
|
||||||
llama_context *ctx = nullptr;
|
llama_context *ctx = nullptr;
|
||||||
gpt_params params;
|
gpt_params params;
|
||||||
llama_sampling_context *ctx_sampling;
|
llama_sampling_context *ctx_sampling = nullptr;
|
||||||
int n_ctx;
|
int n_ctx;
|
||||||
|
|
||||||
bool truncated = false;
|
bool truncated = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user