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
# the budget grants permission to allocate, not a successful allocation: a failed save used to stop the planner and leave the pool to overflow, although the same victim could be parked by dropping its cells
329
329
os.environ["LLAMA_SERVER_PREEMPT_FAIL_SAVE"] ="1"
330
-
_start(n_ctx=256)
330
+
_start(n_ctx=1024, n_slots=2)
331
331
332
-
n_predict=160
333
-
results=_complete_all(n_predict)
332
+
# lengths decide the overlap, not the host's speed: two 171-cell requests fired together did not overlap on a Windows runner, so nothing was parked. The leader ends at 960 of 1024 cells, so the second is parked whatever the client's lag
333
+
leader=_prompt_of(500, _PROMPT_A)
334
+
other=_prompt_of(200, _PROMPT_B)
335
+
withThreadPoolExecutor(1) aspool:
336
+
first=pool.submit(_complete, 460, leader, 0)
337
+
_wait_processing([0])
338
+
second=_complete(400, other, 1)
339
+
results= [first.result(), second]
334
340
335
341
text=_log()
336
342
assert"could not take the host memory"intext, "the injected allocation failure never fired"
337
343
assert"tokens to re-prefill"intext, "the failed save did not fall back to recompute"
0 commit comments