On Nov 26, Tencent Hy announced on its official X account that it is open-sourcing DFly2, the speculative decoding drafter behind Hy4 flash, claiming up to 4.2x speedup on long-context and agentic workloads. Each DFly2 draft layer reads the KV that its paired sparse-attention layer in the target model has already cached, at the positions the target's indexer already selected, so the drafter keeps no KV cache of its own. The paper reports that on DeepSeek V4.1 Flash, GLM-5.3-Flash and Hy4 flash, DFly2 accepts more tokens per step than DFlash and DSpark trained on the same recipe: 3.9%-10.5% ahead on general workloads and 10.0%-31.5% ahead on long-context and agentic ones. The AngelSpec training framework is on GitHub, three drafters are on Hugging Face under Apache 2.0, and vLLM support is still in progress.

Key Takeaways

  • ✓Speed: Tencent claims up to 4.2x on long-context and agentic workloads; on agentic tasks it is about 30% faster than same-recipe DSpark and accepts 10.4% more draft tokens
  • ✓Method: draft layers reuse the target model's KV cache and sparse index (KV sharing plus index sharing), so drafting cost stays flat as context grows and adds zero KV memory
  • ✓Paper figures: the lead over the stronger baseline grows from 3.9%-10.5% on general workloads to 10.0%-31.5% on long-context and agentic ones; at high concurrency on DeepSeek V4.1 Flash, throughput is 62% and 81% higher on two 64K sets
  • ✓Availability: drafters for Hy4 flash, DeepSeek V4.1 Flash and GLM-5.3-Flash under Apache 2.0; the Hy4 flash version has 3 MoE layers and block size 6
  • ✓Caveat: vLLM speculative decoding support is still in progress, so for now it runs with AngelSpec
Tencent Hy Open-Sources DFly2 Speculative Decoding Drafter: Reuses the Target Model's KV Cache and Sparse Index, Up to 4.2x Faster on Long-Context and Agentic Work, Drafters for Hy4 flash, DeepSeek V4.1 Flash and GLM-5.3-Flash
🖼️Official Media
Click to view high-res
🧭

Turn your technical choice into a development budget

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

🔬

In-Depth Technical Analysis

Background

Speculative decoding speeds up inference by letting a small drafter guess several tokens for the big model to verify at once, but drafters usually keep their own context cache. At long context that cache eats memory and slows prefill and concurrency. DFly2, open-sourced by Tencent Hy in an official X post, targets that problem.

How it works

Per the paper, natively sparse models such as DeepSeek V4.1 and Hy4 already pick context positions for every query. Each DFly2 draft layer reads the KV cache of its paired target layer at the positions that layer's indexer selected, so it keeps no cache, runs no indexer, and reads a fixed amount regardless of context length.

Numbers that matter

Tencent claims up to 4.2x speedup on long-context and agentic workloads. In the paper, versus DFlash and DSpark trained on the same recipe, DFly2 accepts 3.9%-10.5% more tokens per step on general workloads and 10.0%-31.5% more on long-context and agentic ones; at high concurrency on DeepSeek V4.1 Flash, throughput is 62% and 81% higher on two 64K sets.

What it means for developers

The training framework is on AngelSpec GitHub and the drafters are on Hugging Face (for example Hy4-flash-DFly2-B6) under Apache 2.0. Deploy them with the matching target model; vLLM support is still in progress, so self-hosting teams can benchmark long-context gains with AngelSpec first.

Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up Nextllama.cpp and ggml Ship v1.0.0: First Major Version in 3.5 Years Adopts Semantic Versioning, With Breaking C API Changes Now Forcing a Major Bump; Release Drops 35 Deprecated Functions and Adds FP8 KV Caches, a MoE Expert Cache and /v1/audio/speech
Read Now→