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
+3
-2
@@ -1157,8 +1157,9 @@ inserted as `steps_held`, `/metrics` as `radiance:engine_steps_held_total`.
|
||||
|
||||
`--prefill-interleave auto` sizes the hold from measured step times instead: after each such chunk,
|
||||
as many decode-only steps as fit in a quarter of a chunk step's time at a decode step's (running
|
||||
means of both, at most 16 steps; one until a decode step has been timed). The prefill gives up at
|
||||
most a fifth of its rate however many sequences decode, and the decoders get several steps where a
|
||||
means of both, at most 64 steps; one until a decode step has been timed). `auto:SHARE` uses SHARE
|
||||
of the chunk step's time instead of a quarter (0 < SHARE <= 4; `auto:1` gives decode as much time
|
||||
as prefill). With the quarter the prefill gives up at most a fifth of its rate however many sequences decode, and the decoders get several steps where a
|
||||
decode step is cheap beside a chunk, none where one costs more than that quarter (they still ride
|
||||
every chunk). In the scheduler's host simulation of 32 prompts of 128K tokens sent at once, each
|
||||
then decoding 512 tokens (2048-token chunks, MTP 3, step costs fitted to a lone prefill and to
|
||||
|
||||
Reference in new issue
Block a user