Skip to content
AI.info

The Pulse

Tencent releases DFly2 draft model weights and training code

Tencent has released the weights and training code for DFly2, a draft model used to accelerate text generation in Hy4 and Hy4 flash. The release also includes DFly2 models trained for DeepSeek-V4.1-Flash and GLM-5.3-Flash.

Tencent releases DFly2 draft model weights and training code

Tencent has released the weights and training code for DFly2, a draft model used to speed text generation in Hy4 and Hy4 flash. The company's AngelSpec repository says the release also includes a technical report and new DFly2 drafters for DeepSeek-V4.1-Flash and GLM-5.3-Flash.

The release makes available the training framework behind DFly2 as well as the model weights. Tencent's Hunyuan AI Infra team develops AngelSpec, a framework for training draft models for speculative decoding.

What was released

AngelSpec added DFly2 training in version 0.2.0 on November 18, followed by training support for Hy4 on November 20. The full release of weights, code and the report followed on November 26.

The newly released mixture-of-experts drafters target Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash. The repository also describes a dense drafter built into Hy4 flash and provides training configurations for the DeepSeek and GLM targets.

AngelSpec supports seven draft architectures through a shared training pipeline, including DFly2, DFlash and DSpark. Its inference and training processes run as separate GPU worker groups connected by a Mooncake tensor store, allowing hidden-state generation and optimization to scale independently.

Sharing the target's cache

In speculative decoding, a draft model proposes tokens for a larger target model to check, reducing the number of target passes needed to generate text. DFly2 is a block-parallel drafter designed for targets with sparse attention, which selects positions in the context for attention rather than reading every position.

Each DFly2 draft layer reads the key-value, or KV, cache of a paired target layer and uses positions selected by that layer's indexer. It does not maintain a separate cache for the drafter or run its own scoring pass, the technical report says.

The repository says each draft token attends to at most about 2,000 keys regardless of context length. It also describes DFly2 as not involved in prefill, the stage that processes the input before decoding, with only a last-layer hidden state added to a prefill-to-decode transfer.

Results and conditions

In a preprint, Tencent researchers report testing DFly2 against DFlash and DSpark drafters trained using the same recipe. The tests covered general-purpose, long-context and agentic benchmarks on DeepSeek-V4.1-Flash, GLM-5.3-Flash and Hy4 flash, at two temperatures.

The reported margin in accepted tokens per step over the stronger baseline ranged from 3.9% to 10.5% on general workloads and from 10.0% to 31.5% on long-context and agentic workloads of up to 128K. Accepted length and speed are separate measures: the repository reports both decoding and end-to-end speedups against autoregressive decoding.

For Hy4 flash on the agentic benchmark average, DFly2 recorded a 3.41-times decoding speedup and a 1.67-times end-to-end speedup, compared with 2.63 times and 1.55 times for DSpark, according to the repository. Those figures use greedy decoding at a concurrency of one.

The researchers also tested serving DeepSeek-V4.1-Flash at high concurrency and matched per-user decoding speed. They report 62% and 81% more throughput than the stronger baseline on long-context and agentic sets, respectively, at 64K.

Sources

  1. Original source Tencent “GitHub - Tencent/AngelSpec: A unified, torch-native training framework for MTP and block-parallel speculative decoding.” github.com

Other pages read

  1. arXiv “DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target’s Sparsity” arxiv.org
  2. Tencent “AngelSpec README (Latest News)” raw.githubusercontent.com

In the tracker

Related stories

Explore

More articles