---
title: "Tencent's DFly2 speeds up long-context models without extra memory. Test it first"
dek: "Tencent's open-source drafter borrows the big model's sparse cache to speed up long prompts. The gains are self-reported, so measure them on your own workloads."
author: "Ideabro Machine"
author_title: "Synthetic Correspondent"
category: "Models & Research"
format: brief
tags: ["inference", "tencent", "open models", "speculative decoding", "long context"]
published: 2026-11-27T10:09:06.372Z
updated: 2026-11-27T10:09:09.224Z
reading_minutes: 4
url: "https://www.ideabro.ai/article/tencent-s-dfly2-speeds-up-long-context-models-without-extra-memory-test-it-first"
ai_disclosure: generated
ai_disclosure_label: "AI-generated"
ai_notes: "Researched and written by Ideabro's AI newsroom from the sources listed at the end, and published automatically. Spot an error? Use the contact page and a human editor will correct it."
members_only: false
summary:
  - "Tencent open-sourced DFly2, a speculative-decoding drafter for sparse-attention models such as Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash."
  - "It reuses the target model's sparse KV cache instead of keeping its own, so drafting adds no cache memory at long contexts."
  - "Tencent claims up to 81% more throughput at 64K context and up to 4.2x faster single requests; these figures are self-reported and need testing."
publisher: "Ideabro"
---

# Tencent's DFly2 speeds up long-context models without extra memory. Test it first

*Tencent's open-source drafter borrows the big model's sparse cache to speed up long prompts. The gains are self-reported, so measure them on your own workloads.*

Tencent's Hunyuan team has open-sourced DFly2, a small draft model built to speed up a newer class of language models: the ones that use sparse attention to handle long contexts cheaply. It works with Tencent's own Hy4 flash, and Tencent says it also accelerates DeepSeek-V4.1-Flash and GLM-5.3-Flash. The headline claim is up to 81% more serving throughput for DeepSeek-V4.1-Flash at a 64K-token context, and up to 4.2 times faster responses on Hy4 flash agentic tasks. Those are Tencent's own numbers. They are still worth your attention, because the trick behind them targets the part of inference that hurts most once your prompts get long.

## What DFly2 actually does

DFly2 is a drafter for speculative decoding. The idea is old by AI standards. A small, fast model guesses the next few tokens, and the big model checks the whole guess in one pass instead of producing tokens one at a time. When the guesses are good, you get several tokens for the price of roughly one step of the big model. When they are wrong, you throw them away and lose a little time.

The catch has always been memory. A drafter normally keeps its own key-value cache, the running record of the conversation that attention needs. At short contexts that is cheap. At 64K tokens and beyond, a second cache eats GPU memory you would rather spend on serving more users at once.

DFly2's answer is to not keep a cache at all. Each draft layer reads the target model's existing sparse KV cache, and the positions the target's indexer has already picked as important. The drafter rides on work the big model has done anyway. That is why Tencent pitches it specifically at natively sparse models: the design depends on there being a sparse cache and an indexer to borrow from.

On its Hugging Face model card, Tencent reports that DFly2 gets about four tokens accepted per step on average, using five-token drafts, across its general benchmarks. It also says acceptance holds up on agentic tasks, where tool calls and structured output often trip drafters up.

## Why the numbers need a careful read

The two headline figures measure different things. The 81% throughput gain is for DeepSeek-V4.1-Flash under serving load at 64K context. The 4.2x figure is for Hy4 flash on agentic tasks, one request at a time. Single-request speedups usually shrink once a server is busy, because the GPU is already doing useful work in parallel. So the 4.2x is a best case for latency, not a promise for your throughput bill.

Reports also disagree on some details, including the drafter's exact size and how far support has landed in the main serving engines. The model card said vLLM support was still in progress, while some write-ups describe it as working in both vLLM and SGLang. Check the current release notes of whatever engine you run before planning around it.

None of this makes the release less interesting. It means you should treat the numbers as a reason to test, not as a result.

## What it means for founders and builders

If you serve long-context workloads on open models, the cost that matters is often memory per concurrent user, not raw compute. Agents make this worse. A coding or research agent can carry tens of thousands of tokens of history, tool output and files through every step. Anything that speeds up decoding without adding cache memory goes straight to how many sessions you can fit on a GPU.

There is also a strategic point. Sparse attention is spreading across open models from Chinese labs, and DFly2 is a sign that the tooling around those models is maturing. If your stack is built on dense models, the inference tricks you rely on may not transfer cleanly. If you have already moved to a sparse model, this is one more reason the move may pay off.

A practical way to approach it:

- Pick one real workload, ideally an agent run with long context, and record tokens per second and peak memory today.
- Run the same workload with DFly2 at the same batch size, and then at the larger batch size the saved memory allows.
- Track the acceptance rate on your own prompts. Drafters do well on predictable text and worse on unusual formats, so your mix matters more than a benchmark average.
- Check output equality. Speculative decoding should not change what the big model produces, but test it on your own outputs before you rely on that.

If you call a hosted API rather than running your own GPUs, you will not use DFly2 directly. You may still feel it in pricing, if providers serving these models adopt it and pass on the savings.

## What to watch next

Three things will decide whether DFly2 matters beyond Tencent's own stack. First, whether vLLM and SGLang ship stable, documented support, since most teams will not patch an engine themselves. Second, independent benchmarks under realistic load, especially at the 128K-plus contexts that agent builders increasingly use. Third, whether other labs adopt the same cache-sharing approach for their own sparse models, which would turn a single release into a pattern.

For now, DFly2 is a useful, free experiment for anyone serving long prompts on a sparse open model. Measure before you believe it.

## Sources

- [MarkTechPost: Tencent open-sources DFly2, speculative decoding that reuses the target's sparse KV cache](https://www.marktechpost.com/2026/11/26/tencent-dfly2-speculative-decoding-sparse-models/)
- [Pandaily: Tencent Hunyuan open-sources DFly2, a speculative-decoding draft model](https://pandaily.com/tencent-hunyuan-dfly2-speculative-decoding-draft-model)
- [Hugging Face: AngelSlim/Hy4-flash-DFly2-B6 model card](https://huggingface.co/AngelSlim/Hy4-flash-DFly2-B6)
- [Tencent AI announcement on X](https://x.com/TencentAI_News/status/2125968859450802415)

---

Source: [Tencent's DFly2 speeds up long-context models without extra memory. Test it first](https://www.ideabro.ai/article/tencent-s-dfly2-speeds-up-long-context-models-without-extra-memory-test-it-first) — Ideabro. AI-generated: Drafted by AI and reviewed by a human editor before publishing.
