From: Georgi Gerganov Date: Tue, 7 Apr 2026 12:29:17 +0000 (+0300) Subject: server : fix restore for checkpoints with pos_min == 0 (#21510) X-Git-Tag: upstream/0.0.10438~1745 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e8f50826979b5d3d4f54e522e552caf430edce0d;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : fix restore for checkpoints with pos_min == 0 (#21510) --- diff --git a/tools/server/server-context.cpp b/tools/server/server-context.cpp index 5523f23b5..c1ccedf10 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; } );