docs: measured prompt-lookup acceptance on agent-style output (STRA-220)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-15 14:54:11 +02:00
co-authored by Claude Sonnet 5.5
parent 6f9a217d54
commit bbef8da1ec
+19
View File
@@ -116,3 +116,22 @@ Plain block rounding of the attention and output layers is not usable below 8 bi
kind (a KAR-style group-32 scale-plus-planes layout is the same rounding) is far outside what the model tolerates. Only
calibrated quantization could do better, and that was not tried. The first run of this probe had a half-precision
conversion bug (small scales flushed to zero); the numbers above are from the fixed code.
### Prompt-lookup speculation: measured acceptance on agent-style output (2026-10-15)
The model (greedy, `run_real`) generated 320 tokens for four agent-style prompts over about 800 tokens of context (a Rust
file, or the first 2,200 characters of this document); the draft is the continuation of the latest earlier match of the
last N tokens in prompt plus output, up to K tokens, and a step accepts the longest prefix equal to what the model produced.
| task | tokens per step (N=2..4, K=4 / K=8) |
| --- | --- |
| rewrite the code with renamed functions (copies the input) | 3.3-3.7 / 5.4-5.8 |
| list function names as JSON and repeat the first function | 1.7-2.0 / 1.8-2.1 |
| reproduce a section of the notes as bullets | 1.4-1.6 / 1.4-1.7 |
| explain what the code does (new text) | 1.05-1.2 / 1.05-1.2 |
Four prompts, one run each: an indication of the spread, not a workload estimate. Verification cost decides whether this
pays: on the CPU a chunk of 4-8 tokens costs 65-78 ms per token on the noisy machine (about 50 ms quiet), against about
110 ms for a decode step, so with 3.5-5.7 tokens per step the CPU gain is at most about 1.3x; the integrated GPU
(compute about 3-4x the CPU, but expert reads grow with the number of distinct experts in the batch) could reach about
20 tokens/s on copy-heavy output by the estimate in STRA-220, and about nothing on free-form text.