ToolNavs Find Useful AI Tools
Submit Sign in
Back to AI information
Tencent Open-Sources DFly2: A Drafter That Reuses the Target Model's Cache, Up to 4.2x Faster on Long Context

Tencent Open-Sources DFly2: A Drafter That Reuses the Target Model's Cache, Up to 4.2x Faster on Long Context

AI information • Admin • • 1 views

On November 26, 2026, Tencent's Hunyuan team open-sourced DFly2, a speculative decoding component that speeds up natively sparse large models. It changes neither the target model's weights nor its output, and by reusing work the target model has already computed, Tencent says it makes long-context models such as Hy4 flash generate up to 4.2 times faster on long text and agentic workloads.

A drafter that keeps no notes of its own: reusing the big model's cache

A large model writes one token at a time, and every step runs the whole model, so longer contexts mean slower generation. Speculative decoding lets a small model guess several candidate tokens first, and the large model verifies them all in one parallel pass; the guesses it accepts stay, so the output is exactly what the large model would have produced. DFly2 goes further: it does not even keep its own 'notebook'. Each draft layer is paired directly with one sparse attention layer of the target model, reusing the target's existing KV cache and index and looking only at the at most 2,048 positions the index selected — no scoring pass, no cache of its own, and no part in prefill. The 0.85-billion-parameter, 5-layer drafter ships inside the Hy4 flash weights and runs directly through vLLM's dfly method and SGLang's DFLY algorithm.

How to read the numbers: 4.2x is a peak, not the whole story

Tencent's numbers need to be read separately. In the paper, DFly2 accepts 30.1% more tokens per step than DSpark, the strongest baseline drafter, on agentic tasks, and reaches 4.55 times the plain decoding speed on its best benchmark — but a whole request speeds up by only about 1.67 times, because the time spent reading the prompt cannot be saved. 'Up to 4.2x' is the generation peak for long-context and agentic workloads, not what every request gets. The paper went up on arXiv on November 25, the code went into Tencent's AngelSpec framework, and training uses DFly-OPD, a lightweight online distillation method that drops the rollout step.

The most direct winners are teams serving long contexts: agentic conversations running to tens of thousands of tokens, and long-document processing, where faster decoding turns directly into throughput. In Tencent's tests, DFly2 delivered 62% to 81% more throughput than DSpark at 64K context under high concurrency. There is one condition, though: it only works for natively sparse attention models, so training one for your own model first requires a matching sparse structure and the AngelSpec training pipeline.

Recommended Tools

More