ModelsSelected

Tencent Hunyuan open-sources DFly2 draft model for Hy4 flash

让 Hy4 flash 吐字提速 4.2 倍,腾讯混元开源新一代草稿模型 DFly2

Why we picked it

Speculative decoding usually demands extra KV memory and complicates prefill-decode split deployment; DFly2 removes both costs by sharing the target model's cache and indexer output. Teams serving long-context or agentic workloads on sparse-attention models can adopt it as a drop-in accelerator without changing outputs or serving architecture. Compared with DSpark, the default draft solution bundled with open models, it reports a 30% average speedup advantage, making it a practical inference-cost lever for self-hosted deployments.

Tencent's Hunyuan team open-sourced DFly2 on 26 Nov, a new draft (speculative decoding) model designed to speed up token generation for Hy4 flash. DFly2 acts as an accelerator attached beside the model rather than a replacement: model weights and outputs stay identical while text generation speeds up, with a maximum single-item speedup of 4.2×. Weights adapted to Hy4 flash and full training code are released together.

Body

DFly2 is built for DSA-style sparse attention models and long-context scenarios. Its core mechanism is extreme reuse of the target model: each draft layer directly shares the corresponding sparse attention layer's KV cache (KV Share) and the indexer's selected positions of up to 2,048 tokens (Index Share). This gives fixed compute per draft token — each draft token attends to at most ~2K keys, so attention complexity is independent of context length — zero extra KV memory since no separate drafter cache is needed, and PD-disaggregation friendliness since the drafter skips prefill and prefill-to-decode transfer only needs one final-layer hidden state.

On benchmarks, across 19 public evaluation sets DFly2's acceptance length and speedup ratio beat DFlash and DSpark under equal training conditions, averaging about 12% and 30% higher speedup than DSpark, with the largest gains on long-context and Agentic tasks. Against open-source baselines, DFly2 on Hy4 flash leads DSpark by 10.4% in acceptance length on Agentic and real-world tasks (WorkBuddy). Code and weights are on GitHub (Tencent/AngelSpec) and HuggingFace (AngelSlim), with a paper on arXiv (2611.34776).

Original · IT之家

让 Hy4 flash 吐字提速 4.2 倍,腾讯混元开源新一代草稿模型 DFly2

IT之家 11 月 26 日消息,腾讯混元团队今日开源新一代草稿模型 DFly2。 官方表示,DFly2 不替换 Hy4 flash,作用更像是挂在旁边的加速组件, 可以在保持模型权重不变、输出不变的前提下,让模型吐字速度成倍提升 。 DFly2 专为 DSA 类稀疏注意力大模型和长上下文场景设计,适配 Hy4 flash 的权重及完整训练代码同步开源。 据介绍,DFly2 实现了: 同等训练条件下表现更优 :Hy4 flash 在 19 个公开评测集上,DFly2 的接收长度与加速比整体优于 DFlash 与 DSpark,长文与 Agentic 优势更明显,平均加速比较 DSpark 分别高约 12% 与 30%, 单项最高提速 4.2× 。 对比开源方案同样占优 :与主流开源模型自带的 DSpark 相比,Hy4 flash 的 DFly2 在 Agentic 与真实任务(WorkBuddy)上接收长度领先 10.4% 。 官方表示,DFly2 最大的亮点是极致复用目标模型:每个 draft 层直接共享目标模型对应稀疏注意力层的 KV cache(KV Share)和 indexer 选出的至多 2,048 个位置(Index Share)。由此带来三点优势: 计算开销固定 :每个 draft token 至多关注约 2K 个 key,注意力复杂度与上下文长度无关。 零额外 KV 显存 :无需为 drafter 单独维护 KV cache。 PD 分离友好 :不参与 prefill,P → D 仅额外传输一个末层隐状态。 IT之家附相关链接: GitHub: https://github.com/Tencent/AngelSpec HuggingFace: https://huggingface.co/AngelSlim Paper: https://arxiv.org/abs/2611.34776

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Models" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Hunyuan, DFly2, Hy4 flash, inference optimization.

Source attribution: curated from IT之家.