From b8cc9ce1e9bf0f39e986d6e552bb2893c752d169 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Sun, 8 Nov 2026 14:37:44 +0100 Subject: [PATCH] Speed program lever 5: fixed-cost fit corrected (581 ms + 0.134 ms/token) Co-Authored-By: Claude Sonnet 5.5 --- docs/experiments/codex-compare-speed-gap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/experiments/codex-compare-speed-gap.md b/docs/experiments/codex-compare-speed-gap.md index b1e15a57..c66321a5 100644 --- a/docs/experiments/codex-compare-speed-gap.md +++ b/docs/experiments/codex-compare-speed-gap.md @@ -283,7 +283,7 @@ Per request, ms: `prefill.read` (the batched read of the uncached tokens), `pref | 2453 | 1013 | 140 | 101 | | 5440 | 1229 | 136 | 108 | -A least-squares line through the 29 post-warm-up requests gives about 450 ms fixed plus 0.145 ms per token for the read, so a 239-token tail costs 485 ms of read where vanilla's whole prefill for the same size class is 292 ms. Fixed per request: about 450 (read) + 139 (refill) + 100 (assemble, inside decode) = about 690 ms, 8 % of a 8.3 s request. Two of the three have a known non-lossy handle: +A least-squares line through the 29 post-warm-up requests gives 581 ms plus 0.134 ms per token for the read; the smallest tails (239-266 tokens) read in 485 ms, where vanilla's whole prefill for the same size class is 292 ms. Fixed per request: about 490 (read of a small tail) + 139 (refill) + 105 (assemble, inside decode) = about 730 ms, 9 % of a 8.3 s request. Two of the three have a known non-lossy handle: * `prefill.refill` (139 ms): `LELEKA_REFILL_DEFER=on` (opt-in, never measured: "no GPU result yet (job 904)") queues the same copies inside the decode assembly, after its uploads and before the graph capture. Same bytes, other time; `spd-l5a/b` run it as variant R against A, 10 pairs. -* the read's 450 ms fixed part: no per-stage split of a small tail exists for the 5090 (`docs/prefill-throughput.md` only has 8192-token chunks and an 80-token laptop run: GDN 1.3 s). `spd-l5q` is a single profiled replay (variant Q: `LELEKA_BRINGUP_TRACE=1`, `LELEKA_PREFILL_PROFILE_SYNC=1`) to get `PREFILL-PROFILE` lines per chunk; its sync drains make it a diagnosis run, never an A/B arm. +* the read's ~490 ms fixed part: no per-stage split of a small tail exists for the 5090 (`docs/prefill-throughput.md` only has 8192-token chunks and an 80-token laptop run: GDN 1.3 s). `spd-l5q` is a single profiled replay (variant Q: `LELEKA_BRINGUP_TRACE=1`, `LELEKA_PREFILL_PROFILE_SYNC=1`) to get `PREFILL-PROFILE` lines per chunk; its sync drains make it a diagnosis run, never an A/B arm.