server : fix uninitialized sampling context (close #3685)

This commit is contained in:
Georgi Gerganov 2023-10-20 13:06:10 +03:00
parent f439e506e8
commit a0edf73bda
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -198,7 +198,7 @@ struct llama_server_context
llama_model *model = nullptr;
llama_context *ctx = nullptr;
gpt_params params;
llama_sampling_context *ctx_sampling;
llama_sampling_context *ctx_sampling = nullptr;
int n_ctx;
bool truncated = false;