← Back to blog

Tencent Hunyuan DFly2 Explained: 4.2x Faster Hy4 Flash Decoding, KV/Index Share & When Self-Hosting Actually Pays Off

2026-11-26 · 8 min read
hunyuandfly2hy4-flashspeculative-decodingopen-source-llminference-speed

Tencent Hunyuan's DFly2 (open-sourced on November 26, 2026) is not a new standalone chatbot—it is a lossless speculative decoding draft model that accelerates Hy4 Flash token generation by up to 4.2x without changing the target model's weights or output distribution. Built specifically for DSA (DeepSeek-style Sparse Attention) architectures and long-context agentic workloads, DFly2 eliminates the two biggest bottlenecks of traditional drafters: ballooning KV-cache VRAM and rising draft latency as context grows.

If you run dedicated GPU clusters for high-volume inference or agentic pipelines, DFly2 is a meaningful infrastructure upgrade worth benchmarking immediately. If you are an individual developer, researcher, or knowledge worker who simply wants fast, low-latency long-context answers without renting GPUs or tuning prefill/decode disaggregation, self-hosting Hy4 Flash + DFly2 will cost more in hardware and ops overhead than using hosted fast and frontier models inside a single workspace like aiwith.chat (starting with 5,000 free starter credits and $9.9/month for full access to Gemini 4, DeepSeek V4.1, Kimi K3.1 Pro, GPT-6.2, and Claude 5.5).

Minimalist editorial studio illustration of translucent cobalt and silver optical prisms accelerating a stream of glowing light pulses across a dark slate architectural surface, symbolizing high-speed sparse attention decoding, clean lighting, no textMinimalist editorial studio illustration of translucent cobalt and silver optical prisms accelerating a stream of glowing light pulses across a dark slate architectural surface, symbolizing high-speed sparse attention decoding, clean lighting, no text

What Is DFly2—and What Actually Changed?

In standard autoregressive decoding, a large language model generates one token per forward pass, leaving GPU compute underutilized while memory bandwidth loads weights repeatedly. Speculative decoding fixes this by pairing a lightweight draft model that proposes several candidate tokens ahead with the target model verifying them in a single parallel pass—mathematically guaranteeing the exact same output distribution.

Traditional draft models struggle on long contexts (64K–1M tokens) and sparse-attention architectures because they either maintain their own separate KV cache or lose token-acceptance accuracy when the target model attends sparsely. Tencent Hunyuan released DFly2 alongside Hy4 Flash weights, training code, and the technical report (GitHub: Tencent/AngelSpec, HuggingFace: AngelSlim, arXiv: 2611.34776) to close that exact gap.

Verified Numbers from Tencent's Nov 26 Release

Metric / BenchmarkDFly2 on Hy4 FlashBaseline ComparisonPractical Takeaway
Peak SpeedupUp to 4.2xTarget model without drafterMajor throughput and time-between-tokens reduction with identical outputs
Long-Context Average Speedup+12% highervs. DSpark across 19 public benchmarksAdvantage widens as prompt length grows
Agentic Workload Speedup+30% highervs. DSpark across 19 public benchmarksHigh impact on multi-step tool-calling and coding loops
Real-World Agent Acceptance Length+10.4% longervs. native DSpark on WorkBuddy tasksFewer rejected drafts during real multi-turn agent sessions
Extra Drafter KV-Cache VRAM0 GB (KV Share)Separate KV cache in classic draftersFrees VRAM for larger batch sizes or longer context windows
Per-Draft Attention CapMax 2,048 positions (Index Share)Scales linearly with context lengthConstant draft compute cost regardless of prompt length

How KV Share and Index Share Keep Draft Overhead Flat

DFly2's core engineering trick is aggressive reuse of the target model's internal state. Instead of treating the drafter as an independent mini-LLM that re-reads the entire conversation history, each DFly2 draft layer hooks directly into the corresponding sparse-attention layer of Hy4 Flash:

  1. KV Share (Zero Extra KV VRAM): Each draft layer directly shares the target model's KV cache. You do not allocate a second KV cache for the drafter, which matters enormously when serving long-context sessions where KV memory already dominates GPU capacity.
  2. Index Share (Constant Compute at Any Context Length): Because Hy4 Flash uses DSA sparse attention, its indexer already selects the most relevant token positions—at most 2,048 keys. DFly2 reuses those exact selected indices, capping every draft token's attention to ~2K keys. Whether your prompt is 8K tokens or 200K tokens, draft-layer attention complexity stays flat.
  3. PD-Disaggregation Friendly: Modern high-throughput serving stacks split Prefill (P) and Decode (D) across separate GPU pools. DFly2 does not participate in prefill at all; the Prefill node only transfers one extra final-layer hidden state to the Decode node, keeping inter-node bandwidth overhead minimal.

Honest Availability Check: Is Hy4 Flash + DFly2 on aiwith.chat?

No—Tencent Hy4 Flash and DFly2 are not currently hosted on aiwith.chat. DFly2 is an open-source inference acceleration component designed for teams self-hosting Hy4 Flash via AngelSpec/vLLM-style GPU stacks, not a standalone consumer web bot.

What is live today on aiwith.chat (verified directly against our production model roster) is a full suite of fast and frontier models that cover both low-latency drafting and deep reasoning in one browser tab—without provisioning GPUs:

  • Ultra-Fast & Cost-Efficient Models: DeepSeek V4.1 Flash (/deepseek), Gemini 4 Hydrogen (/gemini-pro), GPT-6 Luna (/gpt), and Claude Haiku 5.5 (/claude) for instant responses and high-volume iteration.
  • Long-Context & Agentic Workhorses: Kimi K3.1 Pro (/kimi-k3, 1M-token context with always-on reasoning and coding performance close to Claude Opus 5.5) and Gemini 4 Neon (/gemini-pro, balanced frontier intelligence and speed).
  • Heavy-Duty Flagships: Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, GPT-6.2 Astra, GPT-6.2 Sol, Gemini 4 Carbon, and DeepSeek V4 Pro.

Self-Hosting DFly2 vs. Hosted Multi-Model Workspace: Real Cost & Friction

Before spinning up cloud GPUs to chase a 4.2x speculative speedup, look at where the math actually tips:

DimensionSelf-Hosting Hy4 Flash + DFly2Hosted Multi-Model Workspace (aiwith.chat)
Best ForML infra teams running continuous high-QPS APIs or private agent fleetsSolo developers, researchers, and small teams doing daily coding, writing, and analysis
Setup & Ops OverheadHigh (GPU rental, AngelSpec/serving setup, PD-disaggregation tuning, monitoring)Zero (email or Google login in browser; instant model switching)
Monthly Floor CostHundreds to thousands of dollars/month in idle + active GPU bills5,000 free starter credits; $9.9/month Standard ($49.9/6mo, $95.9/yr)
Model DiversityLocked to Hy4 Flash (plus whatever else you host yourself)GPT-6.2 Astra/Sol, Claude 5.5/Fable 5.1, Gemini 4, DeepSeek V4.1, Kimi K3.1 Pro in one place
Data ResidencyFull self-hosted VPC / on-prem controlCloud-hosted via official/enterprise API endpoints
Payment OptionsCloud provider billing (AWS/GCP/RunPod/bare metal)Stripe, Alipay, and WeChat Pay

A Simple Break-Even Rule

  • Self-host DFly2 if you already pay for dedicated GPU instances serving Hy4 Flash (or compatible DSA sparse-attention models) at high concurrency, or if strict on-prem compliance forbids sending prompts to external APIs. In that regime, a 30% speedup over DSpark on agentic loops translates directly into fewer GPUs needed for the same latency SLA.
  • Use a hosted multi-model workspace if your real goal is faster daily coding, long-document synthesis, or comparing outputs across model families. A single $9.9/month plan on aiwith.chat costs less than a few hours of a single H100 node—and lets you pair DeepSeek V4.1 Flash or Gemini 4 Hydrogen for rapid drafts with Claude Opus 5.5 or GPT-6.2 Astra when accuracy matters most.

Test fast + frontier model switching right now (5,000 free starter credits, no credit card required):

Verdict: Who Should Act on DFly2 Today?

  • Inference & MLOps engineers: Clone Tencent/AngelSpec and benchmark DFly2 on your longest agentic traces first—that is where KV Share + Index Share delivers its biggest margin (+30% over DSpark, up to 4.2x overall) without touching model quality.
  • Everyday builders and individual devs: Skip the GPU ops rabbit hole. Use fast hosted models (DeepSeek V4.1 Flash, Gemini 4 Hydrogen, GPT-6 Luna) for speed and escalate to Claude Opus 5.5, GPT-6.2 Astra, or Kimi K3.1 Pro on aiwith.chat whenever a task demands deep reasoning.

FAQ

Does DFly2 reduce Hy4 Flash's output quality or accuracy?

No. Speculative decoding verifies every drafted token against the target model (Hy4 Flash) in parallel. Because Hy4 Flash's weights remain untouched and rejection sampling preserves the exact target distribution, output quality is mathematically lossless.

Can I run DFly2 with any open-source LLM like Llama or Qwen?

DFly2 is specifically architected for DSA sparse-attention models (starting with Tencent's Hy4 Flash) so it can reuse the target model's sparse KV cache and top-2,048 indexer positions. Adapting it to dense-attention models requires different attention mechanics and separate training.

Why does DFly2 help agentic tasks (+30% vs. DSpark) more than standard chat?

Agentic workflows repeatedly process long tool outputs, code diffs, and structured JSON/code templates where next-token predictability is high and context length grows rapidly. DFly2's Index Share keeps draft latency flat as context balloons while maintaining higher token acceptance (+10.4% on WorkBuddy).

Is Hy4 Flash or DFly2 available inside aiwith.chat?

Not right now. aiwith.chat focuses on hosted frontier and fast models you can use immediately in the browser—including GPT-6.2 Astra / Sol / Luna, Claude Opus 5.5 / Sonnet 5.5 / Haiku 5.5 / Fable 5.1, Gemini 4 Carbon / Neon / Argon / Hydrogen, DeepSeek V4.1 Flash / V4 Pro, and Kimi K3.1 Pro.