Skip to content
Modal
Modal logoModal · Feature trail

Speculative Decoding for LLM Inference

6 posts · Nov 2025 – Oct 2026

What this trail covers

Modal's platform deeply integrates speculative decoding for LLM inference, enabling significant speedups by using a draft model to generate token sequences in parallel. This feature allows for lossless acceleration of the autoregressive decoding phase, turning serial work into parallel work. The platform supports training custom speculators tailored to application-specific data, leading to substantial improvements in acceptance lengths and overall inference throughput. Recent work has focused on optimizing diffusion models, training custom draft models on representative traffic for specific languages and domains (like Japanese business context), improving acceptance rates and reducing per-token decode latency, and extending speculative decoding to structured output (e.g., JSON schema) and grammar-constrained generation. The platform also supports dynamic batching and KV-aware routing to further optimize inference performance and tail latencies.

All Modal trails