2026年11月26日,腾讯混元AI Infra团队开源了DFly2,并在AngelSpec代码库中发布训练代码,技术报告于11月25日以arXiv:2611.34776上线。DFly2是一个为原生稀疏注意力语言模型设计的推测解码草稿模型,已发布针对三个目标模型的草稿器:腾讯自家的Hy4 flash、DeepSeek-V4.1-Flash和GLM-5.3-Flash。推测解码的做法是让一个小模型一次提出多个词元,再由大模型在一遍前向中统一核对,猜对的保留,猜错的丢弃重写,因此最终文本与大模型单独生成的完全一致,速度提升来自减少了大模型的完整前向次数。
多数推测解码实现有一个隐性成本:草稿模型要维护自己的一份键值缓存,不仅占用显存,还要在起草前先跑一遍自己的预填充。DFly2取消了这第二份缓存。它的每个草稿层与目标模型的一个稀疏注意力层配对,直接读取该层已经缓存的潜变量,而且只读取目标模型稀疏注意力索引器选中的那些位置。于是每个草稿词元大约只需要注意2,000个键,无论完整上下文拉多长都不变。草稿器自己不存缓存,也不运行索引器,每词元的键值显存增量为零。对一个要服务百万词元上下文的目标模型来说,这意味着草稿器的成本不再随对话变长而增长。
为Hy4 flash配套的草稿器相对目标模型很小。Hy4 flash是一个2,200亿参数的混合专家模型,每个词元约激活120亿参数,上下文窗口为100万词元。它的DFly2草稿器有8.5亿参数,由三层混合专家层组成,每层128个路由专家,注意力起点来自目标模型第33、37、41层的配对层。发布的草稿器采用一个锚点词元加五个候选词元的块结构。长上下文服务的效率也是本周其他发布的主题,例如徐工与易控智驾合作开发的无驾驶室纯电动自动驾驶矿卡把成本控制放进了车辆本身,而Yandex计划测试的人形配送机器人则把接力环节交给了不同形态的机器,三者解决的是各自系统里最贵的那一段。
腾讯用自家的AngelSpec框架训练这批草稿器。AngelSpec是统一的推测解码训练框架,2026年11月18日发布的0.2.0版本加入了DFly2支持。训练语料名为DFly-SFT,包含989,861段对话、74.2亿个词元,来自十个能力领域的公开数据集。AngelSpec通过一条共享流水线支持七种草稿架构,包括腾讯用作主要对照的DFlash和DSpark。其混合在线与离线训练模式DFly-OPD无需 rollout 即可完成蒸馏,降低了为新目标模型训练草稿器的算力门槛。
速度数字来自腾讯自己的测量:英伟达H20硬件,单个张量并行实例,并发为1,取最后三次运行的平均值。在DeepSeek-V4.1-Flash上,DFly2在长上下文任务上实现2.87倍解码加速、2.11倍端到端加速,对照的DSpark为2.47倍和1.91倍;在智能体工作负载上,同一目标模型的解码加速为3.10倍,端到端为1.50倍。Hy4 flash的智能体数字是整批发布中最高的:解码3.41倍,端到端1.67倍,DSpark为2.63倍和1.55倍。在覆盖GSM8K、MATH-500、AIME25、MBPP、HumanEval、LiveCodeBench和MT-Bench的通用任务集上,DFly2每步平均接受3.96个词元,高于DSpark的3.81和DFlash的3.58。
解码数字与端到端数字之间的差距值得细看。草稿器不改变预填充,也就是生成开始前读取提示词的那一遍,因此提示词很长、回答很短的请求,收益会明显低于标题数字。腾讯在AngelSpec文档中把两个数字并排公布,这让这次发布比只报解码速度的发布更容易评估。服务支持方面,文档给出了Hy4 flash的预构建vLLM和SGLang镜像,vLLM配方默认开启DFly方法。草稿器权重在其Hugging Face页面采用Apache 2.0许可,AngelSpec代码同为Apache 2.0并列明第三方例外。每个目标模型保留各自的条款,部署DeepSeek-V4.1-Flash或GLM-5.3-Flash的团队需要单独核对对应许可。腾讯已在AngelSpec中公布三个目标的完整训练配置,使用其他稀疏注意力模型的实验室可以照同一套配方操作。DFly2报告于11月25日上线,权重与代码于11月26日跟进;采用者接下来要看的是vLLM与SGLang的发布说明,DeepSeek和GLM草稿器更广泛的服务支持会先出现在那里。
English
Tencent’s Hunyuan AI Infra team open-sourced DFly2 on November 26, 2026, publishing drafter weights, training code in the AngelSpec repository and a technical report, arXiv:2611.34776, dated November 25. DFly2 is a speculative decoding drafter built for language models that use native sparse attention. It ships with drafters for three targets: Tencent’s Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash.
Speculative decoding lets a small draft model propose several tokens at once, which the large target model checks in a single pass. Correct guesses are kept and wrong ones are discarded, so the output text is identical to what the target would have produced alone. The usual cost is that the drafter keeps its own key-value cache, which adds memory and a prefill step of its own. DFly2 removes that second cache. Each draft layer is paired with one sparse attention layer in the target and reads the latents that layer has already cached, at exactly the positions the target’s sparse attention indexer selected. Every draft token therefore attends to roughly 2,000 keys however long the full context grows, and the drafter adds no key-value memory per token.
The Hy4 flash drafter is small next to its target. Hy4 flash is a 220 billion parameter mixture-of-experts model with about 12 billion active parameters per token and a context window of one million tokens. Its drafter has 0.85 billion parameters across three mixture-of-experts layers with 128 routed experts each, with attention starting from the paired target layers at layers 33, 37 and 41. The released drafters use a block of one anchor token plus five proposed tokens.
Tencent trained the drafters with AngelSpec, its unified speculative decoding training framework, which gained DFly2 support in version 0.2.0 on November 18, 2026. The training corpus, DFly-SFT, holds 989,861 conversations and 7.42 billion tokens from public datasets across ten capability domains. AngelSpec supports seven draft architectures through one pipeline, including DFlash and DSpark, the two methods used as the main comparisons. A hybrid online and offline mode, DFly-OPD, handles distillation without rollout passes.
The speed figures are Tencent’s own measurements on NVIDIA H20 hardware, one tensor-parallel instance at concurrency one, with the last three runs averaged. On DeepSeek-V4.1-Flash, DFly2 reached 2.87 times decoding speedup on long-context work and 2.11 times end to end, against 2.47 and 1.91 for DSpark. On agentic workloads with the same target, decoding ran 3.10 times faster and requests finished 1.50 times faster end to end. Hy4 flash posted the strongest agentic numbers: 3.41 times on decoding and 1.67 times end to end, compared with 2.63 and 1.55 for DSpark. Across a general task set covering GSM8K, MATH-500, AIME25, MBPP, HumanEval, LiveCodeBench and MT-Bench, DFly2 accepted an average of 3.96 tokens per step, ahead of DSpark at 3.81 and DFlash at 3.58.
The gap between the decoding figure and the end-to-end figure matters, because prefill is untouched by a drafter, so a request with a long prompt and a short answer gains less than the headline number. Tencent publishes both figures side by side in the AngelSpec documentation. Serving support is documented for Hy4 flash through prebuilt vLLM and SGLang images, with the DFly method on by default in the vLLM recipe. The drafter weights carry an Apache 2.0 licence, and the AngelSpec code is Apache 2.0 with listed third-party exceptions, while each target model keeps its own terms. Tencent has published the full training configurations for all three targets in AngelSpec. The next check for adopters is the vLLM and SGLang release notes, where broader serving support for the DeepSeek and GLM drafters will appear first.
这篇报道也发表于News Today World, Manhattan Mogul, Newsy USA, American Morning Herald, Revista Minutos, Le Miroir Francais。






































Be First to Comment