On November 26, Tencent's Hunyuan team open-sourced DFly2, a small "draft" model that makes large open-weight models generate text faster without changing what they say (MarkTechPost). The technique behind it is called speculative decoding, and it has quietly become one of the cheapest speed upgrades in LLM serving.
If you call OpenAI or Anthropic through an API, the provider handles this for you. But if you run your own models for privacy, cost or control, DFly2 is a good reason to look at your serving setup again.
TL;DR#
- Speculative decoding lets a small draft model guess several tokens ahead while the big model checks them all in one pass. The output stays the same and generation gets faster.
- DFly2 reads the main model's existing sparse KV cache instead of keeping its own, so the speedup holds up on long prompts. Tencent reports up to 4.2x faster decoding on its own benchmarks.
- It only helps if you self-host a supported model. Measure the acceptance rate on your real traffic before you plan around any savings.
What Tencent released, and how speculative decoding works#
A large language model writes one token at a time. Every token needs a full pass through the model, and most of that time goes into moving weights and cached state through GPU memory rather than doing math.
Speculative decoding puts that idle capacity to work. A small draft model proposes the next few tokens. The big target model then checks all of them in a single forward pass, keeps the ones it agrees with and fixes the first one it doesn't (AlphaSignal). Good guesses give you several tokens for the price of one big-model step. Bad guesses cost a little wasted draft work.
The idea comes from 2022 research at Google, and by 2024 it was a normal part of production serving, with built-in support in vLLM, SGLang and TensorRT-LLM (Wikipedia).
DFly2 is Tencent's newest drafter: a 0.85B-parameter model under the Apache-2.0 license, with weights for Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash (AI Daily Post, AGI Hunt).
The loop in plain terms#
prompt -> draft model proposes 6 tokens
-> target model checks all 6 in one pass
-> keeps 4, corrects token 5, drops token 6
-> repeat from the new position
Why DFly2 matters for long-context and agent workloads#
Classic drafters carry a hidden cost. They keep their own KV cache, which is the memory a model uses to hold the conversation so far. On long prompts that memory grows, and the drafter's share competes with the main model for GPU space. Fewer requests fit at once, and part of the speed gain leaks away.
DFly2 avoids that. Each draft layer reads the target model's existing sparse-attention cache at positions the target has already selected, so the drafter keeps no cache of its own (Pandaily). According to AGI Hunt, a standalone three-layer drafter would add 3.4 KiB per token on top of the target's 4.4 KiB, while DFly2 fits 1.73x as many requests into the same cache pool at 32K context (AGI Hunt).
That matters because business workloads keep getting longer: agents carry tool results through every step and document pipelines feed in whole contracts. Tencent reports up to 81% more throughput on DeepSeek-V4.1-Flash at 64K context on a software-engineering workload, and end-to-end speedups of roughly 2.4x to 3.2x across the three supported models (DigestAI).
These are company-run comparisons (Pandaily). Treat them as a ceiling, not a forecast.
Trade-offs: when speculative decoding helps and when it hurts#
One number decides everything here: the acceptance rate, meaning the share of draft tokens the big model keeps. A DigitalOcean guide to vLLM puts the rule of thumb plainly. Below about 0.5 you're adding latency, and between 0.5 and 0.65 you're close to break-even, so check tail latency under real load (DigitalOcean).
Acceptance depends on your traffic. Tencent's own AngelSpec research treats workload differences as important enough to train separate drafters for chat and for code and math (arXiv). Sampling temperature matters too, since more randomness makes the draft's guesses miss more often.
| Situation | What to expect |
|---|---|
| Low temperature, structured output (extraction, JSON, code) | Good fit, usually high acceptance |
| Long agent sessions on a supported sparse model | The case DFly2 was built for |
| Long prompts with very short answers | Small gain, because reading the prompt dominates |
| High-temperature creative writing | Lower acceptance, test before enabling |
| Hosted APIs (OpenAI, Anthropic, Google) | Nothing to do, the provider controls serving |
Hardware is the other limit. The DFly2 quick start expects one node with eight GPUs, served through vLLM or SGLang (DigestAI), and vLLM support for the DeepSeek drafter was still in progress at release (AGI Hunt).
What this means for businesses running AI in production#
Most companies we talk to don't run their own models, and for them the direct impact is zero. The indirect impact is real, though. Open-weight models keep getting cheaper to serve, which widens the gap between paying an API per token and running a model you control. If you process lots of private documents or run agents around the clock, that comparison is worth redoing every few months.
For teams that do self-host, DFly2 is a free upgrade with a specific shape. It doesn't change the model's answers, so you don't need a full quality re-evaluation the way you would after swapping models. What changes is latency, GPU count per unit of traffic and how many long sessions you can keep open at once.
Speed also compounds in agent loops: a ten-step agent that saves a second per step finishes every run ten seconds sooner.
The catch is operational. Speculative decoding adds a moving part, and its benefit can fade quietly if your traffic shifts toward work the drafter guesses poorly. That calls for monitoring, not a one-time switch.
How to evaluate speculative decoding on your stack#
- Confirm you're in scope. DFly2 covers Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash. For other models, check whether your serving engine already ships a supported drafter.
- Capture real traffic. Pull a few hundred actual prompts with your production temperature and output limits.
- Record a baseline. Measure tokens per second per user, P50 and P99 latency, and concurrent requests per GPU node.
- Enable the drafter in staging. Log acceptance rate and mean acceptance length. vLLM can report both per request (NVIDIA AIPerf docs).
- Apply a clear threshold. Under 0.5, turn it off. Between 0.5 and 0.65, load-test P99 first. Above that, roll out gradually.
- Spot-check outputs. At temperature zero, answers should match the baseline. Differences usually point to a configuration mistake.
- Alert on drift. Watch acceptance in production and get notified when it drops, because a falling rate means you're paying for drafts you throw away.
How MagicMakers Lab approaches this#
When we build AI into a client's operations, model serving is one line in a bigger cost-per-outcome calculation. We start with the workflow, pick the cheapest model that meets the quality bar, and only then tune inference, because a faster model on the wrong step saves nothing. On Framico, the goal was 200+ orders shipped a day with zero manual steps, and every part of the pipeline had to earn its cost. If you self-host, our AI integration and automation work covers this kind of benchmarking.
Key takeaways#
- Speculative decoding speeds up generation by letting a small model draft and a large model verify, with no change to the final output.
- DFly2's trick is sharing the main model's sparse KV cache, which keeps the speedup intact on long prompts and agent sessions.
- Tencent's numbers (up to 4.2x) are self-reported, so benchmark on your own traffic.
- Acceptance rate is the deciding metric. Under about 0.5, it costs more than it saves.
- API users don't need to act. Self-hosters on supported models should test it this quarter.
FAQ#
What is speculative decoding?#
Speculative decoding is a way to speed up large language models. A small draft model guesses several upcoming tokens, and the large model checks them all in one pass, keeping the correct guesses and fixing the first wrong one. Because the large model still approves every token, you get faster generation without giving up the quality of the large model.
Does speculative decoding change the model's output?#
Not when it's set up correctly. The target model still decides every token, and the draft only proposes candidates. Tencent describes DFly2 as leaving the target's weights and outputs unchanged. With greedy decoding, answers should match the baseline; with sampling, the output distribution stays the same. Unexpected differences usually mean a configuration problem.
How much faster is speculative decoding?#
It depends on how often the big model accepts the draft's guesses. Tencent's earlier AngelSpec work reported about 2x to 2.4x over normal decoding, and Tencent reports up to 4.2x for DFly2 on its own agentic benchmarks. Your number will vary with model, prompts and temperature, so benchmark real traffic before planning capacity around it.
Can I use speculative decoding with the OpenAI or Claude API?#
Not directly. Hosted providers decide how their models are served, and you can't attach your own draft model to their endpoints. Speculative decoding is a lever for teams running open-weight models on their own or rented GPUs through engines like vLLM or SGLang. With an API, your levers are model choice, prompt length and caching.
If you're weighing self-hosting against API costs, or you already run models and suspect your GPUs are doing less than they could, we'll look at your setup and tell you honestly whether it's worth changing. Book a free audit.
Sources#
- Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target's Sparse KV Cache (MarkTechPost)
- Tencent Hunyuan Open-Sources DFly2, a Speculative-Decoding Draft Model (Pandaily)
- Tencent Open-Sources DFly2, Hitting 4.2x Speed on Long-Context AI (AlphaSignal)
- Tencent Hunyuan open-sources DFly2 drafter for DeepSeek-V4.1-Flash (AGI Hunt)
- Tencent open-sources DFly2 speculative decoder for sparse LLMs (DigestAI)
- Tencent's DFly2 Speeds Up Sparse LLM Decoding (AI Daily Post)
- AngelSpec: Real-World High Performance Inference with Speculative Decoding (arXiv)
- Speculative Decoding on vLLM: A Configuration and Decision Framework (DigitalOcean)
- Per-Request Speculative-Decoding Acceptance (NVIDIA AIPerf docs)
- Speculative decoding (Wikipedia)