
The Zhitong Finance App learned that the Tencent mixed yuan team officially open-sourced the next-generation speculative sampling draft model dFly2. As a supporting acceleration component, it adapts to Hy4 Flash to solve the pain point of slow autoregressive generation of large models with one million contexts without changing the weight of the main model and ensuring consistent output results. Long context and AI Agent tasks can be accelerated by up to 4.2 times.
Hy4 Flash, which was launched earlier, supports an extremely long context of millions of tokens, and can load complete documents, codebases, and multiple rounds of agent interaction trajectories at once, but generation speed in long context scenarios has become a bottleneck in implementation. dFly2 uses the idea of speculative sampling. The draft model first pre-generates candidate tokens and then submits them to the main model for verification and adoption, thus compressing the generation time, and is specially designed for the DSA sparse attention architecture model.
The core innovation is that dFly2 deeply reuses the main model resources: through the KV Share and Index Share mechanisms, Hy4 Flash directly reuses the calculated KV cache and sparse indexes. The draft model only focuses on up to 2048 key locations selected by the index. The design fixes the cost of attention calculation, does not require a separate consumption of KV video memory, and adapts to the Prefill-Decode separation deployment architecture to reduce long-term context transmission and storage expenses.
According to experimental data, compared with solutions such as dFlash and dSpark, the advantages of DFly2 are amplified with the length of the context: on Agentic task evaluation AgentLongBench, the Hy4 flash A12B version can accelerate by 4.2 times, the average acceleration of the four types of agent tasks is about 3.2 times, and the reception length is up to 68.5% compared to DSpark; in the 128K long context scenario, the reception length is increased by about 18% compared to DSpark, which is still possible Maintains approximately 3.2x acceleration. In real business tasks such as WorkBuddy, DFly2's reception length is also superior to mainstream open source DSpark solutions.
At the training level, DFly2 relies on the AngelSpec framework to add an online and offline hybrid training mode, and introduced dFly-OPD, a rollout-free lightweight online distillation scheme to reduce training computing power consumption; at the same time, it also optimizes communication and video memory strategies to support large-scale training with 256K ultra-long contexts. Compared with the MTP solution, the deployment end to end throughput was 26% higher under the condition of 32K input, 512 output, and 512 concurrent.
The mixed element team said that dFly2 is a technical exploration of DSA's sparse large model speculative decoding route. The advantages are particularly prominent in long contexts and AI agent scenarios. The longer the context, the more obvious the gain. Currently, DFly2 weights are open sourced with Hy4 and Hy4 flash. The training code is integrated into AngelSpec, and the trial is open for developers.