Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
9.5 KiB
Our per-round decode breakdown on the RTX 5090 with the STRA-258 partition (STRA-259, COMPONENT_TABLE)
Superseded numbers (2026-10-29). Every number on this page was measured on the old corpus and is unpaired: ours and vanilla did not run the same workload in the same session, there is no A/A series, and the corpus has since been replaced by the frozen corpus
/data/leleka-e2e/decode/corpus/src/crateswith the ranked upstream expert profile. Do not cite these numbers as a gap or a gain. The paired replacement is the speed-train A/B (scripts/e2e/decode/speedtrain-ab.sh, results under/data/leleka-e2e/runs/). The page stays for its method and its component breakdown.
Date 2026-10-28/29. Leaf STRA-259 of STRA-245 (S1.2). Level: COMPONENT_TABLE. Not END_TO_END evidence, not AC1/AC3 evidence.
1. What was run
- Ours = the pinned wave-1 build: commit
ffb264e0("perf(prefill): idle-gap switches on by default ..."), binaries~/work/leleka-rest/bin-e2e4(digests in runbook section 2), started byscripts/e2e/run-e2e.shinside a holder job with the shipped-shape environment ofrest-e2e-ab2.sh:LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=auto,E2E_GPU_BUDGET=32212254720,LELEKA_CHAIN=all,--prefix-cache-mib auto --prefix-cache-tail reply --original-prefill-capacity 8192 --prefix-cache-block 8192 --spec-min-p 0. No otherLELEKA_*override. - Tracing that was ON (it does not change execution but costs host time):
LELEKA_BRINGUP_TRACE=1(theDBG window ...line per window and theDBG[..s] port.* ... mslines) andLELEKA_PREFIX_TRACE=1. The same tracing was on in the four earlier armsrest-gap-*that are used below as repeats. No CUPTI window in these runs. A no-trace control run was not made. - Session: the same 5-turn 245k session as STRA-258 (prompt sizes 45,766 / 95,706 / 151,643 / 197,915 / 242,849; 300 output tokens each; largest prompt 242,849).
- Runs:
s1-decode/o-def(2026-10-28 22:30Z, this leaf) plusrest-gap-before1/before2/after1/after2(2026-10-28 01:37-02:14Z, same binary;after*have the three prefill idle-gap switches on, which do not touch decode; used as repeats of the decode side). Raw logs on the server only. leleka-serve cpu:/gpu:lines: not recorded by this binary (the pinned build prints no build id and nocpu:line, runbook section 2), so AC3 of the leaf (verbatim lines) cannot be met for this build; the CPU family of the machine is the Ryzen 9 9950X3D with 13avx512*flags (STRA-245 comment 1681bcd3).
2. Stage-to-component mapping
Our round (the Original's generate.cpp loop, ported) is: port.run_window (verify window incl. sampling setup and the expert pool) then draft_committed then the adaptive tier
(apply_pending waits for the previous swaps, begin_adaptation issues the next ones) and small ports. The sum of the port.* times equals the wall time of the round (turn 5 of o-def:
300 tokens at 104.62 tok/s = 17.59 ms per round against 17.52 ms summed).
| Vanilla component (STRA-258) | Our stage (log field) | Judgement call |
|---|---|---|
| verify window | port.run_window (= window total = ple + sampling_setup + verifier) |
same span: from the host entering the window to the sampled row ids; ours includes the PLE row staging (0.2 ms) and sampling setup (0.02-0.09 ms) which vanilla keeps inside verify as well |
| GPU-reach wait (descriptor) | gpu_wait_and_head = verifier time minus pool time |
not the same cut: ours is "verifier time not spent in the host-side expert pool", vanilla's is the time the host waits for the GPU to reach the router point. Marked: only comparable as a trend |
| per-layer host + stage (descriptor) | pool (= gpu_split + plan + prepare + start + join + validate + scatter) |
ours has no separate stage; join is the exposed wait for the CPU experts (vanilla waitCPU) |
| draft | port.draft_committed |
same: MTP draft after the commit; ours includes the receipt (draft.receipt) |
| adaptive tier | port.apply_pending + port.begin_adaptation |
apply_pending = wait_swaps (blocking, job 803 decision); vanilla's adapt wait/join is the same wait. begin_adaptation (planning of the next swaps) has no separately timed vanilla field: vanilla includes it in commit/emit or adapt |
| commit/emit | no equivalent as a separate timer | ours commit runs asynchronously beside the draft (commit_enqueued), its host cost is inside port.draft_committed and port.run_window; no equivalent |
other ports (checkpoint_draft, validate_*) |
port.checkpoint_draft 0.02-0.05 ms |
no equivalent (vanilla folds it in the loop) |
| tokens per window | rows of the window and 300 / rounds |
same meaning (accepted + 1) |
| expert tier work | experts (CPU-served distinct experts), entries, pcie_experts, DBG tier request line |
vanilla CPU experts, PCIe per layer-window; ours are per window (divide by 48 layers); vanilla excludes PCIe reads from its hit rate, ours reports them separately |
Rows marked "no equivalent": 2 (commit/emit as a separate timer; other ports).
3. Table: shipped defaults, run o-def, ms per round
| Prompt tokens | rounds | tok/round | run_window | draft | apply_pending | begin_adaptation | round sum | gpu_wait_and_head | pool | of which join | CPU experts/window | PCIe experts/window | VRAM % | PCIe % | CPU % | swaps/adapt | decode tok/s |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 45,766 | 158 | 1.90 | 15.56 | 1.72 | 0.57 | 0.14 | 18.02 | 7.46 | 7.86 | 5.29 | 87.7 | 69.5 | 81.5 | 7.5 | 11.0 | 76 | 106.0 |
| 95,706 | 141 | 2.13 | 15.98 | 1.85 | 0.47 | 0.16 | 18.50 | 8.04 | 7.70 | 6.21 | 98.0 | 82.1 | 82.3 | 7.4 | 10.3 | 74 | 115.2 |
| 151,643 | 123 | 2.44 | 19.62 | 2.37 | 0.66 | 0.19 | 22.90 | 8.74 | 10.59 | 9.40 | 148.1 | 134.9 | 76.5 | 10.4 | 13.1 | 96 | 106.6 |
| 197,915 | 119 | 2.52 | 17.17 | 2.45 | 0.46 | 0.17 | 20.31 | 8.63 | 8.27 | 7.42 | 111.6 | 95.3 | 82.9 | 7.3 | 9.9 | 85 | 124.1 |
| 242,849 | 163 | 1.84 | 14.83 | 1.96 | 0.50 | 0.15 | 17.52 | 8.18 | 6.36 | 5.75 | 89.4 | 72.1 | 81.8 | 7.6 | 10.6 | 76 | 104.6 |
| round-weighted mean (704) | 704 | 2.13 | 16.46 | 2.04 | 0.53 | 0.16 | 19.19 | 8.1 | 8.1 | 6.7 | 105 | 88 | 81 | 8 | 11 | 78 | 110.7 |
Range check against the item (16.9-22.2 ms per round for ours): measured 17.52-22.90, mean 19.19. The four repeats rest-gap-* give the same shape (round sums for after2: 17.95 / 18.03 / 25.19 / 19.44 / 17.88 ms
at 158 / 153 / 107 / 123 / 158 rounds), so the run-to-run spread of the per-turn round sum is about 1-2 ms; turn 3 is slow in every run (more rows per window: 3.1-3.6, more experts per window).
Per token (ms per round divided by tokens per round, weighted): run_window 7.73, draft 0.96, adapt (apply_pending + begin_adaptation) 0.32; total 9.0 ms/token (111 tok/s).
Expert-tier arm with global profile-order fill (LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no, run o-global, 11,320 slots, "global" instead of "per layer"): round sums 19.58 / 19.12 / 22.78 / 19.51 / 18.54 ms
(rounds 151 / 145 / 135 / 129 / 156), VRAM share per request 81.9 / 80.1 / 78.3 / 83.5 / 83.6 percent. No difference from the per-layer fill (this run also had more host memory pressure: PLE time 0.5-2.8 ms).
4. Where the round time goes inside a request (o-def, 20-window blocks)
Block means of the DBG window lines. exp = CPU-served distinct experts per window, pcie = PCIe-served experts per window, total = run_window ms.
Turn 1 (45,766 tokens, 158 rounds):
| windows | rows | exp | pcie | total | join |
|---|---|---|---|---|---|
| 0-20 | 2.90 | 216.8 | 215.3 | 30.1 | 12.03 |
| 20-40 | 1.80 | 103.2 | 82.1 | 15.6 | 6.12 |
| 40-60 | 1.75 | 79.8 | 58.0 | 13.8 | 4.89 |
| 60-80 | 2.30 | 61.6 | 39.6 | 13.1 | 3.99 |
| 80-100 | 1.85 | 61.0 | 40.4 | 12.6 | 3.81 |
| 100-120 | 1.80 | 40.5 | 21.8 | 11.1 | 2.70 |
| 120-140 | 2.65 | 89.7 | 68.4 | 16.1 | 5.59 |
| 140-158 | 1.89 | 44.2 | 26.1 | 11.7 | 2.93 |
Turn 5 (242,849 tokens, 163 rounds):
| windows | rows | exp | pcie | total | join |
|---|---|---|---|---|---|
| 0-20 | 2.85 | 234.4 | 229.9 | 25.6 | 14.56 |
| 20-40 | 2.45 | 85.6 | 64.2 | 14.4 | 5.54 |
| 40-60 | 2.50 | 77.8 | 59.5 | 14.3 | 5.22 |
| 60-80 | 1.85 | 109.2 | 89.7 | 15.4 | 6.66 |
| 80-100 | 2.05 | 55.0 | 36.2 | 12.3 | 3.65 |
| 100-120 | 2.10 | 73.8 | 54.0 | 13.5 | 4.79 |
| 120-140 | 2.15 | 51.8 | 33.5 | 12.3 | 3.55 |
| 140-160 | 1.85 | 31.9 | 14.3 | 11.0 | 2.31 |
| 160-163 | 2.33 | 59.7 | 41.0 | 12.8 | 4.07 |
Reading: every request starts with a burst of misses (about 430-460 experts per window served from CPU or over PCIe, against about 50-110 later) and the window costs 25-30 ms until the adaptive tier (96 swaps per 4 rounds) catches up; windows 100+ run at 11-12 ms, the speed of vanilla's whole-request average. Taking the first block out, the remaining windows average 13.44 ms (turn 1) and 13.31 ms (turn 5) against 15.55 and 14.82 for the whole turn: the first 20 windows cost 2.1 and 1.5 ms per round of the whole request (about 10-14 percent). Part of that (up to ~0.7 ms) is the larger window (2.9 rows against 2.3 average).
5. Not done / open
- No COMPONENT record, no
validate_component.pyrun (per-round arrays are on the server, which went unreachable at about 23:25Z; the tables above are the block and request means computed from theDBGlines). - The no-trace control run, the CUPTI window and the
s1-decode/o-seedoffando-skip7arms were queued and not run.