How to Cut LLM Inference Costs by 4X with DFlash Speculative Decoding
A new speculative decoding engine in SGLang offers dramatic throughput gains, allowing you to serve the same AI workload with fewer GPUs or lower cloud bills.
Practical Summary
LMSYS announced DFlash and Spec V2, a new speculative decoding engine integrated into SGLang that can increase LLM inference throughput by over 4.3 times compared to a baseline. This technique reduces the cost per query by generating multiple tokens in a single forward pass and using smart scheduling, making it a powerful optimization for any API-based or self-hosted LLM deployment.
Why It Matters
For teams running LLMs at scale, inference compute is a major operational cost. This advancement provides a concrete, open-source method to drastically reduce that cost without sacrificing output quality. Implementing this could mean serving the same traffic with a fraction of the hardware, directly improving profit margins or enabling more ambitious AI projects within existing budgets.
Understanding the Core Technique: Speculative Decoding
Speculative decoding uses a smaller, faster "draft" model to propose multiple candidate tokens, which the main target model then verifies in a single, parallel step. This reduces the number of slow, sequential forward passes the target model must run. DFlash and Spec V2 are a highly optimized implementation of this concept.
Key Features of the DFlash + Spec V2 Engine
The announcement highlights several technical innovations that drive the 4.3X throughput gain: a block diffusion drafter that generates a full token block per forward pass, KV cache injection to improve draft acceptance rates, and an overlap scheduler that boosts end-to-end performance by an additional 33%.

How to Deploy and Experiment
The system is now the default speculative decoding engine in SGLang, a high-performance serving framework. The announcement encourages users to read the code and deploy a DFlash server. For a practical start, you would need to set up SGLang, configure it to use the DFlash drafter (e.g., for Qwen 3.5 397B-A17B as benchmarked), and run inference workloads to measure the throughput and cost savings in your environment.