explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR: what shipped and what the numbers mean
  • What is speculative decoding, and where does DFly2 fit?
  • How does DFly2 work?
  • What do the benchmark tables actually show?
  • The 4.2× claim: what is verified
  • How do I try DFly2?
  • Why does this matter for people who self-host?
  • What should builders do now?
  • Limits and open questions
  • Related reading
← Back to blog

explainx / blog

Tencent DFly2: Open Drafters That Speed Up Hy4 Flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash

Speculative Decoding, Tencent, Open Source, Inference, Hy4

Part of AI Tools and Apps

Tencent open-sourced DFly2 in AngelSpec: speculative-decoding drafters for sparse-attention models. The README shows up to 4.55× decoding speedup; we check the 4.2× headline.

Nov 26, 2026·10 min read·Yash Thakker
add explainx.ai
go deep
Tencent DFly2: Open Drafters That Speed Up Hy4 Flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash

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

table · 2 cols
QuestionAnswer
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 dateNovember 26, 2026 (v0.2.0 with DFly2 training landed November 18)
Target modelsHy4, Hy4 flash, DeepSeek-V4.1-Flash, GLM-5.3-Flash
Released weightsAngelSlim/Hy4-flash-DFly2-B6, AngelSlim/DS-V4.1-Flash-DFly2-B6, AngelSlim/GLM-5.3-Flash-DFly2-B6
Best decoding speedup4.55× (Hy4 flash, ALB, greedy, concurrency one)
Best end-to-end speedup2.51× (Hy4 flash, CodeSpan 64K)
Best mean accepted length5.49 tokens (GLM-5.3-Flash, ALB, temperature 0)
LicenseSet by the LICENSE file in the repo (read it before use)
Who measured it?The authors; no independent test yet
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

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 DFly2Speculative 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.

  1. 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.
  2. No extra KV memory. The drafter keeps no separate KV cache, so it does not compete with the target for GPU memory.
  3. 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)

table · 4 cols
TargetCodeSpan 64KALBAgentic average
DeepSeek-V4.1-Flash4.14 / 3.595.10 / 4.724.06 / 3.75
GLM-5.3-Flash4.40 / 3.635.49 / 4.774.03 / 3.68
Hy4 flash4.12 / 4.035.41 / 5.224.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)

table · 4 cols
TargetCodeSpan 64KALBAgentic average
DeepSeek-V4.1-Flash3.23× / 2.37×3.82× / 1.25×3.10× / 1.50×
GLM-5.3-Flash2.82× / 1.79×3.57× / 1.10×2.61× / 1.22×
Hy4 flash3.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

table · 2 cols
ClaimWhat 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:

bash
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?

  1. Pick one workload. Take your real agent traces, not a benchmark, and replay them with and without the drafter.
  2. 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.
  3. Test at your concurrency. Run at the batch size you serve in production. The published tables are at concurrency one.
  4. 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.
  5. 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.

Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Nov 14, 2026

Qwen3.8-27B DSpine-b16: Tencent's Open 2B Drafter for Faster Local Inference

Tencent released a DSpine drafter checkpoint for Qwen3.8-27B on Hugging Face under Apache 2.0, with SGLang serve flags, agent benchmarks and tables that compare DSpine to DFlash2 on WorkBuddy and SWE-bench style tasks.

Oct 16, 2026

Tencent DSpine: A Parallel Drafter That Beats DFlash on Qwen3-8B

Tencent put DSpine, a parallel speculative-decoding drafter, on Hugging Face with inference code, an arXiv paper and an SGLang recipe. It reports longer accepted runs and 23% more throughput than DFlash on Qwen3-8B. Here is how it works, how to try it, and which numbers to treat with care.

Oct 22, 2026

EAGLE-4: One Flexible Speculative Drafter, 3.59x Faster Qwen3.8-27B on B300

The EAGLE team released EAGLE-4, a source-available speculative-decoding system whose single drafter adapts to batch size, hardware and workload. On Qwen3.8-27B with four B300 GPUs, the model card reports 3.59x at temperature 0, ahead of DFlash 2 and MTP.