Skip to content

Commit

Permalink
disable lookup for infill and embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesGaessler committed Apr 22, 2024
1 parent 0ad7512 commit 244508a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2217,6 +2217,9 @@ struct server_context {
};

for (auto & slot : slots) {
if (slot.infill || slot.embedding) {
continue;
}
if (slot.state != SLOT_STATE_PROCESSING || slot.i_batch < (int) i || slot.i_batch >= (int) (i + n_tokens)) {
continue; // continue loop of slots
}
Expand Down

0 comments on commit 244508a

Please sign in to comment.