Skip to content
Neural Daily

ResearchNews

DFly2: Tencent's open drafter speeds up long contexts

🇭🇺 Olvasd el magyarul →

Tencent has open-sourced DFly2, a speculative decoding drafter for sparse-attention models. Instead of keeping its own KV cache, it reuses the target model's cache and selection, so its advantage grows most on long-context and agentic workloads.

· 3 min read

A DFly2 felépítése: a draft modell rétegei a célmodell sparse KV cache-ét és top-k indexeit használják
Image: Tencent · Press kit · Source

What happened

On November 26, Tencent's Hunyuan AI Infra team fully open-sourced DFly2: the weights, the training code in its AngelSpec framework, and the technical report (arXiv, GitHub). DFly2 is a block-parallel drafter for speculative decoding. A small draft model proposes several tokens, and the large model verifies them in one pass. It is lossless: same output, just faster.

New MoE drafters are available for Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash (Hugging Face). Hy4 and Hy4 flash already ship with this drafter. Our coverage of Hy4's open weights: Tencent Hy4 open weights are out: 770B MoE, 49B active.

What is new

Models such as DeepSeek-V4 and Hy4 use native sparse attention: in each layer, a trained indexer picks a fixed number of positions from the context, and the KV cache is stored compressed. Today's drafters, however, were built for dense models. They keep their own cache over the whole prompt or a sliding window. The report says DFlash's own cache adds a fifth to the per-token KV on Hy4 flash and three quarters on DeepSeek-V4.1-Flash.

DFly2's idea is simple: the sparse target has already decided where to look, and paid for it. So each draft layer:

  • reads the KV cache of its paired target layer (KV sharing),
  • at exactly the positions that layer's indexer selected (Index sharing),
  • starts from that layer's weights and also receives the target's last-layer hidden state.

There is no separate cache, no scoring pass, and no role in prefill. According to the README, each draft token attends to at most about 2,000 keys regardless of context length. The report also measured that a selection made one step early still covers close to nine tenths of what later tokens select on DeepSeek-V4.1-Flash.

The numbers

The team compared DFly2 with DFlash and DSpark trained on the same recipe. On all three targets and every benchmark, DFly2 accepted more tokens per step. Its margin over the stronger baseline is 3.9% to 10.5% on general workloads and 10.0% to 31.5% on long-context and agentic workloads up to 128K.

DFly2, DSpark és DFlash összevetése rövid, hosszú kontextusú és agentes teszteken Hy4 flash és Hy4 célmodellel
Tencent · Press kit · Source

Source: Tencent, AngelSpec README

  • DeepSeek-V4.1-Flash at high concurrency and matched per-user decode speed, 64K context: 62% more throughput on long-context sets and 81% more on agentic sets.
  • Hy4 flash, agentic average: 3.41x decoding and 1.67x end-to-end speedup over autoregressive decoding (greedy, single request).
  • Hy4 flash and Hy4 on agentlongbench 64K: 4.20x decoding speedup.

Caveats: these are Tencent's own measurements, with no independent benchmark yet. The 4.20x figure is the best case, and end-to-end gains are much smaller. Each drafter is tied to its target model and must be retrained for others.

Why it matters

Agentic work means long contexts, and that is where decoding is slowest. Most inference optimizations were designed for dense models. DFly2 shows that a sparse model's indexer can be reused for speedups, not just for cheaper attention. If you serve DeepSeek-V4.1-Flash, GLM-5.3-Flash or Hy4, the ready-made drafters are worth testing on your own traffic. The code ships under a custom AngelSpec license, so read it before use.

    By Mikola Máté Patrik

    Produced with the help of AI, reviewed by an editor. How we make our articles

    Reviewed and edited by the Neural Daily desk. About

    Related articles