Z Lab has released DFlash 2 checkpoints for Alibaba's Qwen 3.8 27B model, which advance block-diffusion speculative decoding by replacing conventional autoregressive draft models with a non-causal diffusion mechanism and direct target key-value (KV) cache injection. This framework achieves up to 3x to 4.3x throughput speedups in production inference engines like SGLang and vLLM without altering output token distributions. It maintains a higher average token acceptance length of 4.0 to 4.8 tokens per verification cycle compared to baseline methods.
Z Lab has released DFlash 2 checkpoints for Alibaba's Qwen 3.8 27B model family, advancing block-diffusion speculative decoding for open-weights LLM serving. By replacing conventional autoregressive draft models with a non-causal diffusion mechanism paired with direct target key-value (KV) cache injection, the framework achieves up to 3x to 4.3x throughput speedups in production inference engines like SGLang and vLLM without altering output token distributions. For where the 27B fits in the lineup, see our Qwen3.8 explainer.
Speculative decoding conventionally relies on a smaller draft model generating tokens sequentially, which are then verified in a single forward pass by the larger target model. DFlash departs from this sequential bottleneck by formulating draft generation as a single-pass block-diffusion task.
Block Diffusion vs. Autoregressive Drafting
In standard speculative architectures such as EAGLE-3 or multi-token prediction (MTP), the drafter remains an autoregressive model that must iterate step-by-step to produce multiple candidate tokens. When drafting deeper sequences (e.g., 8 to 16 tokens), the cumulative latency of the draft loop erodes the wall-clock speedup achieved during the verification step.
DFlash utilizes a non-causal attention mask over masked draft token slots. Rather than predicting token t+1, then t+2, the diffusion draft model predicts an entire block of 8 to 16 draft tokens simultaneously in a single forward pass. This hardware-friendly execution profile maximizes GPU and TPU tensor core utilization during drafting.

Persistent Conditioning Through Target KV Injection
A core limitation in prior multi-layer drafters has been feature dilution: feeding target model representations only into the input layer of the draft network causes contextual signal loss in deeper layers.
DFlash addresses this with a direct KV injection mechanism:
- Target Feature Extraction: Hidden states from selected intermediate layers of the target model (such as Qwen 3.8 27B) are extracted and concatenated.
- Dimension Projection: The concatenated features are normalized via RMSNorm and projected into the draft model's hidden dimension.
- KV Cache Injection: Instead of passing these vectors purely as input embeddings, DFlash injects the projected features directly into the Key and Value projections across all layers of the draft model.
By storing these representations directly within the draft model's KV cache, the drafter maintains persistent conditioning across all layers and decoding iterations, preventing draft acceptance rates from degrading across longer sequence lengths.
Framework Integration and Deployment
The newly released z-lab/Qwen3.8-27B-DFlash2 checkpoint is supported across major LLM serving frameworks:
- SGLang: Supported natively under the
Spec V2engine with asynchronous scheduling and memory overlap. - vLLM: Accessible through the speculators extension framework, utilizing dual-cache paths to isolate paged attention from non-causal draft buffers.
- Transformers: Available for local testing and weight inspection.
Benchmark evaluations across coding (HumanEval), mathematical reasoning (GSM8K), and conversational datasets (MT-Bench) demonstrate that DFlash 2 maintains an average token acceptance length of 4.0 to 4.8 tokens per verification cycle, delivering 2.5x the generation speed of EAGLE-3 and up to 4.3x the throughput of baseline autoregressive decoding at concurrency 1.
Sources
- Z Lab: DFlash Project and Open Repository
- arXiv: DFlash: Block Diffusion for Flash Speculative Decoding (Chen et al., 2026)
- Hugging Face: z-lab/Qwen3.8-27B-DFlash2 Checkpoint Repository
- LMSYS Org: The Next Generation of Speculative Decoding: DFlash and Spec V2
Frequently asked questions
How does DFlash 2 improve inference speed compared to standard speculative decoding?
DFlash 2 improves inference speed by formulating draft generation as a single-pass block-diffusion task instead of sequential autoregressive drafting, achieving up to 3x to 4.3x throughput speedups in engines like SGLang and vLLM.
What is the role of target KV injection in DFlash 2?
Target KV injection addresses feature dilution by extracting hidden states from the target model, projecting them into the draft model's dimensions, and injecting them directly into the Key and Value projections across all draft model layers to maintain persistent conditioning.
Which LLM serving frameworks support DFlash 2 checkpoints?
The z-lab/Qwen3.8-27B-DFlash2 checkpoint is supported natively in SGLang under the Spec V2 engine, via the speculators extension framework in vLLM, and is available for local testing in Transformers.
Does DFlash 2 alter the output token distribution of the model?
No, DFlash 2 achieves significant throughput speedups without altering output token distributions, ensuring the accuracy of the generated text remains consistent with the baseline model.
