Skip to content

server : fix checkpoints n_tokens calculation - #20287

Merged
ggerganov merged 1 commit into
masterfrom
gg/server-fix-ckpt-size
Mar 9, 2026
Merged

ggerganov merged 1 commit into
masterfrom
gg/server-fix-ckpt-size

Conversation

@ggerganov

Copy link
Copy Markdown
Member

Take into account that during parallel processing, the batch can contain tokens from multiple slots and therefore using batch.n_tokens to determine the number of tokens in the checkpoint is not correct. Fixes some unnecessary prompt reprocessing cases.

@ggerganov
ggerganov requested a review from ngxson as a code owner March 9, 2026 12:15
@ggerganov
ggerganov merged commit 96cfc49 into master Mar 9, 2026
15 of 75 checks passed
@ggerganov
ggerganov deleted the gg/server-fix-ckpt-size branch March 9, 2026 14:47
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
MrLordCat referenced this pull request in MrLordCat/llama.cpp-rdna-lab Jul 16, 2026
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant