Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxson committed Sep 23, 2024
1 parent c2e7945 commit 3a64932
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1837,10 +1837,8 @@ struct server_context {
if (slot.ga_n == 1) {
if (slot.is_processing() && (int) system_tokens.size() + slot.n_past >= slot.n_ctx - 1) {
if (!params.ctx_shift) {
// this check is redundant (for good)
// we should never get here, since n_predict is already limited
slot.release();
send_error(slot, "context shift is disabled", ERROR_TYPE_SERVER);
// we should never get here, because generation should already stopped in process_token()
GGML_ASSERT(false && "context shifting is disabled");
continue;
}

Expand Down

0 comments on commit 3a64932

Please sign in to comment.