← Back to articles

NewsBy: tencentaioptimizationneural networks

Tencent made AI 4.2 times faster, without extra KV memory

Tencent has open-sourced the training code for AngelSpec, an acceleration mechanism for Hy4 and Hy4 flash. It targets long contexts and agent workloads without requiring a separate KV cache for the draft model.

AI news faster than on the site — on Telegram KARMAZIN MEDIA

Tencent made AI 4.2 times faster, without extra KV memory
Photo: KARMAZIN MEDIA

On November 26, Tencent open-sourced the training code for AngelSpec, a speculative decoding mechanism shipped with Hy4 and Hy4 flash. The company says it can speed up generation by up to 4.2 times on long-context and agent workloads.

DFly2 first proposes several possible continuations, while the main model checks them and accepts suitable tokens. The draft model reuses the target model’s KV cache and sparse indices, so it does not need a separate KV cache. The cost of processing each draft token remains almost constant as the context grows.

Tencent previously released the Hy4 model family, and has now added a separate acceleration mechanism. DFly2 comes with ready-made configurations for vLLM and SGLang.

original