AngelSpec
What is AngelSpec?
AngelSpec is a unified, torch-native training framework designed for speculative decoding, supporting both autoregressive Multi-Token Prediction (MTP) and block-parallel drafting architectures. It enables independent scaling of inference and training through a disaggregated architecture, facilitating high-performance model deployment.
AngelSpec is an open-source, torch-native framework developed by Tencent to optimize large language model inference through speculative decoding. By providing a unified pipeline for training diverse draft architectures—including DFly, DFlash, and MTP—it allows developers to co-specialize model structures and training data to match specific workload requirements, such as high-entropy chat or code generation. The framework is designed for production-scale efficiency, utilizing disaggregated GPU worker groups and RDMA-backed tensor stores to ensure that hidden-state generation and optimization scale independently without stalling.
Beyond its training capabilities, AngelSpec introduces the DFly architecture, which combines hybrid target-conditioning with predecessor-conditioned autoregressive heads to improve throughput. It supports advanced features like document-aware sequence packing, long-context training up to 128k tokens, and online evaluation against live traffic. By treating verification as a shared batch-level resource, AngelSpec enables adaptive inference that significantly accelerates models like Hunyuan 3, delivering substantial speedups over standard autoregressive decoding.
AngelSpec is built by Tencent and fits into the AI Coding and AI/Dev Infrastructure categories. It was released on Jul 29, 2026.
AngelSpec is free to use and open source, with the source code on GitHub. Teams typically use it for refactoring, model serving, code review and hardware acceleration, with domain-specific use in Fintech, Enterprise, E-commerce and Healthcare.
Who AngelSpec is for
Teams and individual developers working in AI Coding and AI/Dev Infrastructure.