serve: with pipelined groups, a request fills a hole below a busy slot of its group first (#793)

A pipelined group's window spans its slots up to its last busy one, and the engine keeps no pipelined slot as a
conversation cache, so the least-recently-used pick left leading holes ([_ B]) that cost a whole row each.  pick_slot
now fills such a hole first, then follows the spreading order.  The engine reports INFO batch_groups so the server
knows the groups really run pipelined.  serve/test_slot_alloc.py covers the allocator.

Co-authored-by: blange48 <blange48@users.noreply.github.com>
This commit is contained in:
Niko1221andblange48 committed 2026-10-07 20:29:09 +02:00
1 parent 0391e478ce
commit 2c7c02ab72
3 files changed
+100 -1

No files matched your search

+2 -1
View File
@@ -7921,7 +7921,8 @@ int main(int argc, char** argv) {
o.spec_min_p, (long long) o.conversation_cache_mib, o.conversation_cache_slots,
(long long) o.conversation_cache_min_free_mib, (long long) o.tail_role_token, xcache.segmented() ? 1 : 0,
o.batch > 0 ? (" batch_slots=" + std::to_string(o.batch) +
" slot_cache=" + std::to_string(o.prompt_cache > 0 ? 1 : 0)).c_str() : "");
" slot_cache=" + std::to_string(o.prompt_cache > 0 ? 1 : 0) +
" batch_groups=" + std::to_string(o.batch_groups)).c_str() : "");
}
// issue #29: a request whose heartbeat (tokens, prompt chunks, verify windows) stops for this long is stuck on
// a flag nobody will raise - end the engine with where it was, so the server starts it again instead of the