You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/server/server-context.cpp
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -593,6 +593,10 @@ struct server_slot {
593
593
if (preempt_tokens.empty()) {
594
594
state = state_before_preempt; // its prompt had not been processed yet, so it is processed again from the start
595
595
596
+
// the park dropped the cells the prompt step had already filled, and the restart does not pass through SLOT_STATE_STARTED, where these two are set: left alone they would count the dropped prefix a second time
# a park with no budget for the state drops the cells of a prompt that is still being processed, and the resume starts that prefill again from nothing: what it had counted before the park has to go with the cells, or the request reports more prompt tokens than it has
1032
+
# the park is made to fail its host allocation, so it drops the cells instead: the state of a half processed prompt is small enough to fit any budget
0 commit comments