Tencent Releases AngelSpec: What Is This Open Source AI Inference Framework?
Tencent has released AngelSpec, a new open-source framework designed to make large AI language models run significantly faster during inference — the stage when a trained model generates responses. The release is notable not just for its technical ambitions, but for what it represents to developers, IT teams, and organisations building self-hosted, privacy-respecting AI infrastructure: a meaningful performance leap without giving up control over where your data goes or how your model runs.
AngelSpec is described as a "torch-native" framework — meaning it is built natively on PyTorch, the foundational deep learning library used by the vast majority of AI researchers and engineers globally. It supports training speculative-decoding draft models across six different architectures, making it broadly applicable across a wide range of deployment scenarios. For privacy professionals and IT decision makers who have been wary of relying on closed, cloud-hosted AI APIs, tools like AngelSpec represent a growing ecosystem of serious, enterprise-grade alternatives that can be deployed entirely within your own infrastructure.

According to the technical announcement covered by MarkTechPost, AngelSpec introduces a new component called DFly — a block-diffusion drafter that uses hybrid target conditioning and a hidden-correction autoregressive head. When tested on Tencent's HY3-295B-A21B model with tensor parallelism set to 8 (TP=8), DFly-8 delivered a speedup of between 1.98× and 2.40× over standard autoregressive decoding across concurrency levels from 4 to 64. In practical terms: AI responses that once took nearly two seconds could now arrive in roughly one second or less — a difference that matters enormously at scale.
Speculative Decoding Explained: Why Inference Speed Is the New Battleground
To understand why AngelSpec matters, it helps to understand the problem it solves. Large language models (LLMs) generate text one token (roughly one word or word-fragment) at a time, in a sequential chain. Each step requires a full pass through billions of model parameters — a computationally expensive operation that adds up quickly when you are serving thousands of simultaneous users or processing large volumes of documents.
Speculative decoding is an increasingly popular technique that addresses this bottleneck. Instead of generating tokens one by one with the full model, a smaller, faster "draft model" rapidly proposes a sequence of candidate tokens. The full model then verifies these proposals in parallel — a much more computationally efficient operation. If the draft tokens are accepted, you effectively get multiple tokens for roughly the cost of one full model pass. Research published on arXiv has documented consistent 2–3× inference speedups using various speculative decoding approaches, making it one of the most practically valuable optimisation techniques in the LLM field.
The challenge is that building and training these draft models well is non-trivial. Different architectures, hardware configurations, and concurrency levels all affect performance. Prior to frameworks like AngelSpec, teams typically had to develop custom solutions or rely on fragmented, architecture-specific tools. AngelSpec's stated goal is to unify this process — providing a single, coherent training framework that works across six model architectures and adapts dynamically to runtime conditions.
DFly and D-Cut: The Technical Components That Deliver the Speed Gains
AngelSpec introduces two particularly noteworthy technical components that developers and ML engineers will want to examine closely.
The first is DFly, the framework's block-diffusion drafter. Traditional draft models generate candidate tokens autoregressively — one at a time, even if quickly. DFly takes a different approach, using block-level diffusion to generate multiple candidate tokens in parallel within each draft step. The "hybrid target conditioning" mechanism means DFly conditions its outputs on both the target model's hidden states and its own representations, producing higher-quality draft tokens that are more likely to be accepted during verification. The "hidden-correction autoregressive head" further refines outputs, reducing the penalty paid when draft tokens are rejected.
The second key component is D-Cut, AngelSpec's runtime-adaptive verification budgeting system. This is a sophisticated mechanism that dynamically adjusts how many draft tokens are proposed and verified based on current system load and concurrency. Rather than applying a fixed speculative window regardless of conditions, D-Cut continuously calibrates the draft-verify cycle to maximise throughput without wasting compute. For IT teams managing variable workloads — as is typical in enterprise environments — this kind of adaptive behaviour is operationally significant. It means the system self-optimises rather than requiring manual tuning across different traffic profiles.
"Open-source frameworks that bring enterprise-grade inference efficiency to self-hosted deployments are exactly what the market needs right now — organisations under GDPR and data sovereignty obligations simply cannot afford to route all their AI inference traffic through third-party cloud APIs indefinitely."
— AI infrastructure engineer, European cloud platformTogether, DFly and D-Cut address both the quality side (better draft tokens) and the systems side (smarter resource allocation) of the speculative decoding pipeline. The benchmarks reported — 1.98× to 2.40× speedup on HY3-295B-A21B with TP=8 — reflect this dual optimisation. Notably, as discussed in research on arXiv covering speculative decoding foundations, the quality of draft tokens is often the dominant factor in real-world speedup, making DFly's conditioning approach a technically well-motivated design choice.
Why Open Source AI Inference Matters for Digital Sovereignty and Data Privacy
For the European tech community, privacy professionals, and organisations navigating GDPR compliance, the significance of AngelSpec extends well beyond its benchmark numbers. The release sits at the intersection of two major trends reshaping enterprise technology strategy: the push for AI adoption and the legal and ethical imperative for data sovereignty.
Under GDPR, organisations processing personal data must ensure that data is not transferred to third countries without adequate protections. When a company routes queries through a US-based AI API, it is effectively transferring potentially sensitive data to a foreign cloud provider — a practice that has attracted increasing regulatory scrutiny since the Schrems II ruling invalidated the EU-US Privacy Shield. The practical consequence is that many European enterprises and public sector organisations are under mounting pressure to run AI workloads on infrastructure they control, whether on-premises or in European cloud environments.

The problem, historically, has been that self-hosted open-source models simply could not match the inference speed and capacity of hyperscaler cloud APIs. A company that internally deploys an open-source LLM has faced a painful trade-off: accept slower, more expensive inference or compromise on data privacy by sending queries to external APIs. Frameworks like AngelSpec — particularly when paired with performant open-source models — directly attack this trade-off. A 2× speed improvement is not incremental; in many enterprise scenarios, it is the difference between a solution that is viable in production and one that is not.
This dynamic is well understood by policymakers and technologists across Europe. The EU's AI Act, which entered into force and is being phased in progressively, encourages the use of open, auditable AI systems — particularly in high-risk contexts. Open-source inference frameworks like AngelSpec are inherently more auditable than black-box APIs, supporting the transparency requirements that regulators increasingly expect. As Wired has reported in its coverage of the open-source AI movement, the availability of well-engineered open tools is now a genuine strategic consideration for enterprise AI adoption, not just a niche developer preference.
How AngelSpec Compares to Other Open Source AI Inference Tools
AngelSpec is entering a competitive but still rapidly evolving space. Several other open-source inference optimisation frameworks have emerged over the past few years, each with different strengths and trade-offs.
| Framework | Primary Approach | Speculative Decoding | Architecture Coverage | Notable Strength |
|---|---|---|---|---|
| AngelSpec (Tencent) | Unified draft model training | Yes (block-parallel + MTP) | 6 architectures | Runtime-adaptive budgeting (D-Cut) |
| vLLM | Paged attention / continuous batching | Partial support | Broad | Production-grade serving infrastructure |
| Medusa | Multiple decoding heads | Yes | Selected models | Low additional memory overhead |
| Hugging Face TGI | Optimised transformer serving | Experimental | Very broad | Ecosystem integration and ease of deployment |
AngelSpec's particular niche is the training of draft models rather than purely the serving layer — it is designed to help teams build better speculative decoding systems for their specific model and hardware configuration, rather than being a drop-in serving solution. This positions it as a tool primarily for ML engineers and AI platform teams rather than end-users deploying pre-built solutions. For organisations that have already made the commitment to run large, capable models in-house, AngelSpec
Originally reported by MarkTechPost. Summarised and curated by European Purpose.