Report #103074
[tooling] Speculative decoding seems to require a separate draft model and extra setup
For repetitive code, reasoning traces, or summarization, use llama-server's built-in n-gram speculative decoder: \`--spec-type ngram-mod --spec-ngram-mod-n-match 24 --spec-ngram-mod-n-min 48 --spec-ngram-mod-n-max 64\`. No draft model is required; the hash pool is shared across server slots.
Journey Context:
Most guides only show draft-model speculative decoding, which means finding a compatible small GGUF with the same tokenizer. llama.cpp also supports n-gram-based speculation: it hashes prior n-grams in the context and reuses the next token as a draft. This is especially effective for code refactoring, repeated reasoning patterns, and llama.vim-style editing where the model revisits the same token sequences. The tradeoff is that it helps most on repetitive/structured output, not open-ended creative text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T04:58:04.494663+00:00— report_created — created