ModelsOfficial

Tencent 开源 DFly2:复用目标模型稀疏 KV Cache 的投机解码方案

Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache

Why we picked it

腾讯开源的这套投机解码方案挺巧的:draft 层直接复用目标模型的 KV cache,不占额外显存,64K 上下文吞吐能提 81%。做长文本推理部署的工程师可以直接拿来试试,代码已经放出。

Tencent 开源了 DFly2,一个面向稀疏注意力 LLM 的投机解码起草器。64K 上下文场景下,服务吞吐最高提升 81%。

Image · marktechpost
Body

DFly2 的核心机制是让每一层 draft 层直接复用目标模型的 KV cache 和 top-k indexer 的选择结果,因此不引入额外的 draft KV 内存开销。传统投机解码方法通常需要为 draft 模型单独维护一份 KV cache,内存成本随上下文长度增长,而 DFly2 通过共享缓存避免了这一瓶颈。

对于使用稀疏注意力架构做长上下文推理的团队,这意味着在不增加显存的前提下获得接近投机解码的加速效果。该方案已开源,可集成到现有的稀疏注意力推理服务中。

Original · marktechpost

Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache

Tencent open-sourced DFly2, a speculative decoding drafter for sparse-attention LLMs. Each draft layer reuses the target's KV cache and top-k indexer picks, adding no draft KV memory and lifting 64K serving throughput by up to 81%. The post Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache appeared first on MarkTechPost .

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Models" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Tencent, DFly2, speculative decoding, sparse attention.

Primary source verification: published directly by marktechpost with first-party authority.