From 21921a1ed0101017347d032b394f707175b1ec2e Mon Sep 17 00:00:00 2001 From: Sascha Rogmann Date: Sat, 14 Mar 2026 00:16:23 +0100 Subject: [PATCH] spec : init ckpt (begin() wasn't called) --- common/speculative.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/speculative.cpp b/common/speculative.cpp index c145cab398..4c6caf66fa 100644 --- a/common/speculative.cpp +++ b/common/speculative.cpp @@ -145,10 +145,10 @@ struct common_speculative_state { }; struct common_speculative_checkpoint { - llama_pos pos_min; - llama_pos pos_max; + llama_pos pos_min = 0; + llama_pos pos_max = 0; - int64_t n_tokens; + int64_t n_tokens = 0; std::vector data; @@ -156,7 +156,7 @@ struct common_speculative_checkpoint { return data.size(); } - size_t ckpt_size; + size_t ckpt_size = 0; }; struct common_speculative_state_draft : public common_speculative_state {