ChengRang

DFly2

AI Models Open Source

A speculative decoding drafter open sourced 2026/11/26 by Tencent Hunyuan that accelerates an existing model without replacing it, keeping output identical to token-by-token generation. Each draft layer shares the KV cache of its paired sparse attention layer and the at most 2,048 positions that layer's indexer selected, so the drafter keeps no cache of its own, adds no VRAM and keeps attention cost decoupled from context length. Hy4-flash-DFly2-B6 uses three MoE draft layers with block size 6 in BF16, sharing embedding and LM head with the target. Across 19 public benchmarks it reports roughly 12 percent higher average speedup than DSpark on agentic work and 30 percent on long context, peaking at 4.2 times on AgentLongBench at 64K, while moving 98.5 MiB less than single-layer MTP at 128K for 26 percent higher end-to-end throughput. Code is Apache-2.0 in AngelSpec, weights ship with Hy4 and Hy4 flash, and drafters for DeepSeek-V4.1-Flash and GLM-5.3-Flash were also released

TencentInference AccelerationSpeculative DecodingLong ContextOpen Source
Visit DFly2

Disclaimer: Review content represents our editorial team's views and experience, not commercial recommendation or investment advice. Product info and pricing may change; refer to official sources.

Overview

Million-token context is no longer the hard part. A whole codebase, a hundred-page contract, dozens of agent turns all fit in one go. The hard part comes next: reading takes seconds, emitting tokens takes minutes, and the longer the context the wider the gap.

Speculative decoding is the established answer. A small fast drafter guesses a handful of tokens, the target model verifies them in one batch, accepted guesses stay and rejected ones get rewritten. Output is identical to token-by-token generation. A drafter lives or dies on acceptance length, the number of draft tokens the target accepts per verification pass.

DFly2, open sourced by Tencent Hunyuan on 26 November 2026, stays on that path but is not a new model. It bolts onto the side of an existing one. Target weights stay put, output stays byte-identical, only wall-clock time changes. The technical report is arXiv 2611.34776, training code landed in AngelSpec, and weights ship with Hy4 and Hy4 flash.

The trouble sits in the drafter's own cache. Drafters inherited a dense-era design that maintains a separate KV cache, so longer context means more attention compute, more memory, and a fight with the target model over VRAM. Hy4 flash uses DSA sparse attention, where each token attends to at most 2,048 positions picked by an indexer. Full attention is too expensive for a drafter, and a sliding window misses the distant positions the indexer selected, which are exactly what the target model relies on next. The authors put a number on that hidden cost: a self-built full cache adds roughly one fifth to per-token KV on Hy4 flash and roughly three quarters on DeepSeek-V4.1-Flash.

Key Features

Use Cases

Pros

Pricing

Code is Apache-2.0 at github.com/Tencent/AngelSpec. Weights live under the AngelSlim organisation on Hugging Face and are published alongside Hy4 and Hy4 flash, free to download and self-host. DFly2 carries no separate charge; inference cost follows whichever target model it accelerates. vLLM speculative decoding support is marked in progress, so production use needs its own validation.

Summary

Same model, same weights, identical output, but up to 4.2 times the token throughput on long-context and agent workloads by reusing the target model's KV cache, sparse indices, weights and hidden states. Open sourced by Tencent Hunyuan with the AngelSpec training framework, validated on three sparse architectures.

Version History

Category
AI Models
Pricing
Open Source
Tags
Tencent · Inference Acceleration · Speculative Decoding
Website

Related Tools