spec_accept_greedy + committed_prefix mirror strata ink_serve.h block-verify:
row i feeds anchor (i=0) / draft[i-1] at cur_pos+i, greedy[i] predicts
cur_pos+1+i; accept while argmax==draft[i], else emit correction (or bonus at
i==nd); accepted=emit.len(); rollback keeps cur_pos+accepted; the correction's
KV is deferred to the next round (becomes its anchor). Stop/length cap end the
request mid-round. Lossless per proofs/speculative_draft.lean spec_lossless.
CPU tests: all-accept+bonus, mid/first mismatch, stop, length cap, prefix.
CPU -D warnings green.
- Drafter proj weights now BF16 (f32-act x bf16-w via router_gemv_batched is
exact vs reference matmul_f32); norms/fuse stay f32; qkv/gate_up fused bf16.
- dspark_context(): per layer mix(row=il,dflare_norm_il) -> k/v_proj_ctx ->
per-head k_norm_ctx + NeoX half-RoPE -> k/v [M,kv_dim] f32; frnn = row-3 mix
with markov_head.dflare_norm. bf16 ring scatter left to the caller (b5).
- GPU-vs-CPU-oracle parity on the REAL mtp weights: max_rel 3.0e-6 (global-scale
metric; per-entry rel explodes on near-zero RoPE outputs).
CPU -D warnings green; ld GPU 54/54.