---
title: "Tencent Hunyuan Open-Sources DFly2 Acceleration Component Hy4 Flash, Boosting Long-Context Generation Speed by Up to 4.2x"
type: "News"
locale: "en"
url: "https://longbridge.com/en/news/306876731.md"
description: "The Tencent Hunyuan team has open-sourced DFly2, a new-generation speculative sampling draft model compatible with the Hy4 Flash acceleration component. This solution addresses the slow generation speed of large models with million-token contexts by reusing KV caches and sparse indices without altering the main model's weights. Real-world tests show up to a 4.2x speed increase for long-context and AI Agent tasks, significantly reducing GPU memory usage and transmission overhead while improving deployment efficiency"
datetime: "2026-11-26T06:50:03.000Z"
locales:
  - [zh-CN](https://longbridge.com/zh-CN/news/306876731.md)
  - [en](https://longbridge.com/en/news/306876731.md)
  - [zh-HK](https://longbridge.com/zh-HK/news/306876731.md)
generator: "portal-rs"
---

# Tencent Hunyuan Open-Sources DFly2 Acceleration Component Hy4 Flash, Boosting Long-Context Generation Speed by Up to 4.2x

Zhitong Finance APP learns that the Tencent Hunyuan team has officially open-sourced DFly2, a new-generation speculative sampling draft model. As a supporting acceleration component adapted for Hy4 Flash, it addresses the pain point of slow autoregressive generation in large models with million-token contexts, without altering the main model's weights or compromising output consistency. For long-context and AI Agent tasks, speed increases of up to 4.2x can be achieved.

The previously launched Hy4 Flash supports ultra-long contexts of up to one million tokens, allowing for the one-time loading of complete documents, codebases, and multi-turn Agent interaction trajectories. However, generation speed in long-context scenarios had become a bottleneck for practical application. DFly2 adopts a speculative sampling approach, where the draft model pre-generates candidate tokens, which are then verified and accepted by the main model, thereby compressing generation time. It is specifically designed for large models based on the DSA sparse attention architecture.

The core innovation lies in DFly2's deep reuse of main model resources: through KV Share and Index Share mechanisms, it directly reuses the KV caches and sparse indices already computed by Hy4 Flash. The draft model focuses only on up to 2,048 key positions selected by the indices. This design ensures fixed attention computation costs, eliminates the need for separate KV GPU memory allocation, and adapts to the Prefill-Decode separated deployment architecture, reducing transmission and storage overhead for long contexts.

Empirical data shows that compared to solutions like DFlash and DSpark, the advantages of DFly2 amplify with context length. In the Agentic task benchmark AgentLongBench, the Hy4 Flash A12B version achieved up to a 4.2x speedup, with an average speedup of approximately 3.2x across four types of Agent tasks. The acceptance length improved by up to 68.5% compared to DSpark. In 128K long-context scenarios, the acceptance length increased by about 18% relative to DSpark, while maintaining approximately a 3.2x speedup. In real-world business tasks such as WorkBuddy, DFly2's acceptance length also outperformed the mainstream open-source DSpark solution.

At the training level, DFly2 relies on the AngelSpec framework, introducing a new hybrid online-offline training mode and launching DFly-OPD, a lightweight online distillation solution that eliminates the need for rollouts, thereby reducing computational consumption for training. It also optimizes communication and GPU memory strategies, supporting large-scale training with ultra-long contexts of up to 256K tokens. In terms of deployment, compared to the MTP solution, DFly2 delivers 26% higher end-to-end throughput under conditions of 32K input, 512 output, and a concurrency of 512.

The Hunyuan team stated that DFly2 represents a technical exploration of the speculative decoding route for DSA sparse large models, with advantages particularly prominent in long-context and AI Agent scenarios, where longer contexts yield more significant gains. Currently, DFly2 weights have been open-sourced alongside Hy4 and Hy4 Flash, and the training code has been integrated into AngelSpec, open for developer trial.

### Related Stocks

- [TCEHY.US](https://longbridge.com/en/quote/TCEHY.US.md)
- [TCTZF.US](https://longbridge.com/en/quote/TCTZF.US.md)
- [00700.HK](https://longbridge.com/en/quote/00700.HK.md)
- [80700.HK](https://longbridge.com/en/quote/80700.HK.md)
- [HTCD.SG](https://longbridge.com/en/quote/HTCD.SG.md)

## Related News & Research

- [TENCENT Hunyuan Open-Sources New-Gen Draft Model DFly2](https://longbridge.com/en/news/306880015.md)
- [Tencent Launches Hy3D 3.6 to Advance Professional 3D Asset Generation](https://longbridge.com/en/news/307180126.md)
- [Tencent brings Hy4 flash to desktop computers with quantized model release](https://longbridge.com/en/news/306874294.md)
- [TENCENT  Launches AI-Native Voice Assistant Chatterfly](https://longbridge.com/en/news/307172614.md)
- [Tencent launches Hy3D 3.6 for professional 3D asset generation](https://longbridge.com/en/news/307034002.md)

---
> **Disclaimer: This article is for reference only and does not constitute any investment advice.**