Skip to content

Commit

Permalink
revert usage of GGML_ASSERT
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxson committed Sep 23, 2024
1 parent 8941264 commit 770462a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1837,8 +1837,10 @@ 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, because generation should already stopped in process_token()
GGML_ASSERT(false && "context shifting is disabled");
slot.release();
send_error(slot, "context shift is disabled", ERROR_TYPE_SERVER);
continue;
}

Expand Down

0 comments on commit 770462a

Please sign in to comment.