Skip to content

Commit

Permalink
pr clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
VJHack committed Nov 23, 2024
1 parent 67e98f8 commit be8af7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ struct server_slot {
if (params.n_predict == -1 && global_params.n_predict == -1) {
return true; // limitless
}

n_remaining = -1;

if (params.n_predict != -1) {
Expand Down Expand Up @@ -1813,7 +1814,6 @@ struct server_context {
continue;
}


// Shift context
const int n_keep = slot.params.n_keep + add_bos_token;
const int n_left = slot.n_past - n_keep;
Expand Down

0 comments on commit be8af7a

Please sign in to comment.