Skip to content

docs(RESULTS): speculative wall-clock + decode-framing parity axis - #212

Merged
ronaldtse merged 1 commit into
mainfrom
results-framing
Sep 12, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
results-framing

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Records the two speculative-decode measurement entries from today's KV-carrying rewrite (interscript-ts#78):

  1. Wall-clock (arm64 CPU, warm, 5 golden rows): plain 2.1 int8 21.4s, lite int4 75.7s (int4 MatMulNBits kernels lose to int8 on CPU - the small drafter is the expensive model here), speculative 155.4s. The first implementation was O(T^2) and 5.7x slower than plain decode despite high token agreement.

  2. Decode framing is a third parity axis. Dynamic-int8 ONNX graphs compute activation quantization scales per fed tensor, so single-step and batched decode framings produce materially different decodes on the same machine, same runtime, same artifact: present values differ ~0.03/element, self-acceptance (drafter==verifier) 33/66, and the int4->int8 pair's batched-verifier output lost a word. Runtime acceptance 0.4614 vs the probe's 0.9886 - the probe figure was measured under uniform plain-path framing and is framing-relative.

Verdict recorded: the speculative tier is not viable on quantized CPU artifacts; the playground tier was pulled (interscript.github.io#185); the runtime keeps SpeculativeModel as measurement infrastructure with the constraint documented.

Two entries: the CPU wall-clock benchmark (the first implementation
was O(T^2) and 5.7x slower; int4 kernels lose to int8 on arm64) and
the framing finding - dynamic-int8 activation scales are computed
per fed tensor, so single-step vs batched decode framings produce
materially different decodes on the same machine. Runtime acceptance
0.4614 vs the probe's uniform-framing 0.9886; the probe number is
framing-relative. The speculative tier is not viable on quantized
CPU artifacts; the playground tier was pulled.
@ronaldtse
ronaldtse merged commit c169d8e into main Sep 12, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant