From e8f50826979b5d3d4f54e522e552caf430edce0d Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 7 Apr 2026 15:29:17 +0300 Subject: [PATCH] server : fix restore for checkpoints with pos_min == 0 (#21510) --- tools/server/server-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/server/server-context.cpp b/tools/server/server-context.cpp index 5523f23b54..c1ccedf107 100644 --- a/tools/server/server-context.cpp +++ b/tools/server/server-context.cpp @@ -2404,7 +2404,7 @@ private: // guarantee that a checkpoint will result in at least one token being processed [TAG_PROMPT_LOGITS] LOG_INF("slot %12.*s: id %2d | task %d | Checking checkpoint with [%d, %d] against %d...\n", 12, func_name, (slot).id, ((slot).task ? (slot).task->id : -1), cur.pos_min, cur.pos_max, pos_min_thold); - return cur.pos_min < pos_min_thold; + return cur.pos_min < pos_min_thold || cur.pos_min == 0; } );