Code000
5a8c5533d1
sched_test: an opt-in timed simulation of a burst of long prompts
...
Cause: scheduling policy for many long prompts arriving at once (how chunks share steps,
admission, decode rows beside chunks, interleaving) was judged on the device only, where a
run of 32 x 128K prompts takes 40 minutes and the device is shared.
Change: sim_burst_of_long_prompts drives the real Scheduler through such a burst (prompts,
decode with three drafts a step, the stager floor, --prefix-resume exact) and times each
step with a cost model whose defaults are fitted to Flash-Next at TP2 (a lone prefill and
decode alone). It checks nothing and returns at once unless RAD_SCHED_SIM is set; the
workload, the flags and the model's terms come from SIM_* variables (see the comment).
Evidence (defaults, 128K prompts, 512 tokens out): the schedule keeps ~1984-2048 prefill
tokens in nearly every step at 4, 16 and 32 prompts (two prompts share a step at 1024 each
until the first decodes, then a chunk of 2048 less the decode rows with the next prompt
filling the rest), so the model predicts ~5.1K tokens/s aggregate at every burst size:
TTFT p95 100 / 412 / 814 s at 4 / 16 / 32 prompts against the device's 158 / 966 / 2456 s.
The gap grows with the burst size, so it is the device's cost of the steps a burst runs
(two-sequence and mixed steps), not the number of tokens the scheduler plans per step.
2026-11-05 20:20:13 +01:00
..
2026-10-30 22:01:01 +01:00
2026-10-30 22:01:01 +01:00
2026-11-04 18:56:58 +01:00
2026-10-16 18:25:18 +02:00
2026-11-05 14:09:13 +00:00
2026-10-30 22:01:01 +01:00
2026-11-05 14:19:17 +00:00
2026-11-05 14:19:17 +00:00
2026-10-16 18:25:18 +02:00
2026-11-04 22:08:53 +01:00
2026-11-04 07:20:29 +01:00
2026-11-05 09:50:02 +01:00
2026-10-20 23:07:33 +02:00
2026-10-16 18:25:18 +02:00
2026-10-30 22:01:01 +01:00
2026-10-31 07:50:43 +01:00
2026-10-27 18:15:58 +01:00
2026-10-19 15:34:15 +02:00
2026-10-30 10:23:09 +01:00
2026-11-04 07:20:13 +01:00
2026-10-28 23:44:38 -04:00
2026-10-28 02:37:49 -04:00
2026-11-04 22:08:53 +01:00
2026-11-05 20:20:13 +01:00
2026-11-04 07:20:29 +01:00
2026-10-23 11:57:52 +02:00
2026-11-03 18:09:49 +01:00
2026-10-28 23:44:38 -04:00
2026-10-30 22:01:01 +01:00
2026-10-30 22:01:01 +01:00
2026-11-03 14:35:30 -05:00
2026-11-03 13:56:46 -05:00
2026-11-03 13:56:46 -05:00
2026-10-16 18:25:18 +02:00
2026-10-30 22:01:01 +01:00
2026-11-04 22:08:06 +01:00
2026-11-04 18:56:58 +01:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-29 12:04:24 +01:00
2026-10-16 18:25:18 +02:00
2026-11-04 07:20:29 +01:00
2026-11-04 07:21:07 +01:00
2026-10-20 21:05:16 +02:00
2026-10-23 11:57:52 +02:00
2026-10-28 12:48:13 +01:00
2026-10-22 11:06:34 +02:00
2026-10-22 11:06:34 +02:00
2026-11-05 14:25:05 +00:00
2026-10-16 18:25:18 +02:00
2026-10-19 13:37:01 +02:00
2026-10-31 07:50:43 +01:00
2026-10-16 18:25:18 +02:00
2026-10-23 11:57:52 +02:00
2026-10-16 18:25:18 +02:00
2026-10-25 12:09:29 +01:00
2026-10-25 10:55:27 +01:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-16 18:25:18 +02:00
2026-11-04 22:08:53 +01:00
2026-10-30 22:01:01 +01:00
2026-10-23 11:57:52 +02:00
2026-10-29 00:28:47 -04:00
2026-10-30 22:01:01 +01:00
2026-10-12 11:46:14 +02:00
2026-10-16 18:25:18 +02:00
2026-10-16 20:52:09 -05:00
2026-10-20 21:05:16 +02:00
2026-11-04 18:56:58 +01:00
2026-10-29 00:50:14 -04:00
2026-10-16 18:25:18 +02:00
2026-10-20 21:05:16 +02:00
2026-10-29 00:44:13 -04:00
2026-10-16 18:25:18 +02:00
2026-10-28 00:33:55 -04:00
2026-10-16 18:25:18 +02:00
2026-11-04 07:20:29 +01:00
2026-10-22 11:06:34 +02:00
2026-10-04 12:02:41 +02:00
2026-10-16 18:25:18 +02:00
2026-10-28 23:44:38 -04:00
2026-10-12 11:46:14 +02:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-30 09:47:42 -03:00
2026-10-30 09:47:42 -03:00
2026-10-30 10:22:53 +01:00
2026-10-16 18:25:18 +02:00
2026-10-20 07:04:01 +00:00
2026-10-20 07:04:01 +00:00
2026-10-04 12:02:41 +02:00
2026-11-04 22:08:53 +01:00
2026-10-24 13:12:28 +02:00
2026-10-30 09:47:42 -03:00
2026-10-30 09:47:42 -03:00
2026-11-04 22:08:53 +01:00
2026-10-16 18:25:18 +02:00
2026-11-02 18:35:02 +01:00
2026-10-20 07:04:01 +00:00
2026-10-16 18:25:18 +02:00
2026-11-04 18:56:58 +01:00
2026-10-30 22:01:01 +01:00
2026-10-20 21:05:16 +02:00
2026-10-20 21:05:16 +02:00
2026-10-21 09:26:17 +02:00
2026-11-04 18:56:58 +01:00
2026-10-16 18:25:18 +02:00
2026-10-28 12:48:13 +01:00
2026-10-26 15:22:39 +01:00
2026-10-30 22:01:01 +01:00
2026-10-30 22:01:01 +01:00
2026-10-16 18:25:18 +02:00
2026-10-23 11:57:52 +02:00
2026-10-30 10:22:53 +01:00
2026-10-30 10:22:53 +01:00
2026-10-16 18:25:18 +02:00
2026-10-19 13:37:01 +02:00
2026-11-04 22:08:53 +01:00
2026-10-23 11:57:52 +02:00
2026-10-27 16:47:35 +01:00
2026-11-05 14:10:58 +00:00
2026-10-28 12:49:18 +01:00
2026-10-20 07:06:18 +00:00
2026-11-04 18:56:58 +01:00
2026-11-04 18:56:58 +01:00
2026-10-30 21:32:03 -05:00
2026-11-05 20:20:13 +01:00
2026-10-27 16:47:35 +01:00
2026-11-02 18:35:02 +01:00
2026-11-02 18:35:02 +01:00
2026-11-02 18:35:02 +01:00
2026-11-04 22:08:06 +01:00
2026-11-04 22:08:53 +01:00
2026-11-03 14:10:11 -05:00
2026-11-03 19:08:58 +01:00
2026-11-03 19:08:58 +01:00
2026-11-03 13:53:26 -05:00
2026-11-03 13:53:27 -05:00
2026-11-03 13:53:27 -05:00
2026-11-03 13:53:27 -05:00
2026-11-03 13:53:26 -05:00
2026-11-03 13:53:26 -05:00
2026-11-03 13:53:27 -05:00
2026-11-03 13:53:26 -05:00
2026-10-24 13:12:28 +02:00
2026-10-24 13:12:28 +02:00
2026-10-24 13:12:28 +02:00
2026-10-27 18:37:28 +01:00
2026-10-27 18:37:28 +01:00
2026-10-30 22:01:01 +01:00
2026-10-21 01:00:13 +02:00
2026-11-04 18:56:58 +01:00
2026-10-29 16:23:28 +01:00
2026-10-18 11:38:37 +02:00
2026-10-29 13:45:18 -04:00
2026-10-16 18:25:18 +02:00
2026-10-29 12:04:24 +01:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-11-03 19:07:34 +01:00
2026-10-19 10:36:27 +02:00
2026-10-16 18:25:18 +02:00
2026-10-24 13:12:28 +02:00
2026-10-31 07:50:43 +01:00
2026-11-04 18:56:58 +01:00
2026-10-20 07:04:01 +00:00
2026-10-23 11:57:52 +02:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-31 07:50:43 +01:00
2026-10-28 12:37:10 +01:00
2026-11-04 18:56:58 +01:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-27 18:34:32 +01:00
2026-10-16 18:25:18 +02:00