From 8b2d131f152606dde42b3099eedf77e31e5da5de Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Fri, 16 Oct 2026 13:21:55 +0200 Subject: [PATCH] docs: clean rerun of the batch-pass and speculation A/B; the earlier speculation run was disturbed (STRA-220) The ab_speculation run recorded in 87637c2 overlapped another session's GPU prefill probe (not in the busy check), so it is now marked disturbed and kept only for the record. Rerun on a quiet machine with the other session holding all heavy work (processes checked before, between and after; machine state before and after in the results file): - batch_cost ab, 9 rounds: identical logits in all 90 paired passes; time ratio with/without 1.02, 1.05, 0.94, 0.87, 0.83, 0.81, 0.80, 0.76, 0.76 for 1-9 tokens, confirming the first paired run. - ab_speculation, 3 pairs, outputs identical in all 24 runs: rewrite 1.54 (1.49, 1.61, 1.52; 1.25 before the change), diff 1.06, json 0.97, explain 0.97. The drafter replay predicted 1.59 / 1.15 / 1.00 / 0.99, so there is no hidden serving-loop cost; the rewrite drafts longer runs (39-41 verified batches instead of 43-56). Co-Authored-By: Claude Opus 5.5 --- .../results/batch-pass-multi-2026-10-16.txt | 115 +++++++++++++++++- docs/cpu-runtime.md | 28 +++-- 2 files changed, 129 insertions(+), 14 deletions(-) diff --git a/benchmarks/results/batch-pass-multi-2026-10-16.txt b/benchmarks/results/batch-pass-multi-2026-10-16.txt index eadaa948..d9ff60ee 100644 --- a/benchmarks/results/batch-pass-multi-2026-10-16.txt +++ b/benchmarks/results/batch-pass-multi-2026-10-16.txt @@ -90,8 +90,10 @@ n median ratio (ratios) - in-process paired run with a probe running on ~7.5 cores (7 rounds): median ratios n=2..9 1.037, 0.916, 0.921, 0.866, 0.797, 0.834, 0.757, 0.734 (n=1 1.017), consistent with the quieter paired run above. -## speculation A/B after the change (crates/cpu-worker/examples/ab_speculation.rs crates/gptoss/src/sampling.rs 3 320 14) -## started 2026-10-16 12:52 local after 60 s with no other model process; same prompts as speculation-ab-2026-10-16.txt +## DISTURBED, not used: speculation A/B after the change (ab_speculation crates/gptoss/src/sampling.rs 3 320 14) +## started 12:52 local after 60 s with no other model process, but another session's GPU prefill probe (gpu_prefill.exe, +## not in the busy check) ran for about 2.5 minutes inside this window and took memory bandwidth and power; superseded by +## the clean rerun at the end of this file ## (output text and id lines omitted; LELEKA_SPECULATION_LOG was not set, so acceptance counts were not captured) leleka-cpu-worker: read 12109565632 bytes of the model in 10.1 s (checksum 345869555) leleka-cpu-worker: gpt-oss loaded; kernels avx-vnni, 14 threads, context 1262, stop tokens [200002, 200012, 199999] @@ -130,3 +132,112 @@ default policy: geomean 1.160 min 0.991 [1.592, 1.151, 0.999, 0.991] (rewrite, d ## machine state after the speculation A/B (Capture-MachineState.ps1; the scripted capture before it failed on a path form) {"captured_utc":"2026-10-16T11:04:05Z","os_build":"26100","os_ubr":9711,"npu_driver_version":"32.0.100.4778","npu_status":"OK","igpu_driver_version":"32.0.101.8860","bios_version":"1.17.0","power_plan_guid":"381b4222-f694-41f0-9685-ff5bb260df2e","ac_online":true,"discharging":false,"available_mbytes":14535,"committed_bytes":22191890432,"commit_limit_bytes":43978014720,"cpu_samples":[{"utc":"2026-10-16T11:04:16Z","perf":91,"pct_max_freq":77,"mhz":1517,"utility":3},{"utc":"2026-10-16T11:04:18Z","perf":82,"pct_max_freq":72,"mhz":1503,"utility":1},{"utc":"2026-10-16T11:04:19Z","perf":72,"pct_max_freq":74,"mhz":1592,"utility":1}],"processes":328,"vmmemwsl_working_set_bytes":0,"docker_desktop_processes":0,"browser_processes":45,"browser_working_set_bytes":8140898304,"security_agent_running":true,"top_cpu_processes":[{"name":"claude","cpu_seconds":531},{"name":"claude","cpu_seconds":512},{"name":"claude","cpu_seconds":270},{"name":"Taskmgr","cpu_seconds":216},{"name":"chrome","cpu_seconds":208}],"reference_record":{"record_id":"RHW-WIN-265U-NPU","revision":1},"drift_result":{"os_build":"match","os_ubr":"mismatch","npu_driver_version":"match","igpu_driver_version":"match","bios_version":"match","power_plan_guid":"match","power_mode":"not-comparable","overall":"stale"}} + +## clean rerun, 2026-10-16 13:08-13:20 local, with the other session holding all heavy work +## other model\/compiler processes checked before, between and after (cargo\/rustc were still finishing at the start of +## batch_cost, so its first rounds ran slower; nothing else ran after 13:10) +== start Fri Oct 16 13:08:53 2026 +OTHER_PROCESSES_BEFORE: [cargo.exe 3592; cargo.exe 11096; rustc.exe 13328] +prefill of 900 tokens: 31.0 s; 14 threads +one-token kernel per token: +n median ms ms per token cost vs n single steps +1 87 87 1.00 (runs [96.0, 105.0, 97.0, 87.0, 84.0, 86.0, 94.0, 85.0, 86.0]) +2 132 66 0.76 (runs [149.0, 162.0, 187.0, 132.0, 128.0, 132.0, 124.0, 125.0, 126.0]) +3 187 62 0.72 (runs [206.0, 193.0, 328.0, 187.0, 190.0, 180.0, 168.0, 172.0, 176.0]) +4 240 60 0.69 (runs [256.0, 241.0, 245.0, 240.0, 237.0, 223.0, 220.0, 241.0, 240.0]) +5 278 56 0.64 (runs [309.0, 320.0, 299.0, 278.0, 265.0, 266.0, 274.0, 294.0, 266.0]) +6 345 58 0.66 (runs [380.0, 351.0, 345.0, 349.0, 313.0, 343.0, 321.0, 355.0, 317.0]) +7 392 56 0.64 (runs [392.0, 419.0, 416.0, 443.0, 369.0, 419.0, 368.0, 369.0, 364.0]) +8 464 58 0.67 (runs [622.0, 460.0, 471.0, 464.0, 411.0, 507.0, 481.0, 414.0, 413.0]) +9 487 54 0.62 (runs [510.0, 526.0, 576.0, 487.0, 464.0, 482.0, 494.0, 480.0, 471.0]) +phase breakdown, per token, summed over the measured rounds: +1 per token ms: qkv 12.7 | attention 5.5 | o-proj 10.2 | router 1.1 | gate+up 27.5 | activation 0.8 | down 15.7 | lm-head 17.4 | total 90.9 | distinct experts per layer 4.0 +2 per token ms: qkv 7.8 | attention 4.0 | o-proj 7.3 | router 0.8 | gate+up 24.8 | activation 1.2 | down 13.6 | lm-head 10.7 | total 70.3 | distinct experts per layer 5.5 +3 per token ms: qkv 6.9 | attention 3.4 | o-proj 5.4 | router 0.7 | gate+up 25.1 | activation 1.2 | down 14.3 | lm-head 9.5 | total 66.5 | distinct experts per layer 6.4 +4 per token ms: qkv 6.2 | attention 3.1 | o-proj 5.0 | router 0.6 | gate+up 22.5 | activation 1.2 | down 12.1 | lm-head 8.7 | total 59.4 | distinct experts per layer 7.8 +5 per token ms: qkv 5.8 | attention 2.8 | o-proj 4.7 | router 0.6 | gate+up 21.5 | activation 1.2 | down 11.6 | lm-head 8.9 | total 57.0 | distinct experts per layer 8.0 +6 per token ms: qkv 5.7 | attention 2.7 | o-proj 4.6 | router 0.5 | gate+up 21.7 | activation 1.2 | down 11.5 | lm-head 8.9 | total 56.8 | distinct experts per layer 8.7 +7 per token ms: qkv 5.6 | attention 2.6 | o-proj 4.5 | router 0.5 | gate+up 21.8 | activation 1.3 | down 11.5 | lm-head 8.6 | total 56.4 | distinct experts per layer 9.2 +8 per token ms: qkv 5.7 | attention 2.7 | o-proj 4.6 | router 0.5 | gate+up 22.5 | activation 1.4 | down 11.7 | lm-head 9.7 | total 58.9 | distinct experts per layer 9.1 +9 per token ms: qkv 5.5 | attention 2.5 | o-proj 4.4 | router 0.5 | gate+up 21.3 | activation 1.3 | down 11.2 | lm-head 8.7 | total 55.4 | distinct experts per layer 9.6 +multi-activation kernels: +n median ms ms per token cost vs n single steps +1 92 92 1.00 (runs [92.0, 102.0, 105.0, 93.0, 86.0, 85.0, 96.0, 92.0, 85.0]) +2 135 68 0.73 (runs [150.0, 169.0, 253.0, 132.0, 135.0, 134.0, 131.0, 126.0, 135.0]) +3 177 59 0.64 (runs [191.0, 180.0, 226.0, 177.0, 188.0, 161.0, 169.0, 164.0, 162.0]) +4 206 52 0.56 (runs [221.0, 208.0, 215.0, 206.0, 192.0, 195.0, 197.0, 213.0, 197.0]) +5 236 47 0.51 (runs [257.0, 264.0, 236.0, 240.0, 230.0, 227.0, 217.0, 239.0, 222.0]) +6 268 45 0.49 (runs [332.0, 278.0, 284.0, 280.0, 263.0, 268.0, 262.0, 262.0, 257.0]) +7 309 44 0.48 (runs [383.0, 336.0, 332.0, 309.0, 309.0, 323.0, 297.0, 305.0, 284.0]) +8 349 44 0.47 (runs [365.0, 349.0, 388.0, 351.0, 338.0, 347.0, 358.0, 323.0, 330.0]) +9 385 43 0.46 (runs [383.0, 385.0, 435.0, 391.0, 358.0, 416.0, 369.0, 402.0, 350.0]) +phase breakdown, per token, summed over the measured rounds: +1 per token ms: qkv 12.7 | attention 6.1 | o-proj 10.4 | router 1.2 | gate+up 28.5 | activation 0.9 | down 15.8 | lm-head 17.4 | total 92.9 | distinct experts per layer 4.0 +2 per token ms: qkv 8.5 | attention 4.7 | o-proj 7.4 | router 0.9 | gate+up 26.9 | activation 1.2 | down 14.8 | lm-head 11.5 | total 75.7 | distinct experts per layer 5.5 +3 per token ms: qkv 6.1 | attention 3.4 | o-proj 4.9 | router 0.7 | gate+up 22.7 | activation 1.2 | down 12.2 | lm-head 8.5 | total 59.8 | distinct experts per layer 6.4 +4 per token ms: qkv 4.9 | attention 3.0 | o-proj 3.9 | router 0.6 | gate+up 19.8 | activation 1.1 | down 10.7 | lm-head 7.2 | total 51.1 | distinct experts per layer 7.8 +5 per token ms: qkv 4.4 | attention 2.7 | o-proj 3.5 | router 0.5 | gate+up 18.4 | activation 1.2 | down 9.9 | lm-head 6.7 | total 47.3 | distinct experts per layer 8.0 +6 per token ms: qkv 4.3 | attention 2.8 | o-proj 3.3 | router 0.5 | gate+up 17.6 | activation 1.3 | down 9.5 | lm-head 6.6 | total 45.9 | distinct experts per layer 8.7 +7 per token ms: qkv 4.3 | attention 2.7 | o-proj 3.2 | router 0.5 | gate+up 17.9 | activation 1.3 | down 9.4 | lm-head 6.2 | total 45.6 | distinct experts per layer 9.2 +8 per token ms: qkv 3.9 | attention 2.6 | o-proj 3.1 | router 0.5 | gate+up 17.0 | activation 1.3 | down 9.0 | lm-head 6.1 | total 43.6 | distinct experts per layer 9.1 +9 per token ms: qkv 3.8 | attention 2.6 | o-proj 3.0 | router 0.5 | gate+up 16.6 | activation 1.4 | down 8.9 | lm-head 6.1 | total 43.0 | distinct experts per layer 9.6 +logits of the two arms identical bit for bit in all 90 paired passes +paired: time with multi-activation kernels / time without, per round +n median ratio (ratios) +1 1.020 [0.957, 0.975, 1.083, 1.076, 1.02, 0.99, 1.027, 1.086, 0.989] +2 1.047 [1.002, 1.047, 1.347, 1.001, 1.053, 1.013, 1.062, 1.003, 1.075] +3 0.935 [0.929, 0.935, 0.688, 0.951, 0.993, 0.899, 1.009, 0.949, 0.92] +4 0.865 [0.862, 0.865, 0.877, 0.857, 0.81, 0.876, 0.895, 0.885, 0.823] +5 0.832 [0.832, 0.823, 0.79, 0.862, 0.868, 0.853, 0.791, 0.812, 0.836] +6 0.809 [0.873, 0.793, 0.824, 0.802, 0.839, 0.782, 0.815, 0.738, 0.809] +7 0.802 [0.978, 0.802, 0.796, 0.699, 0.836, 0.771, 0.808, 0.825, 0.782] +8 0.758 [0.587, 0.758, 0.822, 0.756, 0.822, 0.684, 0.744, 0.781, 0.798] +9 0.756 [0.751, 0.731, 0.756, 0.804, 0.772, 0.862, 0.745, 0.837, 0.744] +OTHER_PROCESSES_BETWEEN: [] at Fri Oct 16 13:10:41 2026 +leleka-cpu-worker: read 12109565632 bytes of the model in 4.5 s (checksum 345869555) +leleka-cpu-worker: gpt-oss loaded; kernels avx-vnni, 14 threads, context 1262, stop tokens [200002, 200012, 199999] +ab_speculation: 4 prompts of [878, 874, 868, 856] tokens, 3 pairs, max_new 320, 14 threads +rewrite pair 0 speculate=false: 320 tokens, prompt 331 ms, decode 27684 ms (11.56 tok/s), identical=true +leleka-cpu-worker: speculation: 320 tokens, 41 verified batches, 222 of 230 drafted tokens accepted +rewrite pair 0 speculate=true: 320 tokens, prompt 84 ms, decode 18572 ms (17.23 tok/s), identical=true +leleka-cpu-worker: speculation: 320 tokens, 39 verified batches, 223 of 228 drafted tokens accepted +rewrite pair 1 speculate=true: 320 tokens, prompt 94 ms, decode 18862 ms (16.96 tok/s), identical=true +rewrite pair 1 speculate=false: 320 tokens, prompt 104 ms, decode 30350 ms (10.54 tok/s), identical=true +rewrite pair 2 speculate=false: 320 tokens, prompt 98 ms, decode 30216 ms (10.59 tok/s), identical=true +leleka-cpu-worker: speculation: 320 tokens, 39 verified batches, 224 of 227 drafted tokens accepted +rewrite pair 2 speculate=true: 320 tokens, prompt 89 ms, decode 19831 ms (16.14 tok/s), identical=true +leleka-cpu-worker: speculation: 303 tokens, 50 verified batches, 119 of 160 drafted tokens accepted +diff pair 0 speculate=true: 303 tokens, prompt 1212 ms, decode 25440 ms (11.91 tok/s), identical=true +diff pair 0 speculate=false: 303 tokens, prompt 94 ms, decode 28227 ms (10.73 tok/s), identical=true +diff pair 1 speculate=false: 303 tokens, prompt 92 ms, decode 29193 ms (10.38 tok/s), identical=true +leleka-cpu-worker: speculation: 303 tokens, 49 verified batches, 107 of 154 drafted tokens accepted +diff pair 1 speculate=true: 303 tokens, prompt 95 ms, decode 27434 ms (11.04 tok/s), identical=true +leleka-cpu-worker: speculation: 303 tokens, 31 verified batches, 61 of 96 drafted tokens accepted +diff pair 2 speculate=true: 303 tokens, prompt 98 ms, decode 30681 ms (9.88 tok/s), identical=true +diff pair 2 speculate=false: 303 tokens, prompt 102 ms, decode 30794 ms (9.84 tok/s), identical=true +json pair 0 speculate=false: 195 tokens, prompt 1133 ms, decode 20499 ms (9.51 tok/s), identical=true +leleka-cpu-worker: speculation: 195 tokens, 19 verified batches, 21 of 42 drafted tokens accepted +json pair 0 speculate=true: 195 tokens, prompt 104 ms, decode 21135 ms (9.23 tok/s), identical=true +leleka-cpu-worker: speculation: 195 tokens, 18 verified batches, 21 of 41 drafted tokens accepted +json pair 1 speculate=true: 195 tokens, prompt 103 ms, decode 21893 ms (8.91 tok/s), identical=true +json pair 1 speculate=false: 195 tokens, prompt 123 ms, decode 22325 ms (8.73 tok/s), identical=true +json pair 2 speculate=false: 195 tokens, prompt 119 ms, decode 21907 ms (8.90 tok/s), identical=true +leleka-cpu-worker: speculation: 195 tokens, 25 verified batches, 30 of 61 drafted tokens accepted +json pair 2 speculate=true: 195 tokens, prompt 105 ms, decode 23778 ms (8.20 tok/s), identical=true +leleka-cpu-worker: speculation: 162 tokens, 4 verified batches, 3 of 9 drafted tokens accepted +explain pair 0 speculate=true: 162 tokens, prompt 688 ms, decode 16908 ms (9.58 tok/s), identical=true +explain pair 0 speculate=false: 162 tokens, prompt 103 ms, decode 16678 ms (9.71 tok/s), identical=true +explain pair 1 speculate=false: 162 tokens, prompt 102 ms, decode 16520 ms (9.81 tok/s), identical=true +leleka-cpu-worker: speculation: 162 tokens, 4 verified batches, 3 of 9 drafted tokens accepted +explain pair 1 speculate=true: 162 tokens, prompt 105 ms, decode 17096 ms (9.48 tok/s), identical=true +leleka-cpu-worker: speculation: 162 tokens, 4 verified batches, 3 of 9 drafted tokens accepted +explain pair 2 speculate=true: 162 tokens, prompt 101 ms, decode 17053 ms (9.50 tok/s), identical=true +explain pair 2 speculate=false: 162 tokens, prompt 103 ms, decode 16557 ms (9.78 tok/s), identical=true +rewrite: plain median 10.59 tok/s, speculate median 16.96 tok/s, paired ratio mean 1.54 (runs [1.49, 1.61, 1.52]), outputs identical: true +diff: plain median 10.38 tok/s, speculate median 11.04 tok/s, paired ratio mean 1.06 (runs [1.11, 1.06, 1.0]), outputs identical: true +json: plain median 8.90 tok/s, speculate median 8.91 tok/s, paired ratio mean 0.97 (runs [0.97, 1.02, 0.92]), outputs identical: true +explain: plain median 9.78 tok/s, speculate median 9.50 tok/s, paired ratio mean 0.97 (runs [0.99, 0.97, 0.97]), outputs identical: true +OTHER_PROCESSES_AFTER: [] +== finished Fri Oct 16 13:20:48 2026 +STATE_BEFORE {"captured_utc":"2026-10-16T11:08:55Z","os_build":"26100","os_ubr":9711,"npu_driver_version":"32.0.100.4778","npu_status":"OK","igpu_driver_version":"32.0.101.8860","bios_version":"1.17.0","power_plan_guid":"381b4222-f694-41f0-9685-ff5bb260df2e","ac_online":true,"discharging":false,"available_mbytes":13949,"committed_bytes":22529998848,"commit_limit_bytes":43978014720,"cpu_samples":[{"utc":"2026-10-16T11:09:02Z","perf":165,"pct_max_freq":100,"mhz":1548,"utility":42},{"utc":"2026-10-16T11:09:03Z","perf":175,"pct_max_freq":83,"mhz":1639,"utility":31},{"utc":"2026-10-16T11:09:05Z","perf":187,"pct_max_freq":100,"mhz":1639,"utility":17}],"processes":343,"vmmemwsl_working_set_bytes":0,"docker_desktop_processes":0,"browser_processes":45,"browser_working_set_bytes":8089944064,"security_agent_running":true,"top_cpu_processes":[{"name":"claude","cpu_seconds":549},{"name":"claude","cpu_seconds":541},{"name":"claude","cpu_seconds":277},{"name":"Taskmgr","cpu_seconds":231},{"name":"chrome","cpu_seconds":211}],"reference_record":{"record_id":"RHW-WIN-265U-NPU","revision":1},"drift_result":{"os_build":"match","os_ubr":"mismatch","npu_driver_version":"match","igpu_driver_version":"match","bios_version":"match","power_plan_guid":"match","power_mode":"not-comparable","overall":"stale"}} +STATE_AFTER {"captured_utc":"2026-10-16T11:20:33Z","os_build":"26100","os_ubr":9711,"npu_driver_version":"32.0.100.4778","npu_status":"OK","igpu_driver_version":"32.0.101.8860","bios_version":"1.17.0","power_plan_guid":"381b4222-f694-41f0-9685-ff5bb260df2e","ac_online":true,"discharging":false,"available_mbytes":14599,"committed_bytes":22255783936,"commit_limit_bytes":43978014720,"cpu_samples":[{"utc":"2026-10-16T11:20:44Z","perf":81,"pct_max_freq":74,"mhz":1471,"utility":1},{"utc":"2026-10-16T11:20:45Z","perf":85,"pct_max_freq":71,"mhz":1562,"utility":2},{"utc":"2026-10-16T11:20:46Z","perf":84,"pct_max_freq":76,"mhz":1503,"utility":2}],"processes":337,"vmmemwsl_working_set_bytes":0,"docker_desktop_processes":0,"browser_processes":44,"browser_working_set_bytes":8007385088,"security_agent_running":true,"top_cpu_processes":[{"name":"claude","cpu_seconds":642},{"name":"claude","cpu_seconds":596},{"name":"Taskmgr","cpu_seconds":321},{"name":"claude","cpu_seconds":287},{"name":"chrome","cpu_seconds":219}],"reference_record":{"record_id":"RHW-WIN-265U-NPU","revision":1},"drift_result":{"os_build":"match","os_ubr":"mismatch","npu_driver_version":"match","igpu_driver_version":"match","bios_version":"match","power_plan_guid":"match","power_mode":"not-comparable","overall":"stale"}} diff --git a/docs/cpu-runtime.md b/docs/cpu-runtime.md index ef3cc52b..7d80299a 100644 --- a/docs/cpu-runtime.md +++ b/docs/cpu-runtime.md @@ -166,7 +166,10 @@ ratio; the machine was busier than for the first row, single step 108 ms): | cost in single steps after (line used by the drafter) | 1.00 | 1.58 | 2.00 | 2.42 | 2.84 | 3.27 | 3.69 | 4.11 | 4.53 | The gain grows with the batch because a token shares a weight row with more others: the Q8_0 projections see every -token, an expert only the tokens routed to it (about 2 at 4 tokens, 4 at 9). Plain decode (one token) is unchanged. +token, an expert only the tokens routed to it (about 2 at 4 tokens, 4 at 9). Plain decode (one token) is unchanged. A +rerun on a quiet machine (single step 87-92 ms, identical logits in all 90 passes) gave ratios 1.02, 1.05, 0.94, 0.87, +0.83, 0.81, 0.80, 0.76, 0.76 for 1-9 tokens, and passes of 1.52, 1.99, 2.31, 2.65, 3.01, 3.47, 3.92, 4.33 single steps +for 2-9 tokens, slightly below the drafter's line. A pass over n tokens now costs about 0.74 + 0.42 n single steps, so even a perfect 8-token draft gains at most about 2x, and a draft accepted 60% of the time still gains almost nothing. The drafter therefore estimates the acceptance of a drafted position separately by matched-context length (3, 4-7, 8-15, 16+ tokens; decaying counts), drafts the length whose expected @@ -182,22 +185,23 @@ speed-up of decode (mean of the three pair ratios): | task (output tokens) | inherited fixed-length drafter | cost-aware, noisy machine | same, quieter machine | default policy, noisy | with multi-activation kernels | | --- | --- | --- | --- | --- | --- | -| rewrite the file with two names changed (320) | 1.36 | 1.26 | 1.34 | 1.25 | 1.34 (1.41, 1.21, 1.39) | -| unified diff adding an attribute (303) | 0.94 | 1.00 | 1.15 | 1.10 | 1.04 (1.08, 1.07, 0.98) | -| functions as JSON (195) | 0.97 | 0.98 | 1.04 | 0.97 | 0.97 (1.02, 1.00, 0.88) | -| explain the file (162) | 0.96 | 0.96 | 1.01 | 0.98 | 0.94 (0.91, 0.93, 0.99) | +| rewrite the file with two names changed (320) | 1.36 | 1.26 | 1.34 | 1.25 | 1.54 (1.49, 1.61, 1.52) | +| unified diff adding an attribute (303) | 0.94 | 1.00 | 1.15 | 1.10 | 1.06 (1.11, 1.06, 1.00) | +| functions as JSON (195) | 0.97 | 0.98 | 1.04 | 0.97 | 0.97 (0.97, 1.02, 0.92) | +| explain the file (162) | 0.96 | 0.96 | 1.01 | 0.98 | 0.97 (0.99, 0.97, 0.97) | Plain decode ran at 8-9 tok/s on the noisy machine and 11-12 on the quieter one; pair-to-pair spread is about 5%, so the last two rows are within noise of 1.0. Copying output (rewrites, patches) gains 1.1-1.35x; new text neither gains nor clearly loses. Three pairs per prompt are not enough for percent-level claims, and these are four prompts, not an agent trace: the switch stays experimental and off by default. -The last column was run after the multi-activation kernels (`benchmarks/results/batch-pass-multi-2026-10-16.txt`; -plain decode 9.6-10.3 tok/s, outputs identical in all 24 runs). End to end it is within the pair-to-pair spread of the -column before it, so the cheaper verification pass is not yet visible in decode speed: replaying the recorded outputs -through the drafter with the new costs predicts 1.59, 1.15, 1.00 and 0.99 for the four prompts, so the serving loop -loses time that the pass-cost model does not see (to be profiled). The explanation prompt was slower with speculation -in all three pairs (0.91-0.99). +The last column was run after the multi-activation kernels on a quiet machine (no other model or compiler process; +`benchmarks/results/batch-pass-multi-2026-10-16.txt`; plain decode 8.9-11.6 tok/s, outputs identical in all 24 runs). The +rewrite now reaches 16-17 tok/s against 10.5-11.6 plain (1.54x, every pair above the 1.23-1.28 of the run before the +change); it drafts longer runs, 222-224 of 227-230 drafted tokens accepted in 39-41 verified batches (43-56 +before). The other prompts are unchanged within the spread. Replaying the recorded outputs through the drafter +predicts 1.59, 1.15, 1.00 and 0.99, close to what was measured. An earlier run of the same binary overlapped another +session's GPU prefill probe and gave 1.34, 1.04, 0.97 and 0.94; it is kept in the results file as disturbed. Verifying drafts on the integrated GPU or the NPU does not pay: both run a pass layer by layer with weights uploaded (GPU) or expanded and prefetched (NPU) every time, a fixed cost of seconds. One 9-token pass from position 0 took 7.3 s @@ -205,4 +209,4 @@ on the GPU (upload 1.2, attention 2.0, experts 3.0, readback 0.7) and 6.3 s thro on the CPU; neither is bit-identical to the CPU decoder (KL 1e-4 and 3e-4), so exactness would be lost as well. Keeping the weights resident on the GPU would need a second ~12 GB copy, which does not fit beside the CPU's mapping on this 32 GB machine (13-15 GB available during these runs). With this, CPU speculation can lift copy-heavy decode from about -10-12 to 13-16 tok/s; the 20+ tok/s goal of STRA-220 is not reachable this way on the single-channel laptop. +10-12 to 13-17 tok/s; the 20+ tok/s goal of STRA-220 is not reachable this way on the single-channel laptop.