Machine Learning

Tencent releases DFly2, an open-source speculative decoder that accelerates sparse-attention language models

Close-up of a server rack in a data center
Image: Cookiecutter / Pexels

Tencent has released DFly2, a speculative decoding draft model it developed to speed up response generation in large language models, as open source. In this method, a small draft model proposes multiple tokens and the large target model verifies these proposals in a single pass.

Developed by the company’s Hunyuan AI infrastructure team, DFly2 targets models that natively use sparse attention mechanisms. Supported models include DeepSeek-V4.1-Flash, GLM-5.3-Flash and Tencent’s Hy4 flash model. Instead of keeping a separate draft cache of its own, DFly2 reuses the target model’s sparse KV cache and indexer. This design is reported to keep memory use constant in long contexts.

According to results shared by Tencent, DFly2 raises the serving throughput of DeepSeek-V4.1-Flash by up to 81 percent at a 64,000-token context. On agentic tasks with Hy4 flash, a speedup of up to 4.2 times is reported. The company said the results surpassed a draft method called DSpark in comparisons. These figures are based on the developers’ own measurements.

The code is available through Tencent’s GitHub repositories and can be run with vLLM. The draft model weights are shared on Hugging Face. Because each draft model is trained for a specific target model, it cannot be used with dense models that lack a sparse attention indexer.

Source: Tencent AI, MarkTechPost, i10x.

News date: 28 November 2026