---
title: "Speculation Is All You Need"
description: "Speculative decoding delivers integral-factor (2-3x+) LLM decode speedups, far beyond the few-percent gains from kernel or host-side optimization, and its benefit scales roughly linearly with acceptance length."
url: "https://swe.quest/articles/speculation-is-all-you-need-dffc126cb5233807"
canonical: "https://modal.com/blog/spec-is-all-u-need"
source: "Modal"
published: "2026-06-19"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 17
tags: ["inference","llms","performance","model-training"]
---

# Speculation Is All You Need

A post on [Modal](https://swe.quest/sources/modal.md), published 2026-06-19, 17 min read, Deep dive. Original: [https://modal.com/blog/spec-is-all-u-need](https://modal.com/blog/spec-is-all-u-need)

## Summary

Speculative decoding delivers integral-factor (2-3x+) LLM decode speedups, far beyond the few-percent gains from kernel or host-side optimization, and its benefit scales roughly linearly with acceptance length. Modal and Z Lab release DFlash speculators for several Qwen 3.5/3.6 models that add 5-20% over existing DFlash baselines, reaching over 1000 tok/s for Qwen 3.5 122B-A10B at concurrency 1 on a B200 node. Mocking acceptance in SGLang via SGLANG\_SIMULATE\_ACC\_LEN shows Qwen 3.5 27B speeding up 5.62x at acceptance length 8, and a toy model plus a roofline model explain why speedup tracks acceptance length and where drafting overhead erodes it. Training custom speculators on application data is framed as easy-mode ML: fine-tuning has lifted acceptance length from 3 to over 9.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)

## Prerequisites

- LLM autoregressive decoding ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Transformer inference basics ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))
- GPU memory bandwidth vs compute ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- roofline performance models ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))

## Keywords

speculative decoding, DFlash, SGLang, Qwen 3.5, EAGLE-3, MTP, B200, vLLM

## Related posts

- [Achieve state-of-the-art inference latencies with speculative decoding](https://swe.quest/articles/achieve-state-of-the-art-inference-latencies-with-speculative-decoding-29855d3aec239f45.md): Modal · 2026-06-24 · Hard · 9 min read · Inference & serving, LLMs, Performance engineering, Model training
  Speculative decoding is the dominant lever for low-latency LLM serving because decode steps dominate latency and speculation yields multiplicative speedups roughly linear in acceptance length.
- [Faster Assisted Generation with Dynamic Speculation](https://swe.quest/articles/faster-assisted-generation-with-dynamic-speculation-d8a65fbd607c86ac.md): Hugging Face · 2024-10-08 · Medium · 7 min read · Inference & serving, LLMs, Performance engineering
  Dynamic speculative decoding stops the draft model's token generation as soon as its softmax confidence falls below a threshold (assistant\_confidence\_threshold), rather than always drafting a fixed or heuristically adjusted number of tokens before verification by the target model.
- [Accelerate RL rollouts by up to 50% with distribution-aware speculative decoding](https://swe.quest/articles/accelerate-rl-rollouts-by-up-to-50-with-distribution-aware-speculative-decoding-1fa2a300c01f2135.md): Together AI · 2026-04-24 · Hard · 5 min read · Inference & serving, Model training, LLMs, Performance engineering, Data structures
  Distribution-aware speculative decoding (DAS) speeds up the rollout phase of LLM RL post-training, which can consume ~70% of training time due to long-tail straggler generations, while keeping outputs identical to standard decoding.
- [Faster Text Generation with Self-Speculative Decoding](https://swe.quest/articles/faster-text-generation-with-self-speculative-decoding-0171e077befc3347.md): Hugging Face · 2024-11-20 · Hard · 13 min read · Inference & serving, LLMs, Performance engineering
  Self-speculative decoding from the LayerSkip paper drafts tokens by exiting early from a model's own intermediate layers and verifies them with the remaining layers.
- [Up to 3.2x Faster Inference with LFM2.5-DSpark](https://swe.quest/articles/up-to-3-2x-faster-inference-with-lfm2-5-dspark-a1b740b4334807f0.md): Hugging Face · 2026-08-20 · Medium · 6 min read · Inference & serving, LLMs, Performance engineering
  Liquid AI releases ~300M-parameter DSpark speculative-decoding draft models for LFM2.5-1.2B-Instruct, LFM2.5-2.6B and LFM2.5-8B-A1B.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
