AI Trends

Tencent Hunyuan Open-Sources the DFly2 Speculative Decoder

Tencent HunyuanUpdated Nov 26 20:24

AI summary

DFly2 is a speculative-decoding draft model for Hy4 flash, delivering up to 4.2× acceleration for long-context and agent workloads. It shares the target model’s KV cache and uses top-k token selection, ensuring that draft-generation costs do not increase with context length and requiring no additional KV memory. In agent tasks, it is about 30% faster than DSpark using the same approach and yields 10.4% more accepted draft tokens than the open-source DSpark.

Body

🚀 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

Source

Tencent Hunyuan