Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
8.8 KiB
5090 decode gap table: ours against vanilla Strata 0.2.6, per component (STRA-260, 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-29. Leaf STRA-260 of STRA-245 (S1.3). Analysis of docs/experiments/vanilla-decode-5090.md (STRA-258) and docs/experiments/ours-decode-5090.md (STRA-259).
Every number is COMPONENT_TABLE evidence from one engine run per row. None of it is AC1/AC3 evidence.
1. Class of every row: INCONCLUSIVE
scripts/e2e/evidence/component_class.py cell <cell.json> was not run: the per-round arrays are on the server, the tables use per-request means, and there is no A/A series for any row.
By the rule of the leaf a row without a valid A/A is INCONCLUSIVE (and is not EQUAL). The "direction" column below is the sign of the measured difference and is not a class.
Spread seen between repeats of ours (4 earlier arms plus o-def): per-turn round sum within 1-2 ms (turn 1: 17.95-18.02 ms; turn 5: 17.52-17.88 ms). Vanilla rows were run once each.
2. Gap table (ms per token = ms per round divided by tokens per round)
The measured gap in speed is 111 tok/s (ours, shipped defaults) against 154.5 tok/s (vanilla default, untimed, vanilla-long-256k) = 9.0 against 6.5 ms/token, 2.5 ms/token (28 percent).
Timed vanilla rows: A = default, tail skip ON (vanilla-timing, 800 windows); C = tail skip OFF (v-nsk-prof, 502 windows, caveats of the vanilla page). Ours = 704 rounds of o-def.
The like-for-like vanilla row is C (6.6 ms/token, equal to the untimed default, 6.5): A contains timing cost (stage 3.2-5.3 ms per window) that neither the untimed run nor C show.
| Component | Ours ms/round | Ours ms/token | Vanilla default A ms/window (ms/token) | Vanilla skip-off C ms/window (ms/token) | Gap to C, ms/token | Share of the gap | Direction | Class | Carried to |
|---|---|---|---|---|---|---|---|---|---|
| verify window | 16.46 | 7.73 | 14.11 (7.53) | 10.65 (5.95) | +1.78 | 74 % | ours slower | INCONCLUSIVE (no A/A) | S1.4, section 4 items 1-3 |
| draft (MTP) | 2.04 | 0.96 | 0.93 (0.50) | 0.93 (0.52) | +0.44 | 18 % | ours slower | INCONCLUSIVE | S1.4, section 4 item 4 |
| adaptive tier (wait + issue) | 0.69 | 0.32 | 0.19 (0.10) | 0.21 (0.12) | +0.20 | 8 % | ours slower | INCONCLUSIVE | S1.4, section 4 item 5 |
| commit/emit and other ports | 0.03 | 0.01 | 0.01 (0.01) | 0.03 (0.02) | -0.01 | 0 % | equal within rounding | INCONCLUSIVE | none |
| round total | 19.19 | 9.0 | 15.23 (8.12) | 11.81 (6.6) | +2.4 | 100 % | ours slower | INCONCLUSIVE |
Sum check: 1.78 + 0.44 + 0.20 - 0.01 = 2.41 against the 2.4 of the totals (residual below the rounding of the inputs, 0.05 ms/token). Against the untimed 6.5 ms/token the gap is 2.5 (residual 0.1 from the 154.5 tok/s mean being a different run on the same text).
Tokens per round: ours 2.13 (rows 2.1-3.1 per window), vanilla 1.79-1.88. Ours accepts more drafts per round (spec-min-p 0 against vanilla's 0.5), so a round of ours is longer and carries more tokens; the per-token view is the fair one.
3. Lossy part against lossless remainder
- Vanilla's lossy default is the route tail skip (S0.7 row 1, the only LOSSY row). Measured effect on vanilla at 256k on this card: untimed default 6.5 ms/token, timed skip-off 6.6 ms/token. The difference (+0.1, skip-off slower) is inside the unpaired noise: no part of the 2.5 ms/token gap can be attributed to the tail skip (lossy share 0 within about 0.2 ms/token), and the whole 2.4-2.5 ms/token is lossless remainder. This contradicts the repo's "+15.2 percent" figure of the laptop (it was measured on a 16 GB card that misses many experts; on the 5090 vanilla hits 96-99 percent of its experts in VRAM whether the skip is on or off).
- Vanilla's skip-off run keeps its VRAM hit rate (96.4-97.9 percent) and its speed (145-168 tok/s). Ours serves 16-23 percent of its routed entries from CPU or PCIe (VRAM share 76.5-83.5 percent per request; about 4.0 entries per layer-window) against 0.7-0.9 for vanilla (CPU 0.52-0.69 plus PCIe 0.06-0.19).
- A paired skip-on/skip-off pair of vanilla (
v-nsk-tagainstv-def-t) and ours withLELEKA_ROUTE_TAIL_SKIP=7(o-skip7) were queued and not run (server outage); until then the share above is an upper-bound statement, not a measured pair.
4. Where the verify gap (1.78 ms/token, about 3.8 ms/round) comes from: measured, estimated, suspected
- Cold start of every request (measured, from our
DBG windowlines). Windows 0-20 of each request: 217-238 CPU-served and 215-237 PCIe-served experts per window and 25-30 ms per round, against 50-110 experts and 11-14 ms later (ours-decode-5090.mdsection 4). That costs 1.5-2.1 ms per round of the whole request (of which at most 0.7 ms is the larger window of 2.9 rows): about 0.7-1.0 ms/token, i.e. 40-55 percent of the verify gap. Vanilla's hit rate is 96-99 percent already in the first long request. Mechanism suspected, not yet isolated: our prompt-routing SEED (LELEKA_ORIGINAL_SERVE_SEED, default ON,SEED_KEEP=0, up to 4096 swaps at the end of the prompt,crates/leleka-runtime/src/qwen_forward/original_serve_seed.rs) replaces the starting set by the experts the prompt routed most;docs/original-serve.md("Residency seeded from the prompt's own routing") measured that this does NOT work for 16,000-token prompts (the prompt's top experts cover 9-10 percent of the decode routing) and recommended it off by default; vanilla has no such step and carries its adapted set from request to request. - Late-window hit rate (measured, estimate of the cause). After the burst ours still misses about 6-8 percent of its entries (windows 100+: 35-90 non-VRAM experts per window of about 1,050 entries), vanilla 1-4 percent. Our adaptive tier
is the same algorithm with the same constants as vanilla's (every 4 rounds, 96 swaps, count floor 2.0, margin 1.5, decay 0.7;
original_serve_residency.rsadapt_tuning,generate.cpplines 10420-10475), but swaps 18 experts per round against vanilla's 3-8, i.e. its placement keeps being wrong. - Cache size (measured sizes, effect not measured). Ours 11,280 slots (21.50 GiB; 11,320 with global fill) against vanilla 12,575 (23.87 GiB): 1,295 fewer slots (10 percent). Our other device allocations before the cache are
2.3 GiB larger (dense weights 4,578 MiB against 1,466 + 2,019; prompt executor and MTP drafter 2,092 MiB against 835 + 213; embedding table 324 MiB; reserve 1,000 MiB against 700 + 218). Fill order is not the cause:
o-global(vanilla's global profile-order fill,PER_LAYER=no) gives the same VRAM share (78-84 percent). - Draft (measured).
port.draft_committed1.7-2.4 ms against vanilla's 0.8-1.1 ms per round; our drafter runs 114-195-node graphs (mtp round graph rows N,chain-step graph). The kernel-level cause is the work ofclaude/decode-sass. - Adaptive wait (measured).
apply_pendingblocks on the previous swaps (0.46-0.66 ms per round, job 803 decision); vanilla's wait is 0.06-0.31 ms. The difference follows from ours issuing 5 times more swaps.
Explicitly not the cause (measured): the tail skip (section 3); global against per-layer slot fill; tokens per round (similar); the CPU pool width (15 workers both).
5. Next leaves (S1.4), exact configurations
- N1
o-seedoff: ours pinnedbin-e2e4, therest-e2e-ab2.shenvironment plusLELEKA_ORIGINAL_SERVE_SEED=off; paired witho-def(same environment without it), 3 repeats each, same 245k session; record per-block window series as inours-decode-5090.mdsection 4, tokens/s and per-round ms. Quality: placement-only (GPU against CPU rounding), so greedy ids are not invariant; gate with the teacher-forcedq_tail_gateofrest-q-256kas for the sized cache. If the burst vanishes (windows 0-20 near 13 ms), the default ofLELEKA_ORIGINAL_SERVE_SEEDfor prompts above a few thousand tokens becomes the first measured fix (shipped profileengine_envor a length cap in code). - N2
o-skip7(diagnostic only, lossy, never default) andv-nsk-t(clean vanilla pair): close the lossy share. - N3 memory footprint: free the 2.3 GiB (MTP and prompt executor, dense copy) for 1,295 slots; effect to be sized with
o-s10000(10,000 slots) as the slope arm. - N4 draft: compare the MTP graph kernels (CUPTI windows
t1/of the kernel agent) for the 0.4 ms/token.