Skip to content

Commit

Permalink
server: infinite loop: set stop limit to true
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Apr 19, 2024
1 parent e366a20 commit 21702de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,8 @@ struct server_context {
{ "ga_n", slot.ga_n },
});
slot.truncated = true;
return false; // stop prediction
slot.has_next_token = false; // stop prediction
slot.stopped_limit = true;
}

return slot.has_next_token; // continue
Expand Down

0 comments on commit 21702de

Please sign in to comment.