Pull to refresh
Logo
Tencent open-sources DFly2, a draft model that reads the main model's cache

Tencent open-sources DFly2, a draft model that reads the main model's cache

New Capabilities

Drafting work stops growing with context length on three natively sparse models. Every speedup figure so far is Tencent's own.

Overview

Updated 16 minutes ago

A large language model writes one token at a time, and every token means re-reading the entire conversation. Speculative decoding softens that: a small draft model guesses several tokens ahead, and the big model checks the guesses in a single pass. The catch is that the draft model has always kept its own copy of the conversation, and that copy costs memory.

DFly2, released by Tencent this week, deletes the copy. The drafter reads the main model's compressed cache, at the few thousand positions the main model already chose to look at. On a 128,000-token context, a draft step reads about as much memory as it does on a short one.

Why it matters

Drafting that no longer grows with context makes long agent sessions cheaper to serve. So far it works on three models, all natively sparse.

Questions about this story

Free account needed to ask — your question is kept and asked for you right after sign-up. Answers are public.

No questions yet — be the first to ask.

Key Indicators

4.2×
Claimed decoding speedup on Hy4 flash
Tencent's best-case figure for long-context and agentic workloads, posted on social media.
2.17×
Claimed end-to-end speedup, Hy4 flash
Includes prompt processing, which DFly2 does not accelerate.
81%
More throughput on agentic traffic, DeepSeek-V4.1-Flash
At 64K context, matched per-user decode speed, high concurrency, Tencent's H20 test.
62%
More throughput on long-context traffic, DeepSeek-V4.1-Flash
Same setup as the agentic figure: TP8 H20s, 64K context, Tencent measurement.
10.4%
More draft tokens accepted than open-source DSpark
Tencent's comparison against a drafter trained on the same recipe.
~2,000
Keys a single draft token attends to
Set by the target's indexer, so it does not grow with context length.

Voices

Curated perspectives — historical figures and your fellow readers.

Sign up to generate historical perspectives on this story.

People Involved

Organizations Involved

Timeline

4 events Latest: Today
Tap a bar to jump to that date
  1. Release lands without serving support for two of three drafters

    Today Deployment

    vLLM support for the DeepSeek and GLM drafters is listed as in progress, and no deployment instructions for them have been published. The dense Hy4 flash drafter ships with prebuilt images.

  2. Weights, code and technical report go public

    Release

    Tencent publishes the full DFly2 release, with mixture-of-experts drafters for Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash.

  3. Training support reaches Hy4

    Release

    DFly2 training is extended to the Hy4 model family, two days after the first training release.

  4. AngelSpec adds DFly2 training

    Release

    Tencent's AngelSpec repository ships version 0.2.0, which adds training support for the DFly2 drafter.

Scenarios

1

An outside lab reproduces the long-context throughput gain

Possible Resolves by Q2 2027

Discussed by: Tencent's own benchmarks; no third party has published measurements yet

Tencent reports 62% more throughput on long-context traffic and 81% more on agentic traffic when serving DeepSeek-V4.1-Flash at 64K, at matched per-user speed. Confirming that requires an outside team to run the drafters inside a serving stack with the same batching and concurrency. If the gap survives at even half its size, DFly2 becomes the default add-on for natively sparse models.

2

vLLM ships support for the new mixture-of-experts drafters

Likely Resolves by Q1 2027

Discussed by: Tencent's release notes and Neural Brew's deployment review

The November 26 drafters for DeepSeek and GLM are trained and downloadable, but the serving engine most teams use does not load them yet. Engine support decides whether the release is usable or a research artifact. The Hy4 flash drafter already runs on prebuilt vLLM and SGLang images, which gives a template for the others.

3

The technique stays inside the sparse-attention club

Likely Resolves by Q2 2027

Discussed by: thehype.news and mlllm.io, which both flag the sparse-attention requirement

DFly2 borrows an indexer's top-k selection, so the target model has to have an indexer. Dense models such as Qwen3 have nothing to borrow, and a drafter for them would still need its own cache. That limits the addressable market to whatever fraction of production traffic runs on natively sparse architectures.

Historical Context

3 moments from history that rhyme with this story — and how they unfolded.

December 2022

Speculative decoding (2022)

Three Google researchers proposed letting a small model draft several tokens ahead, then checking all of them against the large model in one forward pass. Drafts the large model would have rejected get discarded. The final text is identical to what the large model would have produced alone.

Then

Picked up quickly because it costs nothing in output quality and delivered real wall-clock gains on memory-bound generation.

Now

Created a new component to optimize, the drafter, and a new metric to compete on: how many drafted tokens survive verification.

Why this matters now

DFly2 competes on that same acceptance metric, but it attacks a cost the original method introduced: the drafter's own memory.

September 2025

DeepSeek Sparse Attention (2025)

DeepSeek released a model variant with an attention scheme that scores every context position using a cheap indexer, then attends only to the highest-scoring ones. Because the indexer runs per query, the chosen positions shift token by token.

Then

Cut the per-token cost of long contexts and shipped in an open-weights release anyone could inspect.

Now

Made native sparsity a design choice other labs could copy, and made the per-query selection something a serving stack could store and reuse.

Why this matters now

That stored selection is exactly what DFly2 reads. Without an indexer on the target, the drafter has nothing to borrow.

2024

EAGLE and Medusa (2024)

Two drafter designs dropped the standalone small model. Medusa attached extra prediction heads to the target itself, and EAGLE trained a lightweight drafter on the target's internal features rather than on raw tokens.

Then

Raised acceptance rates while cutting the cost of running a drafter at all.

Now

Established the principle that a drafter should share the target's computation instead of duplicating it, which later drafters took as a starting point.

Why this matters now

DFly2 pushes sharing one step further, from the target's features to the target's cache and its index. That is what removes the drafter's memory footprint entirely.

Sources

(10)