---
type: "post"
id: "tencent-open-sources-dfly2-hitting-4-2x-speed-fe2842"
slug: "tencent-open-sources-dfly2-hitting-4-2x-speed-fe2842"
title: "Tencent Open-Sources DFly2, Hitting 4.2x Speed on Long-Context AI"
description: "Tencent says it has open-sourced DFly2’s weights, training code and technical report in full, with MoE drafters for Hy4 Flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash."
retrieval_nugget: "Tencent says it has open-sourced DFly2’s weights, training code and technical report in full, with MoE drafters for Hy4 Flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash."
published_at: "2026-11-26"
updated_at: "2026-11-26"
record_date: "2026-11-26"
date_kind: "published_at"
topics: ["inference","open-models"]
entities: ["Tencent","AngelSpec","DFly2","DeepSeek-V4.1-Flash","GLM-5.3-Flash","Hy4 flash"]
related_patterns: []
novelty_label: "new_fact"
what_changed: "Tencent has open-sourced DFly2, a speculative-decoding framework for long-context inference that reportedly reaches 4.2× speed."
prior_refs: []
source_url: "https://github.com/Tencent/AngelSpec"
source_urls: ["https://github.com/Tencent/AngelSpec"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:tencent-open-sources-dfly2-hitting-4-2x-speed-fe2842"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/tencent-open-sources-dfly2-hitting-4-2x-speed-fe2842/","markdown":"https://newruntime.com/posts/tencent-open-sources-dfly2-hitting-4-2x-speed-fe2842.md","json":"https://newruntime.com/posts/tencent-open-sources-dfly2-hitting-4-2x-speed-fe2842.json"}
markdown_url: "https://newruntime.com/posts/tencent-open-sources-dfly2-hitting-4-2x-speed-fe2842.md"
---

# Tencent Open-Sources DFly2, Hitting 4.2x Speed on Long-Context AI

## Retrieval answer

Tencent says it has open-sourced DFly2’s weights, training code and technical report in full, with MoE drafters for Hy4 Flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash.

## Summary

Tencent says it has open-sourced DFly2’s weights, training code and technical report in full, with MoE drafters for Hy4 Flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash. The repository dates the full release to November 26, 2026. ([github.com](https://github.com/Tencent/AngelSpec))

## What happened

Tencent Hunyuan AI Infra develops AngelSpec, a torch-native framework for training speculative-decoding draft models. It trains DFly2 for Hy4, Hy4 Flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash; the repository says DFly2 ships with Hy4 and Hy4 Flash, and lists multi-node training examples for both.

The design shares each draft layer’s KV cache and the target sparse-attention layer’s top-k index selection. Tencent says a draft token attends to at most about 2K keys regardless of context length, and DFly2 keeps no separate drafter KV cache. It does not participate in prefill; the prefill-to-decode handoff transfers only the final-layer hidden state.

AngelSpec supports seven draft architectures through one training pipeline, with switching handled by configuration, and long-context training up to 256k using Ulysses sequence parallelism. Its inference and training GPU worker groups communicate through a Mooncake tensor store. AngelSpec v0.2.0 added DFly2 training on November 18, 2026.

Tencent reports comparisons against autoregressive decoding using greedy decoding at concurrency one, with separate decoding-only and end-to-end figures. On ALB with Hy4 Flash, it reports 4.55× decoding speedup but 1.35× end-to-end; on MemAgent with GLM-5.3-Flash, 2.20× decoding but 0.98× end-to-end; and on CodeSpan 64K with DeepSeek-V4.1-Flash, 3.23× decoding and 2.37× end-to-end.

The table’s Long and Agentic figures average three long-context and four agentic test sets, respectively. Tencent’s DFlash† comparison reads only a context window during decode but still builds a full cache during prefill.

## What the archive adds

A previous New Runtime note covered Tencent’s tenfold expansion of Hunyuan Hy4 WorkBuddy inference capacity after a launch surge. ([earlier New Runtime note](https://newruntime.com/posts/tencent-expands-hunyuan-hy4-workbuddy-inference-capacity-tenfold-0c23c5/)) DFly2 is a drafter framework for supported targets, not a report of expanded hosted inference capacity.

## Why it matters

For serving engineers, the 0.98× end-to-end result on MemAgent is the practical warning: a strong decoding-only gain can disappear once the full request path is counted. Benchmark on your actual model, prompt mix and serving configuration before deciding to deploy.

## Limits and uncertainty

The reported comparisons are Tencent’s own greedy-decoding tests at concurrency one, not evidence of performance under other loads or decoding strategies. The GLM-5.3-Flash MemAgent result is slightly slower end-to-end despite faster decoding. The documented single-node quick start is for DFly, not DFly2, and Tencent warns that CUDA 12.x hosts need CUDA-matched PyTorch and vLLM wheels because PyPI’s defaults target CUDA 13.

## Skill to build now

For DeepSeek-V4.1-Flash and GLM-5.3-Flash, the repository lists DFly2 training configurations at 32k. The quick start installs AngelSpec with its vLLM backend using `pip install -e ".[vllm]` and separately installs `mooncake-transfer-engine`. Its single-node example runs `./examples/qwen3-8b-dfly/run.sh` with eight GPUs split between inference and training. Note that this example uses DFly, not DFly2.

## Reader takeaway

DFly2 is worth testing if you serve Hy4 Flash, DeepSeek-V4.1-Flash or GLM-5.3-Flash: its drafter shares the target model’s KV cache and sparse index selection. But Tencent’s reported results range from 0.98× to 2.37× end-to-end speedup, so measure your workload rather than extrapolating from decoding-only numbers.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Inference](https://newruntime.com/topics/inference.md): Explore the inference topic hub.
- topic hub: [Open Models](https://newruntime.com/topics/open-models.md): Explore the open-models topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
