From f3f0d1818f28ff83237ecfdf3e85f5912c8972dd Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Wed, 10 Apr 2024 21:40:52 +0200 Subject: [PATCH] common: fix cb_eval and user data not initialized --- common/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.h b/common/common.h index 03abb3b6e..d9a300271 100644 --- a/common/common.h +++ b/common/common.h @@ -80,8 +80,8 @@ struct gpt_params { int32_t yarn_orig_ctx = 0; // YaRN original context length float defrag_thold = -1.0f; // KV cache defragmentation threshold - ggml_backend_sched_eval_callback cb_eval; - void * cb_eval_user_data; + ggml_backend_sched_eval_callback cb_eval = nullptr; + void * cb_eval_user_data = nullptr; ggml_numa_strategy numa = GGML_NUMA_STRATEGY_DISABLED;