Your inference bill has a 5-10x cut hiding in the harness and the drafter — here's the playbook
Coding Agent Index and Speculative Decoding, Same Stack
The Artificial Analysis Coding Agent Index and the speculative decoding tutorial both landed this week, pointing at the optimization surface most serving teams have not touched. The Index reports that model+harness pairs with comparable task completion carry >30x cost-per-task variance, >3x token variance, 80-96% cache-hit-rate spread, and >7x wall-time variance on the same workload. The tutorial shows that Llama 3.2 1B as a drafter delivers 2.31x throughput over vanilla autoregressive decoding on a Llama 3.1/3.3 70B target, with mathematically identical outputs and zero quality loss.
The unit of evaluation is the (model, harness, cache policy) triple, and most teams have only optimized one of the three.
Why Small Beats Big on Drafting
The counterintuitive result: the 1B drafter beats the 8B drafter at 2.31x versus 2.08x, despite a lower acceptance rate. Drafting latency compounds at every step, and at 8B the overhead of running the drafter itself eats the verification gains. Cross-tokenizer speculation (UAG) caps at 1.5-1.9x, which means same-family drafting is the only path to the full win.
The verification step is compute-bound like prefill, not memory-bandwidth-bound like decode, so it saturates silicon that would otherwise idle. Best case harvests K+1 tokens from a single target forward pass and worst case is still 1 token, so expected value is non-negative modulo drafter memory.
| Method | Speedup | Extra Model? | Production Ready? |
|---|---|---|---|
| Same-tokenizer 2-model | 1.5-3x | Yes (1B) | High — vLLM, HF |
| Cross-tokenizer (UAG) | 1.5-1.9x | Yes | Medium |
| EAGLE (hidden-state head) | Higher | No (<1B head) | Early prod |
| Medusa (multi-head) | Higher | No | Research→prod |
The Harness Is the Cost Lever
The 30x cost variance from the Index is not a model-selection question. It is a harness-selection question. Opus 4.7 in Cursor CLI led at 61, GPT-5.5 in Codex/Claude Code was close, and the open-weight setups (GLM-5.1, Kimi K2.6, DeepSeek V4 Pro in Claude Code) came in competitive but behind. The thing this doesn't tell you is which harness a given workload actually resembles, but most current defaults sit 5-10x on the wrong side of the cost curve at equal quality.
Separately, TurboQuant, a widely adopted quantization shortcut, is showing empirical failure under the first comprehensive accuracy+latency+throughput study. Teams with TurboQuant in their quantization path should freeze adoption pending internal repro.
The Combined Playbook
These are independent optimizations that stack multiplicatively.
- Enable speculative decoding with
--speculative-model meta-llama/Llama-3.2-1B-Instructand num_speculative_tokens=5. Measure on real traffic, since chat, RAG, and code show different acceptance profiles. The reported 2.31x will likely land at 1.5-1.8x on production prompts. - The harness triple is the first thing worth measuring. Three model+harness+cache combinations, scored on cost/task, tokens/task, cache hit rate, and wall time. The AA methodology is reproducible on an internal repo in a one-week spike.
- Acceptance-rate telemetry belongs in the request path. Per-request mean-accepted-length and effective-speedup, with an alert when acceptance drops below 60% for a traffic slice. That is where the drafter stops paying rent.
What to do
Enable Llama 3.2 1B as speculative drafter on your vLLM 70B target this sprint; measure end-to-end tok/s across your actual prompt mix
Reproduce the Artificial Analysis methodology on 3 model+harness pairs against your internal repo by end of sprint
Freeze TurboQuant adoption pending internal accuracy+latency+throughput repro on your eval set
Evaluate EAGLE-2 or Medusa heads as Q3 migration path for single-model speculative decoding