News · · 7 min read
Tencent Open-Sources DFly2: 3.1x Decode vs 1.5x End to End on Agentic Work with DeepSeek-V4.1-Flash
In this post
On November 26, 2026, Tencent's Hunyuan AI Infra team released the weights, training code and technical report for DFly2, a drafter for speculative decoding. Alongside the drafter for its own Hy4 flash, it published drafters for DeepSeek-V4.1-Flash and GLM-5.3-Flash. The core idea is that the drafter keeps no KV cache of its own. It borrows the sparse-attention cache and position selection that the main (target) model has already computed.
The short version: on seven long-context and agentic benchmarks, Tencent measured DeepSeek-V4.1-Flash decoding at 2.44x to 3.82x the speed of running without a drafter. Once prompt processing (prefill) is counted, the end-to-end speedup drops to 1.24x to 2.37x. On three of the four agentic benchmarks, a single request finishes only 19% to 27% sooner. And the DeepSeek-V4.1-Flash drafter's vLLM support is still listed as "in progress," so teams that self-host the model cannot plug it in today. This post covers what the drafter design changes, why decode and end-to-end numbers diverge, the high-concurrency results, and what is and isn't available now.
The cache drafters used to carry
In speculative decoding, a small drafter guesses the next few tokens and the large target model verifies them in one pass, keeping the ones it agrees with. The more tokens accepted, the faster the output. Long contexts are the problem. A drafter needs to see the earlier context too, so drafters until now built their own cache over the whole prompt or a recent window. That cache costs memory, adds prefill time, and lowers how many requests fit at once.
DFly2 removes it. Models like DeepSeek-V4.1-Flash already use sparse attention, with an indexer choosing which context positions each token attends to. Each DFly2 draft layer reads the KV its paired target layer has already cached (KV sharing), at the positions that layer's indexer has already chosen (index sharing). According to the DeepSeek-V4.1-Flash model card, the drafter has three MoE layers, paired with target layers 28, 32 and 36. Each draft step reads the target's top-512 selection plus a 128-token near window. The model card puts this at 646 keys per step with the 6-token block, at any context length.
The model card lists three effects. A three-layer drafter with its own cache would add 3.4 KiB per token on top of the target's 4.4 KiB, raising per-token KV to 1.76x. DFly2 adds none, so the same KV pool holds 1.73x as many requests at 32K tokens. A fixed read of 128 to 2K positions costs 4% to 6% of a decode step at every context length, while reading a full cache of its own climbs to 14% to 23% at 128K. Tencent also reports that a selection made one step early still covers 0.873 to 0.880 of the top-k mass later tokens in the block would select, against 0.147 to 0.175 for a recent window of the same size.
The gap between decode and end-to-end speedup
Every cell in the model card's speed table holds two numbers: decode and end-to-end. Decode covers only token-by-token generation. End-to-end covers the whole request, including prefill. We pulled out the DFly2 rows and put them on one axis.
With short prompts the two numbers almost match. The seven general-purpose benchmarks average 3.14x decode and 2.97x end to end. When the prompt is short, most of the request time is presumably decoding, so faster decoding means a faster request.
On agentic work they come apart. AgentLongBench has the highest decode speedup at 3.82x but only 1.25x end to end. Agentic requests often feed in long tool output and conversation history and get a short answer back, so most of the time likely goes to prefill. What the model card states is that DFly2 leaves prefill speed unaffected; it makes no claim of faster prefill. Converting speedups into time saved makes the difference clearer. We computed the share of time saved as 1 − 1/speedup.
| Workload | Decode | End-to-end | Time saved per request |
|---|---|---|---|
| General, 7-set average | 3.14x | 2.97x | 66.3% |
| LongSWE 64K | 3.00x | 2.13x | 53.1% |
| LongSWE 128K | 2.94x | 1.86x | 46.2% |
| Agentic, 4-set average | 3.10x | 1.50x | 33.3% |
| BFCL-v3 (long multi-turn) | 2.97x | 1.36x | 26.5% |
| AgentLongBench | 3.82x | 1.25x | 20.0% |
| MemoryAgentBench | 2.60x | 1.24x | 19.4% |
End to end, DFly2 doesn't always win either. DSpark, a baseline drafter Tencent trained on the same recipe, edges it out on MemoryAgentBench (1.27x vs 1.24x) and BFCL-v3 (1.37x vs 1.36x). DFly2's clear win is over DFlash, which builds its own cache over the full context. The model card says both DFlash variants take up to twice as long to the first token on long prompts and end the agentic sets slower than not speculating at all. DFlash's agentic end-to-end average is 0.90x.
Results at high concurrency
All the numbers above use a single concurrent request. Real services batch many requests on one machine, which is where skipping the drafter cache matters more. The model card separately reports throughput against DSpark with per-user decode speed held equal.
| Workload | Deployment | Throughput at equal per-user speed (vs DSpark) |
|---|---|---|
| Short text | 1 prefill : 1 decode | +28% |
| CodeSpan 64K | 8 prefill : 1 decode | +62% |
| LongSWE 64K | 8 prefill : 1 decode | +81% |
The 81% figure for DeepSeek-V4.1-Flash in some headlines is the last row. It is measured against another drafter (DSpark), not against DeepSeek-V4.1-Flash without a drafter, on 64K-token coding tasks with eight prefill instances per decode instance.
What you can run today and what you can't
What has been released differs by target model.
| Target | Released | Serving status |
|---|---|---|
| Hy4 | 5-layer, 3.3B-parameter DFly2 drafter built into the model | Hy4 README has vLLM and SGLang launch examples |
| DeepSeek-V4.1-Flash | Drafter weights (Apache-2.0), training config | Model card: "vLLM support in progress". vLLM and SGLang support PRs were unmerged drafts as of November 29 |
| GLM-5.3-Flash | Drafter weights, training config | Not checked for this post |
The DeepSeek-V4.1-Flash drafter has to run alongside the target model and uses a block size of 6 (one anchor token plus five draft tokens). It shares the target's embedding and LM head, which aren't stored in the repository. The model card's deployment section says only that serving instructions will be added once vLLM support lands. The work has started. A draft vLLM PR for this checkpoint, #70137, appeared on November 26, and a draft SGLang PR, #53538, on November 27. Neither was merged as of November 29. Training your own takes 16 GPUs across two nodes according to the AngelSpec config: eight for inference and eight for training.
Community reaction
As of November 29, three days after release, we found no reproductions or substantive debate from developers on Hacker News, Reddit or X. What we found were articles restating Tencent's announcement and model card figures. The early reaction is on the vLLM PR above. Its author, chaunceyjiang, wrote that on 8x H20 the drafter gives 1.76x output throughput at concurrency 1 and 1.43x at concurrency 4 versus speculation disabled. That uses a different metric and workload from the model card, so the numbers don't compare directly, and the PR doesn't include the benchmark data. On the same PR, Digital-ZEL asked, "Is GB10 / SM121 support planned for DeepSeek V4.1 Flash DFly2?" and offered to run a matched DSpark vs. DFly2 comparison on a two-Spark setup once a compatible build exists. Apart from that PR figure, every performance number in this post is Tencent's own, and the DFlash and DSpark baselines were also trained by Tencent under the same conditions.
For teams serving DeepSeek-V4.1-Flash themselves
Nothing changes yet for teams calling DeepSeek-V4.1-Flash through an API. If an inference provider adds DFly2, output may get faster, but that's the provider's call.
For teams in Korea that self-host DeepSeek-V4.1-Flash for data-residency or cost reasons, the deciding factor looks like the input-to-output ratio of their workload. Services that answer short prompts with long outputs benefit most. Still, while the seven general benchmarks averaged 2.97x end to end, MT-Bench, the chat-style one, reached 2.15x, so figures near 3x look closer to long-answer work like math and code. Agentic services that take in long documents and tool output and reply briefly saw an average of 33% less time per request across Tencent's four agentic sets, and as little as 19% on one. The bigger payoff there looks more likely to be fitting more requests on the same hardware than faster individual responses. Either way, the sensible order seems to be waiting for actual vLLM support, then measuring against your own prompt-length distribution. As covered in an earlier post, DeepSeek has swapped weights under the same model name before, so it's also worth confirming the drafter was trained on the same checkpoint you're serving.
Limitations
| Item | Detail |
|---|---|
| Who measured | All figures are Tencent's; we found no third-party reproduction |
| Hardware | Measured on NVIDIA H20. No speedups published for H100, H200, B200 or other GPUs |
| Conditions | The speed tables use greedy decoding and one concurrent request. In the model card's tables, acceptance length at temperature 1 is shorter than at temperature 0 |
| Training length | The drafter was trained at 32K. The 64K and 128K results measure generalization beyond that length |
| No measurement of our own | Kortress did not run this drafter. Our calculation only converts the published speedups into time saved |
| Language | None of the evaluation sets named in the model card is Korean-specific, so acceptance on Korean output is unknown |
Sources
- Tencent AngelSpec GitHub README: https://github.com/Tencent/AngelSpec
- DeepSeek-V4.1-Flash DFly2 drafter model card: https://huggingface.co/AngelSlim/DS-V4.1-Flash-DFly2-B6
- DFly2 technical report (arXiv 2611.34776): https://arxiv.org/abs/2611.34776
- Hy4 README: https://github.com/Tencent-Hunyuan/Hy4
- AngelSpec DeepSeek-V4.1-Flash DFly2 training config: https://github.com/Tencent/AngelSpec/blob/main/configs/vllm_dsv41_flash_dfly2.yaml
