AIDeveloper44 logoaideveloper44home of every ai dev release
← all tools
Tencent·Jul 29, 2026·open source

AngelSpec

AngelSpec is a unified, torch-native training framework designed for speculative decoding, supporting both autoregressive Multi-Token Prediction (MTP) and block-parall…
AI CodingAI/Dev InfrastructureOpen SourceFree

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.

Software engineers

Write, refactor and debug code faster in their existing workflow

ML and MLOps engineers

Serve, scale and monitor AI workloads

Tech leads

Speed up code review and keep standards consistent across PRs

Platform engineers

Run AI infrastructure reliably and cost-efficiently

Indie developers and founders

Ship features with a smaller team

Researchers

Run experiments on GPUs, TPUs or other accelerators

Key features

01Unified training pipeline for 6 draft architectures (DFly, DFlash, DFlare, Eagle3, DSpark, MTP)
02Disaggregated training architecture with independent scaling for inference and optimization
03Support for long-context training up to 128k tokens via Ulysses sequence parallelism
04Online evaluation of speculative decoding performance during training
05Document-aware sequence packing with strict cross-document isolation
06Acceptance-aligned training objectives including CE, top-k KL, and D-PACE weighting

AngelSpec use cases

Horizontal · cross-industry

RefactoringMulti-file refactors, API migrations and type-safe renames across a repo
Model servingHigh-throughput inference with batching and KV/prefix caching
Code reviewAutomated PR review, diff summaries and inline fix suggestions

Vertical · domain-specific

FintechChange ledger and payment services with test suites generated alongside
EnterpriseSelf-hosted inference in a VPC to keep data in-house
E-commerceShip storefront and checkout features across a monorepo