A Drafter With No Cache of Its Own: Tencent Open-Sources DFly2, 3.2x Faster Decoding at 128K
TL;DR
On November 26, 2026, Tencent Hunyuan released DFly2 in full: weights, training code and a technical report, all under its AngelSpec repo. The commit that landed the release is timestamped 06:27 UTC on November 26.
DFly2 is not a language model. It is a speculative-decoding drafter, the small model that guesses the next few tokens so a large model can verify them in one pass instead of generating them one at a time. The point of a drafter is that it never changes the target model's output.
What is new here is one sentence long: the drafter stops keeping a KV cache of its own and reads the target model's cache and top-k position selection instead.
Three numbers that decide whether this matters to you:
- On Hy4 flash, decoding at 128K context runs 3.22x faster, and end-to-end 1.68x faster
- Because the drafter stores no KV of its own, the same memory holds 1.19x more concurrent requests at 32K
- Weights are Apache-2.0 and cover three target models: Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash
Why drafters used to be a bad deal on long context
Speculative decoding is not new. Eagle3, MTP and DFlash have been in production inference stacks for a year or two. All of them carry a cost that rarely makes the slide deck: the drafter needs its own KV cache.
Think of the KV cache as the notes a model keeps on everything it has read. Longer context means thicker notes. A three-layer drafter that builds its own cache adds 3.4 KiB per token on top of the target's 17.2 KiB, which pushes total KV to 1.20x. Memory is fixed, so the extra has to come out of concurrency.
There is a second problem. Every drafted token runs attention over that cache: 32K of context at 32K, 128K at 128K. Quadruple the context and drafting cost quadruples with it. The time you meant to save goes straight back out the door. Hard to call that a win, isn't it?
DFly2's answer is blunt: you already computed this, so I'll use yours.
| Mechanism | What it does | What it removes |
|---|---|---|
| KV sharing | Each draft layer is paired with one sparse-attention layer of the target and reads the KV that layer already cached | The drafter's own KV cache, entirely |
| Index sharing | Reuses the top-k positions the target's indexer already picked | The drafter's own indexer and its per-step scan |
| Fixed read size | Each draft token reads at most about 2,048 positions regardless of context | The linear cost of growing context |
In plain terms: a sparse-attention model already has to pick the couple of thousand positions that matter for the current query, and it already pays for that pick. DFly2 just picks the result up off the floor, which is why drafting cost stays flat.
The paper has a number that makes this concrete. On DS-V4.1-Flash, a selection made one step early still covers close to nine-tenths of what the next token actually selects. The map is one beat stale and still good enough.
The official numbers, and what they are measured against
Hy4 flash is the main stage. Below are the mean accepted length figures from the README, meaning how many draft tokens survive verification per block:
| Target | Drafter | Long-context mean | Agentic mean |
|---|---|---|---|
| Hy4 flash | DFlash (full cache of its own) | 1.63 / 1.53 | 2.00 / 1.88 |
| Hy4 flash | DSpark | 3.20 / 3.01 | 3.16 / 2.95 |
| Hy4 flash | DFly2 | 3.63 / 3.46 | 4.11 / 3.88 |
Cells are temperature 0 / 0.9. Higher is better.
The matching speedups on Hy4 flash: 3.22x on LSWE 128K, 3.46x on SWE 64K, 3.41x on the agentic average. Switch to the end-to-end column, which is what your bill actually sees, and those become 1.68x, 1.96x and 1.67x.
That gap is the whole story of reading inference benchmarks. Decode speedup counts generation only. End-to-end includes prefill, scheduling and network. Report the second number to anyone planning capacity.
The other figures Tencent puts in the release, repeated across media coverage:
- Across 19 public evaluation sets, long-text average is about 12% above DSpark and agentic average about 30% above
- Peak single-item speedup 4.2x (one outlet quotes 4.55x, a different single item)
- Acceptance length on agentic tasks ahead by 10.4%, and roughly 30% faster than same-recipe DSpark
- At 64K context, DeepSeek-V4.1-Flash serving throughput up to 81% higher, per Tencent's own X post. That is throughput, not single-request latency
All of it is vendor-run. When you see "4.2x," add the silent clause: one test item, decode stage only.
One result in the README is more persuasive than the peak. DFly2 is trained on samples capped at 32,768 tokens, but agentic prompts usually run longer. Its accepted length barely moves: 4.11 / 3.88 on agentic sets versus 3.96 / 3.95 on general ones. DSpark slides from 3.81 / 3.73 to 3.16 / 2.95. DFlash, carrying a full cache of its own, falls as low as 1.08 tokens per step once prompts pass 32K, which is essentially no acceleration at all.
It also ships drafters for rival models, which is the stranger part
The release is not only accessories for Tencent's own models. Three drafters went up on Hugging Face under an org called AngelSlim on November 26:
| Repository | Target model | License |
|---|---|---|
| AngelSlim/Hy4-flash-DFly2-B6 | Tencent Hy4 flash | Apache-2.0 |
| AngelSlim/DS-V4.1-Flash-DFly2-B6 | DeepSeek-V4.1-Flash | Apache-2.0 |
| AngelSlim/GLM-5.3-Flash-DFly2-B6 | Zhipu GLM-5.3-Flash | Apache-2.0 |
DeepSeek and Zhipu are Tencent's direct domestic competitors. Training drafters for a competitor's model and releasing the weights says the play is not selling Hy4. It is making AngelSpec the training stack under everyone's inference layer: bring whatever target model you like, train the drafter with our tooling.
The practical read: if you already serve DeepSeek-V4.1-Flash or GLM-5.3-Flash, you do not have to switch models. You just gained an optional part.
How to use it
DFly2 is not a pip install away from working. It assumes you already run your own inference. The official path:
- Check the environment. Linux, CUDA 12.4 or newer, Python 3.11 or newer, NVIDIA GPUs. The README quickstart wants eight GPUs, four for inference and four for training, and multi-node setups need RDMA-capable interconnect for Mooncake hidden-state transfer.
- Install the framework and a serving backend. With vLLM:
pip install -e ".[vllm]"
pip install mooncake-transfer-engine- Pull the drafter weights and wire them into your server. Released drafters live in the AngelSlim collection on Hugging Face, and config samples sit in the repo's
configs/directory, for examplevllm_dsv41_flash_dfly2.yamlfor DeepSeek-V4.1-Flash at 32k andvllm_glm53_flash_dfly2.yaml. Block size is 6: one anchor token plus five draft tokens.
Training your own follows the same shape. Each target model has an example directory, so ./examples/hy-v4-flash-dfly2/run.sh gets you started. One trap: PyPI's default torch and vllm wheels target CUDA 13, so a CUDA 12 host needs matching wheels installed first or nothing loads.
One limit to know before you plan anything: the Hy4-flash drafter card lists its serving backend as "vLLM speculative decoding (support in progress)." The serving integration is still moving. This is not yet a download-and-point-at-production artifact.
Who it's for
- Teams running their own inference, especially anyone already serving Hy4 flash or DeepSeek-V4.1-Flash
- Long-context and agentic workloads: codebase Q&A, long document review, multi-turn tool use. That is exactly where DFly2's lead opens up
- Anyone short on memory who needs concurrency rather than single-stream speed: the 1.19x from dropping the drafter cache is real
- Shops running prefill-decode disaggregation: DFly2 never joins prefill and passes only one last-layer hidden state across, so that path barely changes
Not a good fit
- API-only users. This does not touch you unless your inference provider says it upgraded. Nothing about your experience changes otherwise
- Single-consumer-GPU setups. Eight GPUs to start; a single 4090 will not run this combination
- Dense-attention targets such as Llama-family or stock Qwen builds. DFly2 requires a natively sparse target with a top-k selection to borrow. AngelSpec also trains DFly, DFlash and Eagle3, but that is a different story
- Anyone shipping to production this week. The backend support is still in progress; wait for vLLM or SGLang paths to be marked stable
- Anyone hoping for a smarter model. It does not change a single output token. Wrong answers stay wrong
Pitfalls
Pitfall one: treating 4.2x as an average. That is the peak across 19 evaluation sets, and decode only. In the same README, Hy4 flash's long-context end-to-end speedup is 2.12x and agentic is 1.67x. Use end-to-end for capacity planning.
Pitfall two: forgetting the 32K training length. The drafter was trained on samples up to 32,768 tokens and the config samples say 32k. It holds up past that because it borrows the target's selection, not because it saw longer sequences. Load-test at 128K instead of extrapolating from 32K acceptance.
Pitfall three: expecting a model release. DFly2 and Hy4 flash live in separate repositories, and the drafter shares the target's embedding and LM head rather than storing them. Miss a file and it will not start.
Pitfall four: reading speedup and ignoring concurrency. Speculative decoding pays best at low concurrency. Once a GPU is saturated with batch, the ratio shrinks. The official table states its condition plainly: concurrency of one, greedy decoding. If you serve dozens of streams, why would you schedule around a single-stream number?
Cost
- Weights and code: Apache-2.0, commercial use allowed, no license fee
- Training your own drafter: eight GPUs to start (four training, four inference). The DFly-SFT corpus is 989,861 conversations and 7.42B tokens, and you still have to evaluate the result yourself
- Using a released drafter: the cost is a download in the low billions of parameters plus the inference cluster you already run. Marginal cost is close to zero
- Time: hours to wire up once the environment is right; days to train and evaluate a drafter of your own
- How the savings work: you are buying back GPU hours. At Hy4 flash's 1.67x end-to-end agentic figure, the same traffic takes roughly 40% less machine time. That is a ceiling, and your concurrency pattern decides how much of it you see
Next step
- Confirm whether your production target is Hy4 flash, DeepSeek-V4.1-Flash or GLM-5.3-Flash. If it is none of them, file this away and move on
- If it is one of them, pull the matching drafter from the AngelSlim collection and read the "Serving backend" line on its model card before anything else
- Record TTFT, tokens per second and concurrency on one of your own long-context requests, not a benchmark, then decide whether to schedule the integration
---
Primary sources are Tencent Hunyuan's AngelSpec repository, the DFly2 technical report on arXiv and the Hugging Face weight pages. All speedup and acceptance figures are vendor-reported. Throughput and peak numbers repeated in media coverage are compiled from multiple media reports.
Sources
- https://github.com/Tencent/AngelSpec
- https://arxiv.org/abs/2611.34776
- https://huggingface.co/AngelSlim/Hy4-flash-DFly2-B6
- https://huggingface.co/AngelSlim/DS-V4.1-Flash-DFly2-B6
- https://huggingface.co/AngelSlim/GLM-5.3-Flash-DFly2-B6
- https://x.com/TencentAI_News/status/2125968859450802415
- https://techflier.com/2026/11/28/tencent-open-sources-dfly2-to-speed-up-long-context-inference/