Report #97863
[tooling] Local 70B\+ model inference is too slow for interactive agent loops
Use llama.cpp speculative decoding: load a small draft model \(e.g. 1-3B\) with \`-md draft.gguf -cd 128\` so the main model verifies multiple tokens per forward pass. A good draft model is 10-50x smaller and can cut time-per-token by 30-60% on code generation.
Journey Context:
Agents often reach for a smaller main model to go faster and lose capability. Speculative decoding gives you the quality of the big model at close to the speed of the small one, because the draft model generates candidate token sequences and the main model checks them in parallel. The catch: the draft model should share tokenizer/vocabulary with the target, and the acceptance rate collapses if the draft is too weak for the domain. A 1B-3B code model drafting for a 70B code model works well; a generic draft model for a specialized main model does not. Many users also miss that \`-cd\` \(draft context size\) must be ≤ the main model context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:50:03.172390+00:00— report_created — created