# Qwen3 and Llama on llama.cpp speed tool calls 1.7x with speculative decoding

Digest AI · Agents & Tools · published 2026-11-27T14:00:00Z

Canonical: https://digestai.news/story/qwen3-and-llama-on-llama-cpp-speed-tool-calls-1-7x-with-speculative-de

## Summary

Benchmarks with Qwen3 and Llama on llama.cpp show that speculative decoding can speed up code, JSON, and tool calls by up to 1.7x. The tests also found that agent loops without caching were 6% slower than the cached version.

The study used the open‑source llama.cpp inference engine to run both models. Speculative decoding allows the model to generate multiple token hypotheses in parallel, reducing the number of round‑trips needed for tool calls. The 1.7x speedup applies to the draft model’s interactions with external tools, while the 6% slowdown indicates that caching remains important for continuous agent execution.

These findings suggest that developers can improve agent responsiveness by combining speculative decoding with a caching layer, especially in lightweight inference setups. The results also highlight the trade‑off between raw inference speed and the stability of repeated tool calls.

## Key points

- Speculative decoding speeds tool calls up to 1.7x on Qwen3 and Llama via llama.cpp
- Uncached agent loops run 6% slower than cached versions
- Benchmarks measured code, JSON, and tool call latency on a single GPU

## Why it matters

The results show that speculative decoding can significantly reduce latency for agent tool calls, making lightweight inference more practical. By demonstrating that speculative decoding is effective across different models, the study encourages broader adoption in open‑source inference engines. It also highlights that performance gains are modest without proper caching, reminding teams that infrastructure choices still play a critical role in agent deployment.

## Sources

1. [Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.](https://towardsdatascience.com/speculative-decoding-makes-tool-calls-faster-agents-need-a-cache) (Towards Data Science, 2026-11-27)

Part of the developing story: [Accelerating Local AI Inference on Consumer Hardware](https://digestai.news/thread/marktechpost-launches-gpu-leaderboard-and-deploy-it-extension) (4 stories)

## Cite

Digest AI, "Qwen3 and Llama on llama.cpp speed tool calls 1.7x with speculative decoding", 27 November 2026, https://digestai.news/story/qwen3-and-llama-on-llama-cpp-speed-tool-calls-1-7x-with-speculative-de

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/qwen3-and-llama-on-llama-cpp-speed-tool-calls-1-7x-with-speculative-de.json
