Tencent open-sourced DFly2 on November 26, 2026: block-parallel drafters that make three large sparse-attention models decode faster, with weights, training code and a technical report in the AngelSpec repository. The README reports up to 4.55× faster decoding on Hy4 flash, but the end-to-end gain on the same hardware setup tops out near 2.51×. That gap is the most useful thing to understand before you plan any capacity around the headline number.
A widely shared summary of the release said DFly2 speeds up generation "up to 4.2×". We read the README tables and that exact figure does not appear there. The nearest numbers are the 4.55× decoding speedup and a mean accepted length of 4.14 tokens for DeepSeek-V4.1-Flash on a 64K code benchmark. The sections below explain which number means what, and how this fits Tencent's earlier drafters.
TL;DR: what shipped and what the numbers mean
| Question | Answer |
|---|---|
| What is DFly2? | A block-parallel speculative-decoding drafter that shares the target's sparse KV cache |
| Who released it? | Tencent, inside the AngelSpec framework |
| Release date | November 26, 2026 (v0.2.0 with DFly2 training landed November 18) |
| Target models | Hy4, Hy4 flash, DeepSeek-V4.1-Flash, GLM-5.3-Flash |
| Released weights | AngelSlim/Hy4-flash-DFly2-B6, AngelSlim/DS-V4.1-Flash-DFly2-B6, AngelSlim/GLM-5.3-Flash-DFly2-B6 |
| Best decoding speedup | 4.55× (Hy4 flash, ALB, greedy, concurrency one) |
| Best end-to-end speedup | 2.51× (Hy4 flash, CodeSpan 64K) |
| Best mean accepted length | 5.49 tokens (GLM-5.3-Flash, ALB, temperature 0) |
| License | Set by the LICENSE file in the repo (read it before use) |
| Who measured it? | The authors; no independent test yet |
What is speculative decoding, and where does DFly2 fit?
Speculative decoding is a way to generate text faster without changing the answer. A small, cheap drafter guesses several next tokens. The large target model then checks all those guesses in one forward pass and keeps the ones it agrees with. When the drafter guesses well, you get several tokens for the price of one big pass.
The number that matters most is the mean accepted length, written τ in the README: how many drafted tokens the target accepts per verification step. A higher τ means more tokens per big pass. The second number is the real wall-clock gain, which also pays for the drafter itself, memory traffic and scheduling.
Speculative decoding: a fast draft step runs ahead and a slower check step confirms it, the idea behind Tencent DFly2
Drafters come in two broad families. Autoregressive drafters such as multi-token prediction (MTP) heads guess one token after another. Block-parallel drafters, the DFlash family, guess a whole block at once, which is cheaper per token but harder to keep consistent. AngelSpec supports both. Its README lists seven architectures: DFly2, DFly, DFlash, DFlare, Eagle3, DSpark and MTP.
We covered a sibling idea from the same group in our Tencent DSpine drafter explainer and the later Qwen3.8-27B DSpine checkpoint. DFly2 is a different branch of the same research line: it is built for models that use sparse attention.
How does DFly2 work?
The README describes DFly2 as a block-parallel drafter for sparse-attention targets. Each draft layer reuses two things from the matching attention layer of the target model:
- KV Share: the drafter reads the target's top-k sparse KV cache instead of keeping its own.
- Index Share: the drafter reuses the target's indexer, which decides which keys each token should attend to.
The README lists three effects.
- Constant drafting cost. Each draft token attends to about 2K keys, whatever the context length. A drafter that has to read a 128K context in full would slow down as the prompt grows. This one does not.
- No extra KV memory. The drafter keeps no separate KV cache, so it does not compete with the target for GPU memory.
- Ready for prefill-decode disaggregation. The drafter takes no part in prefill. Moving a request from a prefill node to a decode node therefore adds only one last-layer hidden state.
These properties explain why Tencent aims DFly2 at long-context and agent work. Long prompts are where drafters normally lose their edge, and where the KV cache already eats most of the memory. If you want background on how that memory pressure shapes serving, see our guide to what tokens per second actually measures.
The paper behind the framework, AngelSpec on arXiv (2607.25852), was submitted on July 28, 2026. It introduces the earlier DFly drafter, which pairs a hybrid target-conditioning backbone with a predecessor-conditioned autoregressive head. The paper reports a 1.98–2.40× speedup over autoregressive decoding on Hy3-A21B and 10.5–11.8% higher throughput than DFlash. DFly2 is the follow-up in the repository, with its own technical report.
What do the benchmark tables actually show?
The README gives DFly2 results on nine test sets. Three are long-context sets (LongSpec 32K, CodeSpan 64K, LSWE 128K) and four are agentic sets (ALB, MemAgent, BFCL-v3 and SWE 64K). The columns Long and Agentic are averages over those groups.
Mean accepted length (temperature 0 / temperature 1)
| Target | CodeSpan 64K | ALB | Agentic average |
|---|---|---|---|
| DeepSeek-V4.1-Flash | 4.14 / 3.59 | 5.10 / 4.72 | 4.06 / 3.75 |
| GLM-5.3-Flash | 4.40 / 3.63 | 5.49 / 4.77 | 4.03 / 3.68 |
| Hy4 flash | 4.12 / 4.03 | 5.41 / 5.22 | 4.11 / 3.88 |
(For Hy4 flash the second figure is at temperature 0.9.) Accepted length drops when sampling is switched on, which is expected: random sampling makes the target disagree with the drafter more often. Hy4 flash loses the least, falling from 4.12 to 4.03 on CodeSpan.
Speedup over autoregressive decoding (decoding / end to end)
| Target | CodeSpan 64K | ALB | Agentic average |
|---|---|---|---|
| DeepSeek-V4.1-Flash | 3.23× / 2.37× | 3.82× / 1.25× | 3.10× / 1.50× |
| GLM-5.3-Flash | 2.82× / 1.79× | 3.57× / 1.10× | 2.61× / 1.22× |
| Hy4 flash | 3.48× / 2.51× | 4.55× / 1.35× | 3.41× / 1.67× |
All speedups are greedy decoding at concurrency one. Read the two columns separately. The first, "decoding", measures only the generation phase. The second, "end to end", includes everything else the request pays for, such as prefill of a long prompt. On ALB the decoding speedup is 4.55× but the end-to-end speedup is 1.35×, because a large share of that request is not decoding at all.
One cell is worth flagging. For GLM-5.3-Flash on MemAgent, the end-to-end figure is 0.98×, slightly below plain decoding. The README reports it without comment. It shows that a drafter helps most when decoding dominates the request.
Which number should you quote?
If you are asked what DFly2 delivers, the honest answer is: roughly 2× to 3.5× faster decoding on most sets, 4.55× at the best, and 1.1× to 2.5× end to end, at batch size one, on the authors' hardware. At higher concurrency the gains of any drafter usually shrink, because the GPU is already busy. The README tables do not cover that case for DFly2, so do not extrapolate.
The 4.2× claim: what is verified
| Claim | What we found |
|---|---|
| "Up to 4.2× faster generation" | Not in the README. Nearest values: 4.55× decoding, 4.14 mean accepted length |
| "Open-sourced" | Yes: weights, training code and a technical report, per the README release log |
| "Works on DeepSeek and GLM" | Yes for DeepSeek-V4.1-Flash and GLM-5.3-Flash, with released B6 checkpoints |
| "Independent benchmark" | None found. All figures are Tencent's own |
| "Serving recipe" | The README documents training only; no vLLM or SGLang serving command for DFly2 |
The likely source of the confusion is rounding or mixing two different metrics. It is a good reminder to check which column a headline number comes from. The same habit helps with other release-day claims, as in our claimed-versus-verified checks of other inference speedups.
How do I try DFly2?
The README's quick start is built around training:
git clone https://github.com/Tencent/AngelSpec
cd AngelSpec
pip install -e ".[vllm]"
pip install mooncake-transfer-engine
The single-node example, ./examples/qwen3-8b-dfly/run.sh, uses 8 GPUs, 4 for inference and 4 for training, and is for the older DFly drafter on Qwen3-8B. DFly2 training uses the 32K vLLM configs in the repo (configs/vllm_dsv41_flash_dfly2.yaml and configs/vllm_glm53_flash_dfly2.yaml). On CUDA 12.x hosts you must pick torch and vLLM wheels that match your CUDA version, because the defaults target CUDA 13.
For inference, download one of the three AngelSlim checkpoints from Hugging Face and follow its model card. The README lists no DFly2 serving command, so check the checkpoint cards for the exact flags and the supported engine version before you plan a deployment.
Two practical limits apply:
- The drafter only works with its own target. Each checkpoint is trained against one sparse-attention model. You cannot attach the GLM-5.3-Flash drafter to another model.
- The license is set by a repo file. The README names no standard open-source license. Read the LICENSE file before you use the weights in a product.
Why does this matter for people who self-host?
Most agent workloads are long: a coding agent carries a large context, calls tools and writes a modest amount of text per turn. Two properties of DFly2 line up with that. The drafting cost does not grow with context, and the drafter takes no memory from the KV cache that long prompts already fill.
This is also part of a clear pattern. Over the past weeks we have covered open drafters and speculation engines from several groups, including Meta's ForeSpark and a vision-language drafter, MMFlash. The common thread is that inference speed, not raw model quality, is where open-source groups now compete. Tencent's own large models are on the same path: see our coverage of Hy4 Flash and its pricing, where the README says a dense drafter ships built into the model.
Cost follows from speed only partly. A 1.5× end-to-end gain on a long agentic request does not cut your bill by a third, because prefill and memory still cost GPU time. It does raise the number of tasks a fixed fleet can finish in an hour. If you run GLM-5.3 on your own hardware, the GLM-5.3-Flash checkpoint is the one to test first.
What should builders do now?
- Pick one workload. Take your real agent traces, not a benchmark, and replay them with and without the drafter.
- Measure end to end. Record time to complete a task, not tokens per second during decoding. The README shows how far apart those two can be.
- Test at your concurrency. Run at the batch size you serve in production. The published tables are at concurrency one.
- Check output parity. Speculative decoding should preserve the target's distribution. Verify on a sample of your own prompts, with sampling on, before you switch traffic.
- Read the license. The repo LICENSE file decides whether you can ship it.
Teams that want to build this kind of inference-tuning skill in-house can look at our AI builder workshops, which cover running and evaluating models for production work.
Limits and open questions
- No third-party benchmark yet. Every number here is from Tencent's README and paper.
- No serving recipe for DFly2 in the README. The documentation covers training.
- Concurrency above one is not reported for DFly2. Real serving fleets run many requests at once.
- Sparse attention only. DFly2 depends on the target's sparse KV cache and indexer. Dense-attention models need DFly, DFlash or another drafter from the same repository.
- The technical report is separate. The README links it, and this post draws on the README tables, so treat finer claims in the report as unverified until you read it.
Related reading
- Tencent DSpine drafter explained
- Qwen3.8-27B DSpine-b16 open drafter
- Meta ForeSpark work-conserving speculation
- MMFlash vision-language speculative decoding
- Tencent Hy4 Flash launch and pricing
- What tokens per second measures
- Official: AngelSpec on GitHub and the AngelSpec paper
Figures and repository details are accurate as of November 26, 2026. Check the AngelSpec README for newer releases.
