Tencent open-sourced DFly2 on November 26, 2026: weights, training code, and a technical report for a speculative decoding drafter built for sparse attention models. The headline gain is up to 81% higher throughput on DeepSeek-V4.1-Flash with a 64k-token context.

Tencent open-sources DFly2 and accelerates DeepSeek by up to 81%
Tencent has open-sourced DFly2, a speculative decoding drafter that reuses the model's sparse cache and achieves up to 81% higher throughput at 64k tokens.
Get AI articles in your inbox
Technical curation on models, agents and coding tools. No spam, unsubscribe anytime.
For teams serving code models and agents with long context, this directly impacts cost per request. The data comes from the team's own report and has not yet been independently reproduced.
In this article you will see:
- What DFly2 is and how it avoids a private cache
- The report's numbers on DFlash and DSpark
- Which models have published drafters and how to get started
- Limits of the result and what to test before using
What DFly2 is, Tencent's drafter for sparse models
Speculative decoding is a technique where a small model, the drafter, proposes several tokens at once and the main model verifies them in a batch. When the drafter is right, the system generates more text per large-model step.
DFly2 was created by Tencent's Hunyuan AI Infra team for natively sparse targets such as DeepSeek-V4 and Hy4. These models pick, for each query, only a few context positions to attend to, avoiding the quadratic cost of dense attention.
The problem with previous drafters, according to the technical report on arXiv, is that they maintain a private context cache. This consumes memory, slows prefill, and reduces concurrency at decode time.
How DFly2 reuses the target model's cache
DFly2's idea is to pay once. Each drafter layer reads the KV that the paired target layer has already stored, what the report calls KV sharing.
The drafter also uses the positions the target's indexer has already selected, called index sharing. Result: no extra scoring pass and no private cache.
The authors measure that a selection made one step ahead still covers about nine-tenths of what each next token selects in DeepSeek-V4.1-Flash. That number underpins the bet.
The AngelSpec README summarizes the advantages: constant cost, since each draft token looks at at most about 2,000 keys, zero extra KV memory, and compatibility with prefill-decode separation.
DFly2's numbers against DFlash and DSpark
The report compares DFly2 with DFlash and DSpark trained with the same recipe, on DeepSeek-V4.1-Flash, GLM-5.3-Flash, and Hy4 flash. In accepted tokens per step, DFly2 leads on all three.
The margin over the strongest baseline rises from 3.9% to 10.5% on general workloads to 10.0% to 31.5% on long-context and agent benchmarks. The longer the context, the larger the advantage.
On DeepSeek-V4.1-Flash, MarkTechPost's coverage lists the average accepted tokens at temperature zero: 4.12 for DFly2, versus 3.81 for DSpark and 3.65 for DFlash.
Under high concurrency, with the same per-user speed, throughput rises 62% and 81% on two 64k-token sets. In Tencent's announcement on X, the company says Hy4 flash reaches a 4.2x speedup on agent tasks, about 30% above DSpark.
Which models have published drafters
According to the README, Tencent published MoE drafters on Hugging Face for three targets:
- Hy4 flash: DFly2 B6 drafter, plus the dense drafter already embedded in the model
- DeepSeek-V4.1-Flash: DFly2 B6 drafter
- GLM-5.3-Flash: DFly2 B6 drafter
The repository has from-scratch training examples for Hy4 and Hy4 flash. The documented install is pip install -e ".[vllm]", plus the mooncake-transfer-engine package, and the single-node quickstart uses 8 GPUs, 4 for inference and 4 for training.
The project has 463 stars on GitHub and saw commits on November 26 and 27, but has not published releases. The license is the AngelSpec License, Tencent's own, so read the LICENSE file before commercial use.
What the results don't yet prove
All numbers come from the authors. There is still no independent measurement or comparison on hardware different from what was used in the report.
The 81% applies to one model, high concurrency, and a 64k-token context. With short context or low load, the gain tends to be smaller, and the report itself shows smaller margins on general workloads.
DFly2 also applies only to sparse targets. For dense models, the described gain does not transfer automatically.
If you already use speculative decoding, it's worth comparing with what we showed in the Inkling 2 Mini test with DSpark on vLLM and the Nemotron 3.5 Parse DFlash2. For serving models yourself, also check out the repositories for running LLMs locally.
Frequently asked questions about Tencent's DFly2
What is Tencent's DFly2?
It's a speculative decoding drafter that shares the KV cache and position selection of the sparse target model, so it doesn't maintain its own cache. Tencent released the weights, training code, and technical report on November 26, 2026.
Which models does DFly2 accelerate?
The report tests DeepSeek-V4.1-Flash, GLM-5.3-Flash, and Hy4 flash. The AngelSpec README also lists Hy4 as a target and includes published MoE drafters for Hy4 flash, DeepSeek-V4.1-Flash, and GLM-5.3-Flash.
Does the 81% gain apply to any use case?
No. The figure applies to DeepSeek-V4.1-Flash under high concurrency, with equivalent per-user speed, across two 64k-token sets (62% and 81%). These are the authors' own measurements, without independent reproduction.
Does DFly2 change the model's responses?
The source consulted doesn't make that claim. Speculative decoding generally proposes tokens that the primary model verifies, but check the report and test on your workload before putting it in production.
Does the license allow commercial use?
The repository uses a custom license called the AngelSpec License, not a standard one like MIT. Read the LICENSE file on GitHub before any commercial use.
What DFly2 changes for those serving code models
For teams hosting DeepSeek or GLM with long-context agents, DFly2 points to a concrete path: more requests per GPU without losing per-user speed. It's worth a test on your workload before any decision.
The move matters for another reason too: Tencent released weights, training code, and the report together, which enables reproducing and adapting the method.
Got a stalled idea? Put DFly2 to work on it and see how orchestration works in bridgecode, where one agent plans, another executes, and another reviews.
Source: Tencent
Related articles

Tencent launches Hy4 Flash with 1M context and low price
Tencent launched Hy4 Flash on November 17, 2026: 224B parameters, 12B active, 1M token context window and a focus on low cost per task.

Google launches Gemini 4 Hydrogen: the fast version of the Gemini 4 family
Gemini 4 Hydrogen is the fast tier of the Gemini 4 family: flat pricing, 1M context, and four reasoning levels for agents and code workflows.

Z.ai's GLM-5.4 Uses Loop Transformer, Targets General-Purpose Code
Z.ai announced GLM-5.4, its first flagship with a 750B Loop Transformer, up to 200 tokens/s, and a focus on general-purpose code. API and weights not yet released.
