Tencent open-sources DFly2 draft model: boosts Hy4 Flash generation speed by up to 4.2x
Tencent Hunyuan has further open-sourced the complete training code for its DFly2 draft model. DFly2 is a small model with around 850 million parameters, designed specifically to accelerate large-model generation. Its weights were previously released alongside Hy4 Flash; now, the specific training methods have also been made public, enabling developers to train draft models tailored to other large models with similar sparse-attention architectures.
Compared with existing draft models such as DFlash and DSpark, DFly2’s key improvement is that it directly reuses the main model’s computation results. DFlash needs to store a separate, complete context cache, which uses considerable GPU memory. DSpark retains only a recent segment of information, potentially missing important details from earlier in the context. DFly2, by contrast, 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 keeping computational costs in check for long contexts.
Tencent conducted comparative tests under the same training conditions. Across four agent tasks on Hy4 Flash, DFly2 was about 3.2x faster on average than standard token-by-token generation, with a peak speedup of 4.2x. Its average speedup was about 25% higher than DSpark’s. In tests with a 128K long context, the number of draft tokens accepted by the main model per round was also about 18% higher than with DSpark.
DFly2’s training method has been integrated into Tencent’s open-source AngelSpec framework. The paper also validates the same design on DeepSeek-V4.1-Flash and GLM-5.3-Flash, showing that this approach is not limited to Hunyuan models.
What do you think? 👇
Tencent Hunyuan has further open-sourced the complete training code for its DFly2 draft model. DFly2 is a small model with around 850 million parameters, designed specifically to accelerate large-model generation. Its weights were previously released alongside Hy4 Flash; now, the specific training methods have also been made public, enabling developers to train draft models tailored to other large models with similar sparse-attention architectures.
Compared with existing draft models such as DFlash and DSpark, DFly2’s key improvement is that it directly reuses the main model’s computation results. DFlash needs to store a separate, complete context cache, which uses considerable GPU memory. DSpark retains only a recent segment of information, potentially missing important details from earlier in the context. DFly2, by contrast, 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 keeping computational costs in check for long contexts.
Tencent conducted comparative tests under the same training conditions. Across four agent tasks on Hy4 Flash, DFly2 was about 3.2x faster on average than standard token-by-token generation, with a peak speedup of 4.2x. Its average speedup was about 25% higher than DSpark’s. In tests with a 128K long context, the number of draft tokens accepted by the main model per round was also about 18% higher than with DSpark.
DFly2’s training method has been integrated into Tencent’s open-source AngelSpec framework. The paper also validates the same design on DeepSeek-V4.1-Flash and GLM-5.3-Flash, showing that this approach is not limited to Hunyuan models.
What do you think? 👇