docs: 5090 decode breakdown, vanilla and ours, gap table (STRA-258/259/260)
Per-round component tables of vanilla Strata 0.2.6 (default, DT-only, tail skip off) and of the pinned ours build over the 5-turn 245k session, the per-component gap table (all rows INCONCLUSIVE: no A/A series), and the measured causes: request cold-start burst of expert misses, late-window hit rate, cache size, draft cost. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
406b40a882
commit
e809ca7a84
@@ -0,0 +1,64 @@
|
||||
# 5090 decode gap table: ours against vanilla Strata 0.2.6, per component (STRA-260, COMPONENT_TABLE)
|
||||
|
||||
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-t` against `v-def-t`) and ours with `LELEKA_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
|
||||
|
||||
1. **Cold start of every request (measured, from our `DBG window` lines).** 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.md` section 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.
|
||||
2. **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.rs` `adapt_tuning`, `generate.cpp` lines 10420-10475), but swaps 18 experts per round
|
||||
against vanilla's 3-8, i.e. its placement keeps being wrong.
|
||||
3. **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).
|
||||
4. **Draft (measured).** `port.draft_committed` 1.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 of `claude/decode-sass`.
|
||||
5. **Adaptive wait (measured).** `apply_pending` blocks 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 pinned `bin-e2e4`, the `rest-e2e-ab2.sh` environment plus `LELEKA_ORIGINAL_SERVE_SEED=off`; paired with `o-def` (same environment without it), 3 repeats each, same 245k session; record per-block window series as in
|
||||
`ours-decode-5090.md` section 4, tokens/s and per-round ms. Quality: placement-only (GPU against CPU rounding), so greedy ids are not invariant; gate with the teacher-forced `q_tail_gate` of `rest-q-256k` as for the sized cache.
|
||||
If the burst vanishes (windows 0-20 near 13 ms), the default of `LELEKA_ORIGINAL_SERVE_SEED` for prompts above a few thousand tokens becomes the first measured fix (shipped profile `engine_env` or a length cap in code).
|
||||
- N2 `o-skip7` (diagnostic only, lossy, never default) and `v-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.
|
||||
@@ -0,0 +1,95 @@
|
||||
# Our per-round decode breakdown on the RTX 5090 with the STRA-258 partition (STRA-259, COMPONENT_TABLE)
|
||||
|
||||
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 by
|
||||
`scripts/e2e/run-e2e.sh` inside a holder job with the shipped-shape environment of `rest-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 other `LELEKA_*` override.
|
||||
- Tracing that was ON (it does not change execution but costs host time): `LELEKA_BRINGUP_TRACE=1` (the `DBG window ...` line per window and the `DBG[..s] port.* ... ms` lines) and
|
||||
`LELEKA_PREFIX_TRACE=1`. The same tracing was on in the four earlier arms `rest-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) plus `rest-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 no `cpu:` 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 13 `avx512*` 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.py` run (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 the `DBG` lines).
|
||||
- The no-trace control run, the CUPTI window and the `s1-decode/o-seedoff` and `o-skip7` arms were queued and not run.
|
||||
@@ -0,0 +1,104 @@
|
||||
# Vanilla Strata 0.2.6 per-round decode breakdown on the RTX 5090, 256k session (STRA-258, COMPONENT_TABLE)
|
||||
|
||||
Date 2026-10-28/29. Leaf STRA-258 of STRA-245 (S1.1). Level of every number on this page: COMPONENT_TABLE (per-round component timings of one engine). Nothing here is
|
||||
END_TO_END evidence and nothing here is used for the AC1/AC3 verdict. Machine: `rnr5090` (RTX 5090, driver 595.99, Ryzen 9 9950X3D), vanilla launcher 0.1.51 (`562a0c2e`),
|
||||
engine 0.1.50 (`strata` sha256 `ae49d5da...4776`), model digest mapping and launch command of `docs/experiments/2026-10-28-s0-7b-runbook.md` sections 5 and 10.
|
||||
Raw logs stay on the server (not in Git).
|
||||
|
||||
## 1. What was run
|
||||
|
||||
Session: `long_session.py --turns 5 --target-tokens 245000 --max-output 300` (sha256 `6d7017ea...2863d`, source snapshot of runbook 4.2), one engine per run, `--access local`.
|
||||
Largest prompt of the session: **242,843 tokens** (default run) / 242,921 (DT-only run) / 243,221 (no-skip run); turn 1 = 45,766 tokens. Greedy-like reply content is empty in all runs
|
||||
(`reply_sha256 e3b0c442...`, the model stays in its reasoning part), so replies do not differ between arms; the history is the same.
|
||||
|
||||
| Run (server dir) | Variant | Instrumentation | Windows used |
|
||||
| --- | --- | --- | --- |
|
||||
| `vanilla-timing` (job of 2026-10-28 00:35, validated here, not re-run) | shipped defaults, route tail skip ON (rank 7) | `STRATA_DECODE_TIMING=1 STRATA_VERIFY_PROFILE=1` | 5 requests, 800 windows |
|
||||
| `s1-decode/v-def-t` (2026-10-28 23:17Z) | shipped defaults, tail skip ON | `STRATA_DECODE_TIMING=1` only | 5 requests, 873 windows |
|
||||
| `s1-decode/v-nsk-prof` (2026-10-28 22:41Z) | lossy path off: `STRATA_ROUTE_TAIL_SKIP=0` | `STRATA_DECODE_TIMING=1 STRATA_VERIFY_PROFILE=1` | 3 requests, 502 windows (see the caveat in section 5) |
|
||||
|
||||
The row (b) environment is the single variable of S0.7 (`STRATA_ROUTE_TAIL_SKIP=0`). The `vanilla_cpu_family` block: vanilla prints no `cpu:` line (S0.7 page, section 3); the engine log
|
||||
of these runs contains no `cpu:` line either (grep-checked on `engine.log`).
|
||||
|
||||
**Perturbation, stated.** `STRATA_DECODE_TIMING` takes clock reads around the window phases; `STRATA_VERIFY_PROFILE` adds GPU stage events. The earlier untimed run
|
||||
(`vanilla-long-256k`, 2026-10-27, no flags) decoded at 121.7 / 144.2 / 147.7 / 164.4 / 194.3 tok/s (mean 154.5) on the same text, i.e. a per-window cost of about 12.3 ms at the observed
|
||||
1.9 tokens per window. The timed default runs below decode at 109.7 to 136.7 tok/s: timing inflates the default variant by roughly 20 percent (the `stage` column, section 3, is the visible part).
|
||||
The numbers on this page are therefore per-round COMPONENT shapes under timing, not the untimed speed.
|
||||
|
||||
## 2. Component partition used by STRA-258/259/260
|
||||
|
||||
Only four parts of vanilla's `ms/window` are additive: `verify + commit/emit + draft + adapt (wait + join) = ms/window` (checked: 14.57 + 0.01 + 0.92 + 0.25 = 15.75 against 15.76 printed).
|
||||
The sub-parts that vanilla prints inside `verify` (`GPU-reach wait`, `per-layer host`, `stage`) overlap in time and do NOT sum to `verify` (8.59 + 5.38 + 4.56 = 18.53 against 14.57),
|
||||
so they are listed as descriptors, never added.
|
||||
|
||||
| Component | Vanilla source (engine log field) | Additive |
|
||||
| --- | --- | --- |
|
||||
| verify window | `verify` | yes |
|
||||
| commit/emit | `commit/emit` | yes |
|
||||
| draft (MTP) | `draft` | yes |
|
||||
| adaptive tier | `adapt wait` + `join` | yes |
|
||||
| GPU-reach wait (descriptor) | `GPU-reach wait` | no |
|
||||
| per-layer host (descriptor) | `per-layer host [plan actq jobs CPU]` | no |
|
||||
| stage (descriptor) | `stage` | no |
|
||||
| tokens per window | `tokens/window` | n/a |
|
||||
| expert tier work (descriptors) | `CPU experts`, `VRAM hits`, `PCIe` per layer-window, `swaps/window`, hit rate line | n/a |
|
||||
|
||||
## 3. Table A: vanilla shipped defaults (tail skip ON), run `vanilla-timing` (DECODE_TIMING + VERIFY_PROFILE)
|
||||
|
||||
All times ms per window (one window = one verify round). Hit rate = VRAM hits / lookups of the request, as vanilla prints it (PCIe-read experts are in neither count).
|
||||
|
||||
| Prompt tokens | windows | tok/window | ms/window | verify | commit | draft | adapt wait | GPU-reach wait | per-layer host | stage | CPU exp/layer-window | VRAM hits/layer-window | swaps/window | hit % | decode tok/s |
|
||||
| ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| 45,766 | 165 | 1.82 | 15.76 | 14.57 | 0.01 | 0.92 | 0.25 | 8.59 | 5.38 | 4.56 | 0.37 | 22.39 | 8.5 | 98.0 | 115.4 |
|
||||
| 95,697 | 154 | 1.95 | 15.93 | 14.72 | 0.01 | 0.96 | 0.24 | 8.97 | 5.26 | 4.37 | 0.40 | 26.67 | 7.8 | 98.2 | 122.3 |
|
||||
| 151,635 | 152 | 1.97 | 14.44 | 13.35 | 0.01 | 0.89 | 0.18 | 8.98 | 3.88 | 3.22 | 0.30 | 24.47 | 6.2 | 98.6 | 136.7 |
|
||||
| 197,902 | 164 | 1.83 | 15.04 | 13.95 | 0.01 | 0.94 | 0.13 | 9.28 | 4.18 | 3.65 | 0.23 | 25.61 | 4.7 | 99.0 | 121.7 |
|
||||
| 242,843 | 165 | 1.82 | 14.96 | 13.93 | 0.01 | 0.94 | 0.08 | 9.28 | 4.16 | 3.73 | 0.18 | 24.37 | 3.4 | 99.2 | 121.6 |
|
||||
| **window-weighted mean (800)** | 800 | 1.875 | **15.23** | 14.11 | 0.01 | 0.93 | 0.18 | 9.02 | 4.57 | 3.91 | 0.30 | 24.7 | 6.1 | 98.6 | 123 |
|
||||
|
||||
Comparison with the item's range: the item reports 10.3-15.7 ms per round for vanilla; the measured per-turn totals under timing are 14.44-15.93 ms (mean 15.23), inside the upper end of that
|
||||
range. The lower end (10.3-12.3 ms) is the untimed speed (the 154.5 tok/s run above at 1.9 tokens per window = 12.3 ms), which this timed run cannot reproduce: the difference is the timing overhead.
|
||||
|
||||
## 4. Table B: the same variant with DECODE_TIMING only, run `v-def-t`
|
||||
|
||||
| Prompt tokens | windows | tok/window | ms/window | verify | commit | draft | adapt wait | GPU-reach wait | per-layer host | stage | CPU exp/layer-window | VRAM hits/layer-window | swaps/window | hit % | decode tok/s |
|
||||
| ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| 45,766 | 153 | 1.96 | 17.13 | 15.65 | 0.01 | 1.15 | 0.31 | 7.73 | 6.24 | 5.34 | 0.41 | 24.49 | 10.3 | 97.9 | 114.5 |
|
||||
| 95,753 | 176 | 1.70 | 13.40 | 12.37 | 0.01 | 0.87 | 0.14 | 7.54 | 4.37 | 3.63 | 0.33 | 21.63 | 5.3 | 98.3 | 127.2 |
|
||||
| 151,699 | 170 | 1.76 | 13.76 | 12.70 | 0.01 | 0.93 | 0.11 | 7.91 | 4.33 | 3.76 | 0.25 | 23.88 | 4.7 | 98.8 | 128.3 |
|
||||
| 197,973 | 180 | 1.67 | 12.95 | 12.02 | 0.01 | 0.82 | 0.09 | 7.73 | 3.84 | 3.41 | 0.17 | 20.33 | 3.1 | 99.0 | 128.7 |
|
||||
| 242,921 | 194 | 1.55 | 14.09 | 13.19 | 0.00 | 0.83 | 0.06 | 7.92 | 4.82 | 4.48 | 0.14 | 20.91 | 2.6 | 99.2 | 109.7 |
|
||||
| **window-weighted mean (873)** | 873 | 1.72 | **14.18** | 13.12 | 0.01 | 0.91 | 0.14 | 7.77 | 4.68 | 4.10 | 0.25 | 22.1 | 5.0 | 98.8 | 121 |
|
||||
|
||||
The `VERIFY_PROFILE` flag is not what creates the `stage` column: Table B has no profile and shows the same 3.4-5.3 ms (Table A: 3.2-4.6 ms).
|
||||
|
||||
## 5. Table C: lossy path off (`STRATA_ROUTE_TAIL_SKIP=0`), run `v-nsk-prof`
|
||||
|
||||
Caveat that applies to every row of this table: the server was under memory pressure (about 20 GB of swap in use, the holder's 52 GB sealed memfd resident); the prefill of the first two
|
||||
requests of this run took 22.7 s and 383.6 s (a request failed once and was retried), so the session text was not the same as in Tables A and B (prompt sizes 152,043 / 198,299 / 243,221
|
||||
with 0 / 152,038 / 198,294 reused tokens). The decode windows themselves ran after the prefill finished; they are shown because they are the only skip-off measurement so far, and
|
||||
they are NOT a paired comparison with Tables A and B (different instrumentation: DECODE_TIMING + VERIFY_PROFILE; different time; thrashing host). A clean pair (`v-nsk-t`) was queued
|
||||
and not run because the server became unreachable (section 7).
|
||||
|
||||
| Prompt tokens | windows | tok/window | ms/window | verify | commit | draft | adapt wait | GPU-reach wait | per-layer host | stage | CPU exp/layer-window | VRAM hits/layer-window | swaps/window | hit % | decode tok/s |
|
||||
| ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| 152,043 | 175 | 1.71 | 11.85 | 10.70 | 0.01 | 0.87 | 0.27 | 8.54 | 1.48 | 0.06 | 0.69 | 21.24 | 8.1 | 96.4 | 144.6 |
|
||||
| 198,299 | 177 | 1.69 | 11.67 | 10.53 | 0.04 | 0.93 | 0.16 | 8.72 | 1.31 | 0.04 | 0.58 | 23.48 | 5.3 | 97.5 | 145.2 |
|
||||
| 243,221 | 150 | 2.00 | 11.92 | 10.72 | 0.04 | 1.01 | 0.10 | 8.99 | 1.24 | 0.05 | 0.52 | 25.52 | 4.2 | 97.9 | 167.8 |
|
||||
| **window-weighted mean (502)** | 502 | 1.79 | **11.81** | 10.65 | 0.03 | 0.93 | 0.18 | 8.75 | 1.34 | 0.05 | 0.59 | 23.4 | 5.9 | 97.2 | 152 |
|
||||
|
||||
## 6. Reading
|
||||
|
||||
- The additive parts, per token (ms/window divided by tokens/window): default (Table A) verify 7.53 + draft 0.50 + adapt 0.10 = 8.1 ms/token (123 tok/s under timing); skip-off (Table C) verify 5.95 + draft 0.52 + adapt 0.11 = 6.6 ms/token (152 tok/s).
|
||||
- The default variant under timing carries a `stage` of 3.2-5.3 ms per window and a `per-layer host` of 3.8-6.2 ms; the skip-off run shows `stage` 0.04-0.06 and `per-layer host` 1.2-1.5 ms. The untimed default
|
||||
(154.5 tok/s = 6.5 ms/token) is as fast as the timed skip-off run (6.6 ms/token). So the timed default numbers contain a timing cost that the skip-off run does not show; this page does not explain why
|
||||
(open: whether the skip decision path forces a host stage only while timing is on). Consequence for the gap analysis: the like-for-like vanilla row is ~6.5-6.6 ms/token, not 8.1.
|
||||
- Expert-cache hit rate of vanilla stays at 96.4-99.2 percent from the first long request on, with 12,575 slots (23.87 GiB, global profile order, "PROFILE, ranked by routing frequency, no eviction")
|
||||
and 3-10 adaptive swaps per window, in both variants. The skip-off run does not lose hit rate (96.4-97.9 percent).
|
||||
|
||||
## 7. Not done / not verified
|
||||
|
||||
- No COMPONENT record was produced for `validate_component.py` / `capture_vanilla.py` (STRA-315): the per-round arrays are on the server, which became unreachable at about 2026-10-28 23:25Z
|
||||
(ssh timeout, host unreachable from the laptop). The tables above are the engine's own per-request averages, so there is no distribution over rounds, only a per-request mean and the window count.
|
||||
- `v-nsk-t` (clean skip-off pair), CUPTI traces of vanilla (the kernel/SASS agent holds `claude/decode-sass`), and a repeat of Table A with the replay driver were queued and not run.
|
||||
- Both vanilla variants were run once per row; there is no A/A series, so every row of the gap table (`docs/experiments/decode-gap-5090.md`) is INCONCLUSIVE in the S0.10b sense.
|
||||
Reference in New Issue
Block a user