Beating AI News Flash: Tencent Hunyuan has further open-sourced the complete training code for its draft model DFly2. DFly2 is a small model with approximately 850 million parameters, specifically designed to accelerate large model generation. The weights were previously released alongside Hy4 Flash, and this time the specific training methods have also been made public, enabling developers to train adapted draft models for other large models that use similar sparse attention architectures.
Compared to existing draft models such as DFlash and DSpark, the core improvement of DFly2 is that it directly reuses the computation results of the main model. DFlash requires additionally storing a complete context cache, resulting in significant GPU memory overhead; DSpark only retains the most recent segment of information, which may miss important content from distant positions. DFly2, on the other hand, directly reads the main model's existing KV cache, as well as up to 2,048 key positions selected by the main model from the full text. This eliminates the need to maintain a separate cache while also controlling computational overhead in long contexts.
Tencent conducted comparative tests under identical training conditions. Across four agent tasks on Hy4 Flash, DFly2 achieved an average speedup of approximately 3.2x compared to standard token-by-token generation, with a maximum of 4.2x, and an average acceleration ratio about 25% higher than DSpark. In 128K long-context tests, the number of draft tokens accepted by the main model per round was also about 18% higher than DSpark.
The DFly2 training method has been integrated into Tencent's open-source AngelSpec framework. The paper also validated the same design on DeepSeek-V4.1-Flash and GLM-5.3-Flash, demonstrating that this approach is not limited to Hunyuan models.
