By Mahan Kenway
Cover: Original conceptual illustration created for this article. It does not depict an actual system.
Long-context AI serving has a bookkeeping problem: a speculative decoder can save time by drafting several tokens for a larger model to check, but the drafter may build and maintain its own copy of the prompt’s key-value (KV) cache. On long prompts, that extra memory and work can eat into the speedup.
Tencent’s Hunyuan team says its new DFly2 drafter takes a different route. Announced as open source on November 26, it reuses both the target model’s cached information and the sparse-attention positions the target has already selected. In the team’s own tests, that design delivered 81% more aggregate throughput than its DSpark baseline on one 64K agentic coding workload, while keeping per-user decoding speed matched.
That headline needs context: it is a result from a specific high-concurrency test on NVIDIA H20 GPUs, not a claim that one person’s answer arrives 81% faster. The work is described in a November 25 arXiv preprint; the authors’ AngelSpec repository now includes DFly2 training code and drafter checkpoints.
The drafter follows the target’s own selection
In speculative decoding, a smaller drafter proposes a block of tokens and the target model checks them. With the proper verification and sampling procedure, this can preserve the target model’s output distribution while reducing how often the larger model has to run serially.
DFly2 is designed for targets that already use sparse attention. Instead of maintaining a separate KV cache or calculating a new context selection, each of its draft layers pairs with a sparse-attention layer in the target and reads the target’s existing cache at positions selected by that layer’s indexer. The target has already paid to make that selection; DFly2 reuses it. The drafter also receives the target’s latest hidden state, which anchors the proposed block.
There is a timing tradeoff: the reused selection was made for the token just before the speculative block, not separately for every token the drafter proposes. The paper measures how well that earlier selection covers the positions later draft tokens would choose. The target still verifies the proposals; this is not a guarantee that the drafter’s guesses are correct.
The aim is to keep drafting cost and cache use from growing with the full prompt. That is a particularly relevant constraint for long-context models, where a second cache can consume memory that could otherwise support more concurrent requests.
The paper tested DFly2 with DeepSeek-V4.1-Flash, GLM-5.3-Flash and Hy4 flash, comparing it with DFlash and DSpark drafters trained by the authors under the same recipe, data and number of training steps. In the paper’s general-purpose benchmarks, DFly2’s average accepted-token length was 3.9% to 10.5% above the stronger baseline. Across long-context and agentic benchmark families, the reported margin widened to 10.0% to 31.5%, including tests up to 128K tokens.
Those are accepted-token results: how many proposed tokens the target accepts per speculative step. They are not themselves end-to-end speed or throughput measurements.
For the high-concurrency comparison, the authors measured DeepSeek-V4.1-Flash with greedy decoding on H20 GPUs. At the same per-user decode speed as DSpark, they report 62% more total deployment throughput on CodeSpan 64K and 81% more on SWE 64K, a long-context coding benchmark and an agentic software-engineering workload. These 64K tests used up to 32 concurrent requests and eight prefill instances per decode instance. At equal aggregate throughput, the paper reports that DFly2’s per-user decode speed was 23% faster on CodeSpan and 24% faster on SWE 64K.
That distinction matters for capacity planning: throughput counts work across the deployment, not the speed of one GPU or one conversation. The paper does not claim that every workload or serving setup will see the same gain. These are the authors’ measurements, not an independent reproduction.
Open weights, but integration is target-specific
Tencent’s AngelSpec release lists DFly2 drafter weights for DeepSeek-V4.1-Flash, GLM-5.3-Flash and Hy4 flash, alongside the training framework. The project’s code is Apache-2.0 apart from listed third-party components; each target model has its own terms.
The weights are not interchangeable add-ons for arbitrary language models. DFly2 depends on access to a compatible sparse-attention layout, cached keys and values, and the target’s index selections. Its DeepSeek-V4.1-Flash checkpoint card says vLLM speculative-decoding support is still in progress, so downloading the checkpoint alone does not make it a ready-to-run serving optimization.
Hy4 flash is a separate case: Tencent’s model card describes a built-in DFly2 drafter, and the vLLM serving recipe shows it enabled. But the default recipe targets eight H200 GPUs for the 220-billion-parameter model. That is a data-center deployment, not a laptop install.
A useful systems idea, with a narrow proof so far
DFly2’s central idea is straightforward: if the target already has a sparse cache and has already decided which parts of its context matter, a compatible drafter may be able to reuse both rather than rebuilding its own. The reported results suggest that the choice of context matters alongside the size and speed of the drafter, especially as prompts grow and requests arrive concurrently.
The evidence remains bounded by three tested sparse targets, particular workloads and Tencent’s evaluation setup. The headline 81% result is encouraging for long-context serving teams, but it should be read as a benchmark result to reproduce on the exact model, runtime, hardware and traffic mix a deployment cares about—not as a universal speed switch.
Sources: DFly2 preprint · AngelSpec code and release notes · DeepSeek-V4.1-Flash DFly2 checkpoint · Hy4 flash model card · Hy4 flash vLLM recipe