News/November 27, 2026

  • AI infrastructure
  • open source

Tencent open-sources DFly2 to speed up AI text generation

Tencent's Hunyuan AI team announced it is open-sourcing DFly2, a tool called a speculative decoder that works alongside its Hy4 flash language model to make text generation faster.

·1 min read·Apply

Tencent open-sources DFly2 to speed up AI text generation
Image: Tencent Hunyuan on X

Tencent Hy @TencentHunyuan

🚀 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… pic.twitter.com/eOpJdHtd07

pic.twitter.com/eOpJdHtd07

Source: Tencent Hunyuan on X

Tencent's Hunyuan AI team announced it is open-sourcing DFly2, a tool called a speculative decoder that works alongside its Hy4 flash language model to make text generation faster. Speculative decoding works by having a small, quick 'drafter' model guess several words ahead, which the larger main model then checks and accepts or rejects, speeding up the overall process compared to generating one word at a time. Tencent reports that DFly2 delivers up to a 4.2 times speedup on tasks involving long documents and multi-step AI agent work. A key technical detail is that DFly2 shares the main model's memory of previous context, called a KV cache, so the extra cost of drafting stays low even as documents get longer, and no additional memory is needed to run it. On agent-style tasks, Tencent says DFly2 runs about 30% faster than a similar drafter called DSpark using the same approach, and accepts 10.4% more of its guessed tokens than the open-source version of DSpark.

What it can help you build

Developers running Hy4 flash or similar models could plug in DFly2 to speed up response times for long-context tasks and AI agents without needing extra memory. This could make it cheaper to run large-scale agentic workloads, like automated coding assistants or document analysis tools, in production.

Why it matters

Faster text generation without extra memory costs makes AI agents and long-document tools cheaper and more responsive to run at scale.

Sources