腾讯混元开源 DFly2 投机解码起草器,长上下文最高提速 4.2×
腾讯混元把 Hy4 flash 的投机解码起草器 DFly2 开源了,长上下文最高能快 4.2 倍,还不占额外 KV 内存。跑 agent 任务比开源版 DSpark 快 30% 左右,做长上下文推理部署的可以试试。
腾讯混元宣布开源 DFly2,这是 Hy4 flash 模型的投机解码起草器,在长上下文与智能体工作负载中最高可带来 4.2× 推理加速。
DFly2 的核心机制是共享目标模型的 KV cache,并配合 top-k token 选择策略,因此起草成本不随上下文长度增加而上升,也不会产生额外的 KV 内存开销。这解决了投机解码起草器在长上下文场景下成本膨胀的常见痛点。
在智能体任务上,DFly2 比同配方训练的 DSpark 快约 30%,接受的草稿 token 数比开源版 DSpark 多 10.4%。代码已在 GitHub 开源,权重发布在 HuggingFace,部署 Hy4 flash 做长上下文或 agent 推理的开发者可以直接集成。
🚀 We’re open-sourcing DFly2 — Hy4 flash’s speculative decoding drafter, delivering up to 4.2× speedup for long-context & agentic workloads.
✨ Shares the target model’s KV cache + top-k token selection
→ Drafting cost stays flat at any context length → Zero extra KV memory
On agentic tasks: ~30% faster than same-recipe DSpark, and accepts +10.4% more draft tokens vs open-source DSpark.
GitHub: https://t.co/6Li9K4wTFY HuggingFace: https://t.co/jy3dFUCQnO DFly2: https://t.co/ZgmYgEaVcn
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, inference optimization, open-source models.
Source attribution: curated from 腾讯混元 (@TencentHunyuan).