Tencent Hunyuan Open-Sources DFly2, a New-Generation Draft Model Delivering Up to 4.2x Speedup
8 hour ago / Read about 0 minute
Author:小编   

The Tencent Hunyuan team has open-sourced DFly2, a new-generation draft model. Rather than replacing Hy4 flash, DFly2 works as an acceleration add-on mounted alongside it—boosting generation speed while keeping model weights and outputs unchanged. It is purpose-built for DSA-type sparse-attention large models and long-context scenarios. The weights adapted for Hy4 flash, together with the complete training code, have been released at the same time. Under equivalent training conditions, DFly2 outperforms DFlash and DSpark overall in acceptance length and speedup ratio, with even more pronounced advantages in long-text and agentic scenarios. Its average speedup ratio is roughly 12% and 30% higher than that of DSpark, respectively, with a peak single-item speedup of 4.2x. Compared with the built-in DSpark of mainstream open-source models, it leads by 10.4% in acceptance length on agentic and real-world tasks. The standout feature of DFly2 is its extreme reuse of the target model: the draft layer shares the KV cache of the corresponding sparse-attention layer in the target model, along with up to 2,048 positions selected by the indexer. This gives DFly2 a fixed computational overhead, zero additional KV memory, and strong compatibility with PD disaggregation.