Speculative Decoding Speeds Tool Calls on Apple M5 Pro

towardsdatascience.com13 min read

The author tested speculative decoding across multiple workloads on an Apple M5 Pro laptop and found that adding a small draft model accelerated code generation, JSON extraction, and single tool calls by 1.4 to 1.7 times, but slowed down long agent contexts by 6%. The author argues that because agent steps spend most of their time in prefill and draft models add prefill overhead, speculative decoding hurts agent loops unless a prompt cache is enabled first to eliminate the prefill bottleneck. Open article →