AngelSpec Opens Tencent's Speculative Decoding Training Stack
- Source
- arxiv.org
- Publisher
- Tencent
- Author
- Tencent Hy
- Date

Context
Tencent has open-sourced AngelSpec, the framework its Hunyuan infrastructure team uses to train draft models for , together with drafters for its Hy3 model. Speculative decoding speeds up text generation without changing the large model's output distribution: a small drafter guesses several upcoming , and the large target model checks them all in one pass, accepting guesses by a sampling rule that leaves its output distribution unchanged. The speedup depends on how many guesses survive each check and on how much each check costs. Technical report, code.
The report's argument is that no single drafter suits every kind of request. In open-ended chat many continuations are plausible, so long guesses are usually rejected, and the team uses a lightweight multi-token-prediction (MTP) drafter that proposes a shorter sequence and is trained on conversation data. Code and math have longer predictable stretches, so for them the team built DFly, which predicts a whole block of tokens at once and then corrects each position using the token chosen just before it. DFly extends an earlier block drafter, DFlash, and is trained with extra code and math data.
The announced figures come from benchmark runs on Tencent's 295-billion-parameter Hy3. Averaged over six code, math and chat datasets, DFly produced 1.98 to 2.40 times the output-token of ordinary one-token-at-a-time decoding at every tested load from 4 to 64 simultaneous requests, and 10.5 to 11.8 percent more than DFlash. The same table shows the workload split: on MT-Bench, the chat dataset, DFly's speedup was only 1.32 to 1.68 times, and the MTP drafter was faster at three of the five load levels. Results, Table 7.
The report's replay of real Hunyuan production traffic gives a smaller number. On eight H20 GPUs, DFly peaked near 1.33 times ordinary decoding between 24 and 40 concurrent requests, and stopped adding aggregate throughput beyond 48. A further component, D-cut, decides at each step how many drafted tokens across the whole batch are worth checking, and prunes low-confidence tails when verification becomes the bottleneck. With it, throughput reached 1.45 times ordinary decoding at 56 requests and 15.7 percent more than DFly alone at 64, while the average number of accepted tokens fell by only about 1.5 percent. The 2x headline therefore describes per-dataset benchmarks; on Tencent's own mixed traffic, on this model and hardware, the peak gain was about 1.33 times with DFly and 1.45 times with D-cut added. Live-traffic results, Figure 4.
The repository releases the framework, which supports six drafter designs through one training pipeline, DFly and MTP drafter weights for Hy3, and smaller DFly and MTP drafters for Qwen3-8B. Its single-node example for Qwen3-8B uses eight GPUs, four generating the target model's internal states and four training the drafter. Released models and quick start.
- speculative decoding — A speed trick where a small model drafts several tokens ahead and the big model verifies them in one pass, often doubling generation speed.
- Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
- throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.
- Training — The process that adjusts a model using examples and a measure of how well it performs.
articleMargins, Not Windows: Training-Free Per-Step Lossy Speculative DecodingOszk\'ar Urb\'an, Young D. Kwon, Stylianos I. Venieris, Cecilia Mascolo
articleCo-Designing AI Models Using Speculative Decoding for Faster LLM InferenceTanya Lenz
postDSpark drafts roughly halve LFM2.5 agent latencyLiquid AI



