Tencent has open-sourced DFly2, a 0.85B-parameter, 5-layer block-parallel speculative decoding drafter designed for natively sparse LLMs including DeepSeek-V4.1-Flash, GLM-5.3-Flash, and Hy4 flash. Unlike conventional drafters, DFly2 eliminates its own KV cache by pairing each draft layer with a target sparse attention layer, sharing both the latent KV cache and the top-k sparse index selections. Each draft layer initializes from its paired target layer weights, and the target's final hidden state is gated into the draft block with intra-block slot-by-slot context rereading. This architecture caps draft attention at approximately 2K keys per token, keeping drafting cost constant regardless of context length, while skipping prefill entirely. On DeepSeek-V4.1-Flash, early selection covers nearly 90% of later block token selections versus under 20% for sliding windows. Memory-wise, removing the drafter cache reduces per-token overhead by 1.76x (DeepSeek), 1.26x (GLM), and 1.20x (Hy4), enabling 1.73x more concurrent requests at 32K context. Benchmarks show DFly2 achieves average accepted lengths (τ) of 4.12 (DeepSeek), 3.96 (GLM), and 3.96 (Hy4) at temperature 0, outperforming same-recipe DSpark by 3.9–10.5% on general workloads and 10.0–31.5% on long-context/agentic tasks up to 128K. End-to-end speedups reach 2.97x (DeepSeek), 2.36x (GLM), and 3.19x (Hy4). Serving throughput on DeepSeek-V4.1-Flash improves 28% (short), 62% (CodeSpan 64K), and 81% (SWE 64K) over DSpark at matched per-user speed. DFly2 ships in the Hy4-flash vLLM/SGLang recipes and is trainable via AngelSpec on 8 GPUs.
Read original
marktechpost