Jun 16, 2026 · 4:33 AM
Subscribe
Home Ai

llama.cpp Now Supports Multi-Token Prediction in Beta and the Implications for Local AI Tooling Are Bigger Than the PR Suggests

llama.cpp has merged beta support for multi-token prediction, allowing compatible models like DeepSeek V3 and Qwen3.5 to draft multiple tokens per forward pass without a separate draft model, with community benchmarks showing 1.5x to 2x throughput gains in real-world single-stream generation. For founders building coding tools, agents, or privacy-sensitive applications on local inference, the update is another signal that local AI economics are improving through software as fast as through hardw

Janet Harrison
· 6 min read · 6.1K views
llama.cpp Now Supports Multi-Token Prediction in Beta and the Implications for Local AI Tooling Are Bigger Than the PR Suggests

llama.cpp, the open-source inference runtime that made running large language models on consumer hardware practical, has merged beta support for multi-token prediction, a technique that allows compatible models to draft and verify multiple output tokens per forward pass, with community benchmarks pointing to real throughput gains of 1.5x to 2x in single-stream generation.

Understanding what MTP actually does requires a quick look at how standard inference works. A typical language model generates text one token at a time. Each forward pass through the network produces one output, which is fed back in as input for the next step. That sequential dependency is the fundamental bottleneck in autoregressive generation, and it does not go away simply by buying faster hardware. Multi-token prediction trains the model with an additional set of output heads that predict not just the next token, but the next two, three, or four tokens simultaneously, using the same shared backbone hidden state. At inference time, the runtime can use these prediction heads to draft a sequence of candidate tokens in a single forward pass, verify them against the model's main output distribution, and accept the ones that match. The result is more output per compute cycle without adding a separate draft model to the pipeline. That second point matters because existing speculative decoding in llama.cpp requires maintaining two separate models in memory, a small draft model and a large verification model, which complicates setup and increases VRAM requirements. MTP collapses that into a single model with built-in prediction heads, and the overhead is roughly one additional transformer layer rather than a second network.

The performance numbers being reported in the r/LocalLLaMA thread draw on benchmarks from mlx-lm's earlier MTP implementation for Qwen3.5, which logged a jump from 15.3 tokens per second to 23.3 tokens per second on a 27-billion-parameter four-bit model running on Apple M4 Pro hardware, an acceptance rate of around 80.6% on the draft tokens, and a throughput gain of roughly 1.5x in real-world single-stream generation. Apple's own research paper on MTP reports gains of 2.5x on standard inference tasks and up to 5x on mathematical reasoning tasks specifically, the latter being a domain where token sequences are more predictable and draft acceptance rates climb significantly. The honest expectation for developers evaluating this update is that 1.5x to 2x is a reasonable range for mixed workloads, that structured and code-generation outputs are more likely to sit at the higher end, and that free-form conversational output will likely sit lower because the draft acceptance rate tracks how predictable the output distribution is.

The model compatibility constraint is the most important practical caveat right now. MTP support is only meaningful for models that were trained with MTP heads, which means models that included the auxiliary multi-token prediction objective during pretraining. DeepSeek V3 and DeepSeek R1, which draw substantial developer interest for local coding workflows, have MTP heads in their architecture. Qwen3.5 models include a built-in MTP head exposed through the checkpoint configuration. The broader universe of Llama 3, Mistral, and Gemma models does not currently include MTP heads, and adding MTP capability to an existing model is a training problem, not a fine-tuning problem. A developer running Mistral 7B or Llama 3.1 8B today will not see any difference from this update until their model of choice ships a new checkpoint trained with MTP objectives. The update is most immediately useful for developers already running DeepSeek models locally, and for developers building applications around the growing set of models that are being released with MTP heads from the start.

For founders building Cursor-style coding tools, agents, or privacy-sensitive enterprise applications on local inference stacks, the significance of this update is not primarily the 1.5x number in isolation. It is that the local inference economics keep improving through software optimisation rather than hardware investment alone. Every meaningful throughput gain at the runtime level expands the set of deployment contexts where open-weight models become cost-competitive with API calls to frontier cloud providers. A coding assistant running on developer hardware at 15 tokens per second is borderline useful. The same model at 23 tokens per second crosses into a usability threshold that changes the product conversation. The same logic applies to agent workflows where a model needs to make multiple sequential tool calls, and where cumulative latency across those calls determines whether the experience feels responsive or frustrating. Marginal runtime improvements compound across multi-step tasks in ways that single-turn benchmarks do not capture.

The beta label on this implementation deserves weight. llama.cpp is a production-quality project with a rigorous contributor community, and beta in this context means the implementation is functional and merged but not yet stress-tested across the full range of hardware configurations, quantisation formats, and batch sizes that production deployments encounter. Context window behaviour, batch inference performance, and interaction with existing optimisations like Flash Attention and CUDA graph optimisation are not yet fully characterised for the MTP code path. Developers building on this for production applications should run their own workload-specific benchmarks rather than assuming the reported gains translate directly to their deployment context. The appropriate posture is genuine interest and disciplined evaluation, not immediate production deployment.

What the 259 upvotes and 155 comments in four hours on r/LocalLLaMA actually signal is not just technical enthusiasm. The community that follows llama.cpp development at this level of granularity is the same community building the next generation of local AI tooling, and their reaction reflects a correct read that runtime-level software improvements are a compounding resource in the same way that model capability improvements are. The hardware constraints on running large models locally are real and slow-moving. The software improvements that extract more performance from existing hardware are fast-moving, community-driven, and free. Founders building products where inference cost, data privacy, or latency are strategic constraints should be tracking both curves, because the gap between what is possible on local hardware today versus twelve months ago is already larger than most product roadmaps have accounted for.

Also read: diVine Wants to Be the Short-Form Video Platform That Says No to AI and That Bet Is More Interesting Than It SoundsIBM's MAMMAL Is a Quiet Demonstration That Biomedical AI Is Moving Beyond Single-Purpose ModelsPanthalassa Wants to Build AI Data Centers in the Ocean and the Power Crunch Makes That Sound Less Crazy Than It Should

TOPICS
Janet Harrison has over 16 years experience in the financial services industry giving her a vast understanding of how news affects the financial markets, and an early adopter of blockchain technology and digital currencies. Janet is an active holder and trader spending the majority of her time analyzing blockchain projects, reports and watching new and upcoming projects and other initiatives in the industry. She has a Masters Degree in Economics with previous roles counting Investment Banking.
Related Articles
More posts →
Loading next article…
You're all caught up