Tencent DFly2 Speculative Decoding: 3x Decode Speed, 1.5x End to End

Tencent open-sourced DFly2, a drafter that reuses the target model's sparse KV cache. We pulled the report's decoding and end to end speedups for DeepSeek-V4.1-Flash, GLM-5.3-Flash and Hy4 flash: 3x on decoding shrinks to 1.2x to 2.1x per request.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 3 min read
Share
A technician seen from behind kneels at an open server rack in a quiet data hall.
Image: AI-generated, i10X
On this page
  1. The idea: let the target pick the context
  2. What the speedups look like in practice
  3. Before you try it
  4. i10x Perspective

Tencent has open-sourced DFly2, a speculative decoding drafter for sparse-attention models, with weights for DeepSeek-V4.1-Flash, GLM-5.3-Flash and its own Hy4 flash in the AngelSpec repository, plus a technical report. The headline numbers are decoding speedups of about 3x on long and agentic prompts. The report’s own end to end figures are lower, and they are the ones that matter if you run a serving stack: on DeepSeek-V4.1-Flash an agentic workload gets 3.10x faster decoding but only 1.50x faster requests.

The idea: let the target pick the context

Speculative decoding lets a small drafter guess several tokens that the big model then verifies in one pass. Drafters such as DFlash and DSpark keep their own KV cache over the prompt, which costs memory and prefill time, and the cost grows on models that already compress their cache. DFly2 drops that cache. Each draft layer reads the latents that a paired layer of the target has already cached, at the positions the target’s sparse-attention indexer selected, so every draft token attends to roughly 2,000 keys regardless of context length.

Tencent’s own memory table shows why this matters for the current wave of compact-cache models. A three-layer drafter with its own cache adds 3.4 KiB per token on top of DeepSeek-V4.1-Flash’s 4.4 KiB, a 1.76x increase. On GLM-5.3-Flash (11.7 KiB) the increase is 1.26x, on Hy4 flash (17.2 KiB) 1.20x. The report estimates that sharing the target’s cache lets the same memory pool hold 1.73x as many requests at 32K tokens. If you served DeepSeek’s 890-byte-per-token cache design and wondered what a drafter would do to it, this is the answer.

What the speedups look like in practice

The README and report give two speedups per setup, measured at a concurrency of one: decoding alone, and end to end including prefill. We pulled the long-context and agentic averages for DFly2 and for DSpark, the stronger of the baselines, from Tencent’s tables.

TargetLong context: DFly2 (decode / end to end)Long context: DSparkAgentic: DFly2 (decode / end to end)Agentic: DSpark
DeepSeek-V4.1-Flash2.87x / 2.11x2.47x / 1.91x3.10x / 1.50x2.61x / 1.44x
GLM-5.3-Flash2.45x / 1.64x2.07x / 1.49x2.61x / 1.22x2.14x / 1.17x
Hy4 flash3.06x / 2.12x2.70x / 1.98x3.41x / 1.67x2.63x / 1.55x

Source: AngelSpec README and DFly2 technical report (greedy decoding, concurrency one, speedup over no speculation). DSpark is the stronger baseline. Compiled by i10x.

Read the gap between the two numbers in each cell. Decoding gains of 2.5x to 3.4x shrink to 1.2x to 2.1x once prefill and the rest of the request are counted, and on agentic work, where prompts are long and answers short, they shrink the most. DFly2 still leads DSpark in all six comparisons, by 7 to 11 percent end to end on long prompts and 4 to 8 percent on agentic ones (our arithmetic from the table). Against the older DFlash design the difference is starker: on DeepSeek-V4.1-Flash’s agentic average DFlash ends up at 0.90x, slower than not speculating at all, because it spends time building its own cache over the prompt.

At high concurrency the picture is better. At the same per-user decode speed as DSpark on DeepSeek-V4.1-Flash, Tencent reports 28 percent more throughput on short text and 62 and 81 percent more on two 64K sets, a long-context code set and a software-engineering agent set. These come from the authors’ own vLLM setup on tp8 engines, with a block size of 5, so treat them as an upper bound for your hardware.

Before you try it

  • The code repository carries an Apache 2.0 license with a list of third-party exceptions. Check the license on each drafter’s Hugging Face page before shipping, since weights can differ from code.
  • The drafters are trained per target. There are checkpoints for Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash, and the repository ships vLLM configs for the last two. A different sparse-attention model needs its own training run.
  • The benefit depends on the target having a sparse-attention indexer. Dense models do not have the selections that DFly2 reuses.
  • The gains are measured with greedy decoding at concurrency one, and accepted lengths fall at higher temperatures: DFly2’s mean accepted length on DeepSeek-V4.1-Flash’s agentic set drops from 4.06 at temperature 0 to 3.75 at temperature 1.

i10x Perspective

The useful result is not the 3x. It is that drafter design is now a memory question as much as a speed question: as target models shrink their KV cache, a drafter with its own cache eats a larger share of what was saved. For anyone serving long-context agents on one of these three models, DFly2 is a credible default to benchmark first, but plan around 1.2x to 2x end to end, and measure on your own prompt lengths before changing capacity plans. Still open: independent numbers on other engines such as SGLang, and how the drafters hold up on real production traffic mixes.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Liquid AI d1.3-ultra Ties Bison 31B on Decision Index at 61% Lower Task Cost
  2. Alexa for Shopping in Europe: Use Its Price History to Check Black Friday Deals
  3. Tencent DFly2 Speculative Decoding: 3x Decode Speed, 1.5x End to End
  4. EEF Tests Gemini and Copilot Tutors on Pupils: Which Schools Can Join Its AI Trials
  5. FDA Clears Mediwhale’s Retinal AI for Heart Risk, but Its Middle Tier Is Wide