Tencent open-sources DFly2, a decoding accelerator for long contexts: generation 3.4 times faster on Hy4 flash agent tasks, real-world gain far more modest
Tencent has released the weights (under Apache 2.0), training code and technical report for DFly2, a speculative decoding “draft” model that reuses the main model's cache and sparse attention selection. It targets Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash. On Hy4 flash agent tasks, generation runs 3.41 times faster according to Tencent, but the end-to-end gain drops to 1.67 times, and the new drafts that were measured are still awaiting support in vLLM.

On November 26, 2026, Tencent open-sourced DFly2, the small model that speeds up text generation in Hy4 flash, and extended it to two rival models: DeepSeek-V4.1-Flash and GLM-5.3-Flash. The AngelSpec repository contains the training code, the weights are on Hugging Face under the Apache 2.0 license, and a technical report details the method. The benefit is concrete for anyone serving these models on their own servers, especially for agents handling contexts of tens of thousands of tokens.
The principle: a draft that doesn’t redo the work
Speculative decoding means having a small “draft” model propose several tokens ahead, which the large model verifies in a single pass. The output is identical to normal generation, only faster. The problem with long contexts is that the draft must also “read” the entire context: either it keeps its own cache, which is memory-hungry, or it restricts itself to a recent window and misses distant information.
DFly2 gets around the difficulty by relying on the sparse attention of the target models, which already look at only a selection of positions for each token. Each draft layer reuses the cache of a main-model layer and the position selection (up to 2,048 on Hy4 flash) that this layer has already computed. The result, according to the Hugging Face card and the Hy4 flash card: no additional cache, a constant draft cost regardless of context length, and unchanged prompt processing speed.
What the numbers say
Tencent’s measurements cover the new MoE draft published for Hy4 flash (Nvidia H20 GPU, one request at a time). They compare DFly2 with baseline methods that Tencent trained itself with the same recipe and the same data, the two main ones of which appear below (a limited-window variant of DFlash, DFlash†, is also tested):
| Average on Hy4 flash (MoE draft) | DFlash (full cache) | DSpark | DFly2 |
|---|---|---|---|
| Tokens accepted per step, general-purpose benchmarks | 3.58 | 3.81 | 3.96 |
| Tokens accepted per step, agent benchmarks | 2.00 | 3.16 | 4.11 |
| Decoding speedup, agent benchmarks | 1.65× | 2.63× | 3.41× |
| End-to-end speedup, agent benchmarks | 1.34× | 1.55× | 1.67× |
Values at temperature 0, greedy decoding. Source: Tencent’s Hugging Face card.
Two takeaways stand out. First, DFly2’s advantage grows with length: DFlash, which keeps its own cache, collapses as soon as prompts exceed 32,000 tokens, the training length (1.08 tokens accepted per step on MemAgent), while DFly2 holds up. Second, and this is what Tencent’s message on X does not highlight, the real-world gain is far more modest than the decoding gain once the prompt is long: on AgentLongBench, the speedup goes from 4.55 times in decoding to 1.35 times end to end. The end-to-end measurement includes initial prompt processing, which DFly2 does not accelerate: on very long prompts, that is likely what then weighs most in total time.
Under heavy load, the technical report claims a clearer benefit: on DeepSeek-V4.1-Flash, at equal per-user speed, 62% and 81% more throughput than the best baseline method on 64,000-token benchmarks. That is the figure that matters for a hosting provider, since it translates into requests served per GPU; Tencent does not publish it for Hy4 flash.
What remains to be verified
All measurements come from Tencent, which trained the competing methods itself; no independent evaluation is available yet. On deployment, two cases must be distinguished: the dense draft built into Hy4 flash is already deployable with the prebuilt vLLM and SGLang images listed by Tencent, but no separate measurement is published for it in the sources consulted; for the new MoE drafts released on November 26, the ones that were measured, including for DeepSeek and GLM, vLLM support is “in progress” and no deployment instructions have been published yet. By design, each draft is tied to its main model and requires native sparse attention. Finally, Tencent claims on X a speedup of “up to 4.2 times” that we could not find in any table of the Hy4 flash card.
Our take
DFly2 illustrates a shift in the efficiency race: after sparse attention models, which reduce the cost of long contexts, labs are optimizing the tools that orbit around them. The fact that Tencent is publishing drafts for DeepSeek and Zhipu (GLM), its direct competitors, under the Apache 2.0 license suggests it is seeking to establish its method as a standard for open inference rather than keeping it for Hy4. For a team running agents on its own GPUs, the gain to remember is not the 3.4 times measured in decoding alone, but the additional throughput at high concurrency. On Hy4 flash, a built-in version of DFly2 is already deployable, but the measured gains concern the new MoE drafts, which are awaiting integration into vLLM: until then, this is a solid research advance rather than a production-ready tool.
Sources
- GitHub — Tencent/AngelSpec (repository, November 26, 2026 announcement and license) Primary source
- Hugging Face — AngelSlim/Hy4-flash-DFly2-B6 (draft model card, results and license) Primary source
- arXiv — DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity (technical report, Tencent) Primary source
- Hugging Face — AngelSlim/DS-V4.1-Flash-DFly2-B6 (draft for DeepSeek-V4.1-Flash) Primary source
- Hugging Face — AngelSlim/GLM-5.3-Flash-DFly2-B6 (draft for GLM-5.3-Flash) Primary source
- GitHub — Tencent-Hunyuan/Hy4-flash (main model card, vLLM and SGLang deployment) Primary source
- Tencent Hy on X — DFly2 announcement (November 26, 2026) Primary source
A primary source comes directly from the company, lab or organization concerned. A secondary source reports the information without being its author: we flag it as such. Spotted an error? See our corrections policy.
How we work: editorial charter and methodology · our verification process · corrections log. Spotted an error? Write to contact@neuralbrew.ai.


