Tencent released DFly2 on 26 November 2026, an open source tool that aims to make large language models answer faster when they work with long texts. The code sits in Tencent's AngelSpec repository, and the method is described in a paper on arXiv by researchers from Tencent's Hunyuan AI Infra team. The tool targets a specific kind of model, one that uses sparse attention, and it was tested on DeepSeek-V4.1-Flash, GLM-5.3-Flash and Tencent's own Hy4 flash.

Speculative decoding is a way to speed up text generation without changing what the model writes. A small drafter model guesses several tokens ahead, and the large target model then checks those guesses in one pass. Guesses that pass stay in the answer, and guesses that fail are replaced. When the drafter guesses well, the model produces more tokens per step and the user waits less.

Most drafters keep a cache of their own and run a scoring pass to pick which parts of the context to look at. DFly2 takes a different route. Each of its draft layers is paired with one sparse attention layer of the target model, and it reads the key-value cache that the target layer already stores. It also attends only to the positions the target's own indexer selected. The paper says this removes the need for a scoring pass and for a separate draft cache.

The idea rests on a measurement the authors made on DeepSeek-V4.1-Flash. When the indexer makes its selection one step early, it still covers close to 90 percent of the positions that each later token in the block ends up picking. A sliding window of the same size recovers less than 20 percent. That gap is the reason the authors argue that sharing the target's sparsity works better than guessing from a window of recent tokens.

The headline numbers come from Tencent's own tests. Serving DeepSeek-V4.1-Flash at high concurrency and matched per-user decode speed, DFly2 delivered 62 percent more throughput on a long-context set at 64,000 tokens and 81 percent more on an agentic set at the same length, compared with DSpark, the stronger of two baselines. On short text the gain was 28 percent. The baselines, DFlash and DSpark, were retrained on the same recipe as DFly2 for the comparison.

DFly2 also accepted more tokens per step than the stronger baseline in the paper's tests. The margin grew from 3.9 percent to 10.5 percent on general workloads to between 10.0 percent and 31.5 percent on long-context and agentic workloads of up to 128,000 tokens. End to end speedups at low concurrency were 2.97 times on DeepSeek-V4.1-Flash, 2.36 times on GLM-5.3-Flash and 3.19 times on Hy4 flash. Readers should treat every figure here as a claim from Tencent, since no outside group has published a matching test yet.

Where the code lives and who can use it

DFly2 ships inside the tencent/Hy4-flash repository, a mixture of experts model with about 220 billion total parameters and about 12 billion active parameters, with a context window of one million tokens. The vLLM serving engine supports it through a dfly speculative method, and the paper says it can also run with SGLang. The AngelSpec repository carries the weights, the training code and the technical report, and it includes drafters for each of the three models tested.

For teams that run sparse models in production, the practical question is whether the gains hold outside Tencent's test setup. The paper's tests used specific models, specific benchmarks and a specific serving setup. Gains on other models, other workloads or other hardware may differ. A team that wants to adopt DFly2 can start from the released code and run its own benchmark on its own traffic before it changes a live service.

What happens next is a test by the wider community. Open source releases of this kind usually draw independent benchmarks within weeks, and those results will show whether the 81 percent figure survives contact with other setups. For now, the release gives developers a concrete tool to try, and it shows how much work is going into making sparse models cheaper to serve.