Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
20 KiB
Laptop pair series: ours against vanilla Strata on the RTX 3080 laptop (native Windows)
Status 2026-11-01: prepared, not run. No GPU job was started. Branch claude/laptop-pair (worktree .git/wt/laptop-pair), based on
main d29e3dba2. Everything here is a plan and tooling; no number on this page is a measurement of this series.
1. Question and arms
On the 3080 laptop (docs/laptop-profile.md, docs/laptop-vs-vanilla.md), at the shipped settings of both products and in the Turbo state only:
how do current main and vanilla Strata compare end to end, from 8k tokens of context up to the largest size this setup can run?
| arm | what | switches |
|---|---|---|
ours |
main d29e3dba2, release build with the sm86 companions, leleka up --native --foreground --preset workstation (the laptop preset, lossless defaults: chunk 6144, prefix cache on, 7 CPU workers, 256k context) |
LELEKA_BRINGUP_TRACE=1 (log lines only: PREFILL-PROFILE per chunk, DBG window per verify window; needed for the log-stall rule and ms/round) |
v1 |
vanilla Strata as installed (release 0.2.6, engine 0.1.50, the comparator of docs/laptop-vs-vanilla.md), shipped defaults: route tail skip ON (lossy), prefill CPU share ON |
STRATA_DECODE_TIMING=1 STRATA_VERIFY_PROFILE=1 (log lines, as in 2026-10-28-s0-7-vanilla-arms.md) |
v2 |
the same vanilla, lossless-comparable | v1 + STRATA_ROUTE_TAIL_SKIP=0 STRATA_PREFILL_CPU_SHARE=0 (the 5090 baseline-pair v2) |
Vanilla command (the S0.7 Windows command, still UNVERIFIED-ON-WINDOWS): strata launch --model iq3_s --family qwen --model-path <assets>\model --context 256k --kv int8 --vision off --parallel 1 --tune skip --access local --port 8090 --no-tui --yes, stopped with strata launch --stop. Every other
LELEKA_* / STRATA_* variable is removed from the arm's environment; env.txt records what was set.
2. Workload
One arm = one engine start, two requests, one engine stop (scripts/e2e/laptop/laptop-pair-client.py):
- request 1: about N tokens of real Rust source (the repository's
crates/at the install commit,git archive, files in sorted path order, cut at 3.3 characters per token) plus a question: cold prefill of N tokens, then 300 tokens of decode at depth N; - request 2: request 1 + a second user message of about 2,048 tokens of the next source files and a second question: prefix reuse, a 2k delta (the agent shape: a tool result appended), 300 tokens of decode at depth N + 2k.
The model's reply is not put into the history, so both requests are byte-identical on every arm (request_body_sha256 is recorded and the analysis
refuses a size whose arms differ). Temperature 0, max_output_tokens 300, streamed /v1/responses. The prompts are frozen at install
(inputs\prompts\prompt-<N>.json, sha256 in MANIFEST.sha256); the token counts are estimates, the engines report the real ones.
Sizes (target prompt tokens), in the order of the laptop-profile.md "Open" list: 8192, 32768, 65536, then the largest feasible.
| size | arm timeout | fits the BOOTSTRAP 15-minute arm cap? |
|---|---|---|
| 8192 | 480 s | yes |
| 32768 | 660 s | yes |
| 65536 | 840 s | yes |
| 98304 (96k) | 900 s | the largest that fits: estimate vanilla 150 s load + 98k / 195 tok/s = 505 s prefill + 60 s decode + 2k delta = about 730 s; ours about 600 s |
| 131072 | 1,500 s | no: needs the S3.7 thresholds file (vanilla alone about 690 s of prefill + load + decode > 900 s) |
| 229376 (+2k delta, under the 262,144 ceiling) | 2,700 s | no: needs S3.7; the 256k stretch (~45 min) the owner allowed on 2026-10-26 for native runs |
The VRAM is not the limit (both engines ran 245k sessions on this card, laptop-vs-vanilla.md sections 4 and 11); the binding limit is the
watchdog's BOOTSTRAP rule: an arm longer than 15 minutes is refused until the measured S3.7 thresholds file exists (2026-10-28-s3-1-laptop-safety-protocol.md
section 5). The 128k and 229k stages are in the script but the watchdog refuses them with the BOOTSTRAP file; nobody should write an "S3.7" file
without the S3.7 measurement. Run 96k only after the analysis of 64k prints its projection (below 840 s for every arm).
3. Guard
Every arm runs as three nested processes (all existing code is reused unchanged; only the arm driver and the thresholds file are new):
scripts/laptop/win/guard.ps1: STOP file refusal, the machine lock (artifacts\locks\LAPTOP_GPU.lock, created by the series runner, verified by run id), crash check (boot time, Kernel-Power 41, BugCheck) before and after, Job Object containment (nothing the arm starts outlives it; measured 0.2 s kill), post-abort check (noleleka-*/strata-*process left), 600 s cool-down after an abort, STOP file after a STALL or crash evidence.scripts/laptop/win/watchdog.ps1withdocs/experiments/laptop-pair-3080.thresholds.json(the S3.1 BOOTSTRAP instance with one stricter value: 85 C instead of 90): cool-down 120 s after the previous arm; idle preflight (enforced limit >= 100 W, no SW power cap / thermal slowdown, not P5); then nvidia-smi every second (stricter than the 30 s the owner asked for): abort on P5 + memory clock < 2 GHz + power cap / thermal slowdown (the OEM 30 W signature), an enforced limit < 100 W, > 85 C, an unreadable field; STALL on a gap > 10 s between samples; the arm timeout.samples.tsvholds the 1 Hz series (P-state, SM / memory clock, power, throttle reasons, enforced limit, temperature, utilisation, VRAM).laptop-pair.ps1 -Action Arm(the arm driver): starts the engine, waits for ready, runs the client, stops the engine, copies the logs. Every 30 s it writes one line (progress.tsv, also on the console): elapsed, phase, engine-log bytes, the last 1 Hz sample, AC status (Win32_Battery), engine working set / private bytes, available RAM. Log-stall rule: when neither the engine log nor the client's stream advanced for 300 s (720 s while a prompt is being read or the engine loads: vanilla prints no line per prefill chunk) and every watchdog sample in that window shows >= 95 % GPU utilisation (at least window / 2 samples), it writesSTALLinto the guard's run root: the guard kills the job and writes the STOP file (all laptop GPU work stops until the owner has inspected the machine). Loss of AC aborts the arm. The driver stops the engine 60 s before the arm timeout so a slow arm ends cleanly instead of by a kill.
The series runner refuses to start an arm unless, read at that moment (state.ps1, read-only): the power scheme is Turbo, the laptop is on AC,
the enforced GPU limit is >= 100 W, the GPU is not in P5 and has no power-cap / thermal-slowdown bit at idle, the AC sleep / hibernate / display /
console-lock timeouts are 0, WSL and Docker are not running, no build (cargo, rustc, cl, link, nvcc, msbuild, cmake, ninja) uses
CPU, no leleka* / strata* process exists, the ports 8081 / 8090 / 18766 / 18080 are free, no STOP file and no lock exist. P0 cannot be required
at idle (the GPU idles in a low P-state); P0 under load is a validity rule: an arm whose busy samples (utilisation >= 50 %) are in P0 less than 90 %
of the time is not valid.
The runner ends the series on STALL, crash evidence, an unclean abort, a refused precondition or two consecutive failed arms. One arm per guard,
one guard at a time; between arms: GPU <= 55 C (at most 300 s of waiting, recorded in settle.txt), then the watchdog's 120 s cool-down.
4. What the owner must do (an agent sets none of it)
Read on 2026-11-01 23:10 (artifacts\laptop-pair\inventory\state-prep.json): scheme Turbo, on AC, AC sleep / hibernate / display /
console-lock timeouts 0, no WSL, no Docker, no crash event since boot 2026-10-29 03:03 UTC. Not met: enforced GPU power limit 30 W, P5 at idle
(the OEM 30 W profile, the BSOD 0x19C state).
- Charger connected; Armoury Crate (or the OEM tool) in Turbo (or Manual with the GPU at its full limit):
nvidia-smi --query-gpu=enforced.power.limit,pstate --format=csvmust show >= 100 W (seen 110-140 W) and not P5.scripts\dev\laptop-turbo.ps1is the owner-run setter of the Windows scheme and timeouts; it cannot set the GPU limit. - Screen unlocked for the whole run; Settings > Accounts > Sign-in options > require sign-in: Never; nothing else running (no IDE build, no
browser video, no games, no WSL:
wsl --shutdown, no Docker). - Model files inside the work folder (owner rule 2026-10-29: a model path outside it is a bug).
C:\Users\pavel\work\leleka\modelsdoes not exist today; the Windows volume ofdocs/windows.mdisC:\leleka\assets(outside, not read by this preparation). Expected layout:models\leleka-gates\assets\model\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-0000{1,2}-of-00002.gguf(54,817,524,224 and 28,800,138,432 bytes),models\leleka-gates\assets\qwen-iq3-s-l2-v4.kar(+.provenance.json, 55,295,529,472 bytes),assets\data\mtp-rt\,assets\data\expert-profile.bin(sha2568f59b4aa...),assets\tokenizer-assets\. On the same volumeMove-Item C:\leleka\assets C:\Users\pavel\work\leleka\models\leleka-gates\assetsis a rename, not a copy. Ours verifies the pinned digest (sha256:80d5e333...66a3) at Prepare; vanilla reads the same shards (--model-path). - cuBLAS 12 DLLs (ours):
models\cublas\bin\cublas64_12.dll+cublasLt64_12.dll(copy of the existing%LOCALAPPDATA%\leleka\cublas\bin), or pass-CublasDir. Ours runs with--no-install-cublas, so nothing is downloaded. - The vanilla launcher: its path (
-VanillaStrata, e.g. thestrata.exe/strata.cmdof the 0.2.6 install used inlaptop-vs-vanilla.md;stratais not on PATH). Vanilla keeps its own state and packs in%LOCALAPPDATA%\Strata(its product layout; the series does not change it). It cannot be rebuilt here: this laptop has no CUDA toolkit (nvcc) and no CMake, and the pinned source41cf05a0is app 0.2.5 anyway. - Confirm in chat (the orchestrator records it): the BSOD 0x19C history and the exposure (section 7), and each GPU start below.
5. Commands
All from PowerShell, powershell -NoProfile -ExecutionPolicy Bypass -File <script> ... (never Set-ExecutionPolicy). T =
C:\Users\pavel\work\leleka\artifacts\laptop-pair\inputs\tools\laptop-pair.ps1 (the frozen copy; Smoke and Series refuse any other copy).
| step | command | GPU | time |
|---|---|---|---|
| 0. freeze inputs (done by this preparation, see section 8) | .git\wt\laptop-pair\scripts\e2e\laptop\laptop-pair.ps1 -Action Install |
no | 1 min |
| 1. record vanilla | T -Action Vanilla -VanillaStrata <path> |
no | seconds |
| 2. prepare ours | T -Action Prepare (leleka up --native --mode none + leleka verify --native: hashes 138 GB) |
no | 2-10 min |
| 3. dry self-test | T -Action SelfTest; optionally scripts\laptop\win\test_watchdog.ps1, test_guard.ps1 (no GPU, fake nvidia-smi) |
no | 1-3 min |
| 4. check | T -Action Check -VanillaStrata <path> (exit 0 = ready; else the list of unmet preconditions, nothing changed) |
query only | 30 s |
| 5. smoke | T -Action Smoke (ours) and, after it passed, T -Action Smoke -SmokeArm v2 -VanillaStrata <path> |
yes | 5-7 min each |
| 6. series 8k | T -Action Series -Sizes 8192 -Blocks "1 2" -VanillaStrata <path> |
yes | ~55 min |
| 7. series 32k, 64k | -Sizes 32768 (~65 min), then -Sizes 65536 (~80 min) |
yes | |
| 8. 96k | -Sizes 98304 only when the 64k projection is below 840 s for every arm |
yes | ~95 min |
| analysis | python -I <inputs>\tools\laptop-pair-analyze.py <series dir> [--csv runs.csv] (Series runs it at the end into ANALYSIS-*.txt) |
no |
-Blocks picks the arm orders (1: ours v1 v2, 2: v2 v1 ours, 3: v1 v2 ours, 4: ours v2 v1, 5: v2 ours v1, 6: v1 ours v2; 1-6 balance positions
and neighbours, as in scripts/e2e/decode/baseline-pair-ab.sh). More blocks per size: -Blocks "3 4" in a later sitting (new -SeriesName, the
analysis is per series directory; pairs are formed inside a block only).
Smoke (step 5): what it proves and the pass criteria
One guarded ours arm: preflight, engine start, request 1 of the 8k prompt with 64 output tokens, stop; timeout 420 s. laptop-pair-analyze.py --smoke
prints PASS / FAIL for: guard exit 0 (Job Object containment), watchdog COMPLETED with 0 missing samples and a 1 Hz series that covers the run,
the request answered, P0 in >= 90 % of the busy samples, enforced limit >= 100 W throughout, no SW power cap under load, < 85 C, Turbo + AC before
and after, the engine stopped with nothing left; plus VRAM peak, working-set peak and available RAM. It also exercises the lock hand-over
(runner -> guard -> watchdog), the cool-down stamp and the progress.tsv 30 s lines. The abort paths (STALL, P5 signature, timeout, dead-man) are covered
without a GPU by test_watchdog.ps1 / test_guard.ps1 and by -Action SelfTest (log-stall rule); deliberately triggering one on the real GPU would
write the STOP file and is not part of the smoke.
6. What is recorded per arm
Directory artifacts\laptop-pair\runs\<series>\s<size>-b<block>p<pos>-<arm>\:
pre-state.json,post-state.json(state.ps1: power scheme, AC, timeouts, enforced and max power limit, GPU P-state / clocks / throttle / temperature, WSL / Docker, top processes, crash events),settle.txt,arm-params.json,command.txt;guard\guard_summary.json;wd\samples.tsv(1 Hz),wd\watchdog_summary.json(thresholds sha256, series sha256);arm\arm.json(load to ready, stop time, outcome, peaks: engine working set / private bytes, minimum available RAM, AC),arm\progress.tsv(30 s),arm\env.txt,arm\client\session.json(per request: TTFT, decode tok/s and seconds, input / cached / output tokens, status, request-body sha256), oursarm\ours-logs\*.log(engine, gateway, daemon), vanillaarm\engine.log+launch.out.txt;- series level:
SERIES.txt,MANIFEST.sha256copy,vanilla-identity.txtcopy,ledger.tsv(one line per arm: run id, arm, size, guard exit, watchdog outcome),ANALYSIS-*.txt,runs.csv.
The analysis (laptop-pair-analyze.py, after baseline-analyze.py) derives: R1 / R2 TTFT, client prefill tok/s ((input - cached) / TTFT), engine-side
prefill tok/s (ours PREFILL-PROFILE, vanilla "read in X ms"), decode tok/s, ms/round and tokens/round (ours: request outcome ... rounds=R and the
client decode time; vanilla: G generated in X ms, drafts accepted A, rounds = G - A), R1+R2 wall, load to ready, GPU SM / memory clock and power over
the busy samples, enforced limit min / max / spread, max temperature, P0 and power-cap shares, VRAM peak. Validity per run as in section 3 plus: the
arm's switches visible in its own log (v1 tail skip ON; v2 tail skip and CPU share off; ours outcome lines present), identical request bodies across the
arms of a size. Pairs: ours - v1, ours - v2, v1 - v2 inside a block, only when the two arms' mean enforced limits are within 10 W (the E2 validity band).
7. Duration and exposure
Per-arm estimates from laptop-vs-vanilla.md rates (ours prefill ~280 tok/s and load 80-130 s; vanilla ~195 tok/s, load unknown on native Windows,
assumed 150 s; decode 7-10 / 11-16 tok/s), plus ~4 min per arm of settle, cool-down 120 s and state reads:
| size | ours arm | vanilla arm | block (3 arms) | 2 blocks |
|---|---|---|---|---|
| 8k | ~4.5 min | ~4.5 min | ~26 min | ~55 min |
| 32k | ~6 min | ~6.5 min | ~32 min | ~65 min |
| 64k | ~8 min | ~9.5 min | ~40 min | ~80 min |
| 96k | ~10 min | ~12 min | ~46 min | ~95 min |
8k-64k with two blocks each: about 3.4 h of wall, 2.3 GPU-hours; 96k adds about 1.6 h. Each arm is one engine stretch of at most 15 minutes, followed by an idle GPU for at least 2 minutes. The BSOD history (0x19C under long WSL CUDA runs in the 30 W profile) is why the preconditions refuse the 30 W state.
8. Inventory and build (2026-11-01)
| item | state |
|---|---|
| ours source | main d29e3dba2 (worktree .git/wt/laptop-pair, re-checked out with core.autocrlf=false: the plain worktree checkout had all 210 text PTX files as CRLF because the repository config has core.autocrlf=true; after the re-checkout git ls-files --eol '*.ptx': 210 w/lf, 61 -text) |
| ours build | scripts\windows\build-release.ps1 (cargo 1.99.0 / rustc 1.99.0, --release --locked, strata-desktop-core --features sm86), CARGO_TARGET_DIR = the worktree's target\; output .git\wt\laptop-pair\dist\bin, leleka version: 0.1.0 |
leleka.exe |
7ea19ad44e0b212a94ab098ce2b05e8821ca5f70eacd0989bc174c64038ef600 (2,569,216 B) |
leleka-inference.exe |
53d27d6f40374327faff28ae64fe56f663df02d4a42c20c9e70ee30fbc03db5c (152,215,552 B) |
leleka-daemon.exe |
45124ea3e2163b3a6e8430dd0c58400041de52357c217f2ce30e85727074d685 |
leleka-cli.exe |
83a36e72e4ab1d51d42c53f63c19cbe27e90109b8ca13fce1fce560840bfbd69 |
strata-next.exe |
c3fe1804a5d5f3bfb7aa25f9b77fb0a8b64337e9d5967a56fac3362f15d45ed9 |
| vanilla | not inside the work folder and not on PATH; not buildable here (no nvcc, no CMake, no CUDA toolkit); the installed 0.2.6 is the comparator (owner gives its path, section 4.5) |
| model, profile, cuBLAS | not inside the work folder (section 4.3, 4.4); nothing outside it was read |
| guard / watchdog / state | scripts/laptop/win/{guard,watchdog,state}.ps1 unchanged; a dry chain test (guard -> watchdog -> a stub arm, fake nvidia-smi, scratch artifacts root) passed: lock verified at both levels, Job Object containment, COMPLETED, lock released |
| frozen inputs (step 0, done) | artifacts\laptop-pair\inputs (git-ignored, read-only, 1,691 files): tools, bin-ours (the five binaries above, BUILD.txt), corpus (git archive d29e3dba2 crates, 1,669 files), prompts (PROMPTS.txt: prompt-8192 8eca17ec..., -32768 81a8dbaf..., -65536 1edb83a7..., -98304 93277c92..., -131072 d6020bf0..., -229376 af140b93...), PYTHON.txt (3.9.13); MANIFEST.sha256 = a0da29805f160fbc17eccc1da9094c4555708c0ce5c42e084f2401882b20e4ba, installed from claude/laptop-pair 5c408d837 (= d29e3dba2 + this page and its scripts; the serving code is d29e3dba2's) |
| tools of this page | scripts/e2e/laptop/laptop-pair.ps1 (-Action SelfTest: 7 of 7), laptop-pair-client.py (tested against a fake SSE server), laptop-pair-analyze.py (tested on synthetic runs, normal and --smoke), docs/experiments/laptop-pair-3080.thresholds.json (valid against the S3.1 schema: 2026-10-28-s3-1-check_bootstrap.py --validate) |
9. Limits and open points
- Under BOOTSTRAP the watchdog marks every record
countable_under_bootstrap: false: these pairs are evidence for the owner's decision, not countable pairs of the STRA-245 series; n = 2 blocks per size is far below the charter's 30 repeats. Report per-pair deltas and the spread, not a CI. - Page cache: no reset (no administrator); the two products read different files (ours the GGUF shards + KAR archive, vanilla its packed experts and the
shards), so an arm inherits what the previous one left. The block permutations balance it;
pre-state.jsonrecords the machine before each arm. - Vanilla's Windows launch command, its engine-log location (taken from the launcher's "Engine log" line) and its stop are unverified on this laptop;
the smoke with
-SmokeArm v2checks them before the series. - The log-stall rule cannot see vanilla's prefill (no log line per chunk without
STRATA_PREFILL_TIMING, which adds CUDA events): during a vanilla prompt read the window is 720 s, longer than any BOOTSTRAP arm, so there the 1 Hz watchdog rules and the arm timeout are the guard. - The 229k prompt is cut by an estimate (3.3 characters per token); check the real ratio from the 96k
input_tokensbefore using it. - P5 at idle while Turbo is set: if the owner's Turbo state still shows P5 at idle with a >= 100 W limit and no cap bit, the protocol (S3.1) refuses; changing that rule is the orchestrator's decision, not the script's.