Skip to content

Commit ba574ba

Browse files
committed
oops
1 parent cfba346 commit ba574ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/server/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3572,7 +3572,7 @@ struct server_context {
35723572
const size_t ctx_checkpoint_size = it->data.size();
35733573
const size_t n = llama_state_seq_set_data_ext(ctx, it->data.data(), ctx_checkpoint_size, slot.id, LLAMA_STATE_SEQ_FLAGS_CHECKPOINT_ONLY);
35743574

3575-
if (n != swa_size) {
3575+
if (n != ctx_checkpoint_size) {
35763576
SLT_ERR(slot, "failed to restore context checkpoint (pos_min = %d, pos_max = %d, size = %.3f MiB)\n", it->pos_min, it->pos_max, (float) ctx_checkpoint_size / 1024 / 1024);
35773577
do_reset = true;
35783578
printf("[DEBUG] `do_reset` was set to `true` after failing to restore a checkpoint");
@@ -3882,7 +3882,7 @@ struct server_context {
38823882
llama_state_seq_get_data_ext(ctx, cur.data.data(), checkpoint_size, slot.id, LLAMA_STATE_SEQ_FLAGS_CHECKPOINT_ONLY);
38833883

38843884
SLT_WRN(slot, "saved context checkpoint %d of %d (pos_min = %d, pos_max = %d, size = %.3f MiB)\n",
3885-
slot.ctx_checkpoints.size(), params_base.n_ctx_checkpoints, cur.pos_min, cur.pos_max, (float) cur.data.size() / 1024 / 1024, (int) );
3885+
(int) slot.ctx_checkpoints.size(), params_base.n_ctx_checkpoints, cur.pos_min, cur.pos_max, (float) cur.data.size() / 1024 / 1024);
38863886
}
38873887
} else if (slot.state != SLOT_STATE_GENERATING) {
38883888
continue; // continue loop of slots

0 commit comments

Comments
 (0)