New: Llama.cpp adaptive speculation for faster inference

Reddit r/LocalLLaMA Tools

Summary

Llama.cpp introduces adaptive speculation to dynamically adjust token prediction for faster inference, achieving up to 50% speed improvement, particularly for models like Qwen3.8.

We have been working on some performance optimisations for Qwen3.8 and other models. The main new feature that we introduced is adaptive speculation for Llama.cpp What is it? MTP and DFlash work well to speed up inference work, especially for dense models. However, different content types need different settings. Llama.cpp only supports a single value. This fork introduces adaptive speculation. You set the minimum and maximum and the engine will adjust the number of tokens that are suggested automatically. This leads to improvements in token generation by up to 50% over mainline, especially in Qwen3.8. On a Strix Halo this improved generation from 44t/s to 65t/s for structured content. Github: https://github.com/LaurentZuijdwijk/llama.cpp Release: https://github.com/LaurentZuijdwijk/llama.cpp/releases
Original Article

Similar Articles

Llama.cpp PR 8% speed boost

Reddit r/LocalLLaMA

A llama.cpp PR moves sampling from CPU to GPU, yielding 8% faster tokens on an RTX 5090 and ~4% on a Tesla P40 for Qwen3.6-35B inference.