Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix off-by-one error per GG
  • Loading branch information
ddh0 committed Oct 2, 2025
commit d304f0291c81e099e8719a46d2f4a56747de1e65
2 changes: 1 addition & 1 deletion tools/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3552,7 +3552,7 @@ struct server_context {

const auto pos_min_thold = std::max(0, slot.n_past - n_swa);

if (pos_min > pos_min_thold) {
if (pos_min > pos_min_thold + 1) {
SLT_WRN(slot, "n_past = %d, cache_tokens.size() = %d, seq_id = %d, pos_min = %d, n_swa = %d\n", slot.n_past, (int) slot.cache_tokens.size(), slot.id, pos_min, n_swa);

// search for a context checkpoint
Expand Down