Archived
scheduler: --prefill-interleave auto:SHARE sets the decode-only share of a chunk step's time
auto gave decode-only steps a fixed quarter of a chunk step's time. On the device (8 decoding sessions beside 64K prefills, MTP on) that left decode at 23 tokens/s a session against 83 alone, with 0.45 s gaps: two or three decode steps of ~40 ms per 0.45 s chunk. auto:SHARE makes the share a choice (0 < SHARE <= 4); auto stays 0.25. The cap on decode-only steps rises from 16 to 64 so a larger share is not cut off. config_test parses it, sched_test checks auto:1.
This commit is contained in:
1 parent
5a8c5533d1
commit
c00b882b96
7 files changed
+43
-12
No files matched your search
@@ -839,6 +839,7 @@ struct Config {
|
||||
* prefill stager arms for. 0 = off: the chunk takes every token the step has left. N > 0: cap
|
||||
* the chunk at N tokens on such a step. See Scheduler::step, docs/GUIDE.md. */
|
||||
int64_t busy_prefill_chunk = -1;
|
||||
double prefill_interleave_share = 0.25; /* --prefill-interleave auto[:SHARE] */
|
||||
int64_t prefill_interleave = 0; /* --prefill-interleave: decode-only steps between chunks;
|
||||
* -1 auto (Scheduler::interleave_steps) */
|
||||
/* --preempt-wait-ms: how long a preempted prefill may wait for the whole-recompute gate
|
||||
|
||||
Reference in new issue
Block a user