Skip to content

Commit 3a64932

Browse files
committed
small fix
1 parent c2e7945 commit 3a64932

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/server/server.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,10 +1837,8 @@ struct server_context {
18371837
if (slot.ga_n == 1) {
18381838
if (slot.is_processing() && (int) system_tokens.size() + slot.n_past >= slot.n_ctx - 1) {
18391839
if (!params.ctx_shift) {
1840-
// this check is redundant (for good)
1841-
// we should never get here, since n_predict is already limited
1842-
slot.release();
1843-
send_error(slot, "context shift is disabled", ERROR_TYPE_SERVER);
1840+
// we should never get here, because generation should already stopped in process_token()
1841+
GGML_ASSERT(false && "context shifting is disabled");
18441842
continue;
18451843
}
18461844

0 commit comments

Comments
 (0)