We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd3532 commit 66d8eccCopy full SHA for 66d8ecc
tools/server/server.cpp
@@ -3587,7 +3587,7 @@ struct server_context {
3587
// apply context-shift if needed
3588
// TODO: simplify and improve
3589
for (server_slot & slot : slots) {
3590
- if (slot.is_processing() && slot.prompt.n_tokens() + 1 >= slot.n_ctx) {
+ if (slot.state == SLOT_STATE_GENERATING && slot.prompt.n_tokens() + 1 >= slot.n_ctx) {
3591
if (!params_base.ctx_shift) {
3592
// this check is redundant (for good)
3593
// we should never get here, because generation should already stopped in process_token()
0 commit comments