DeepSeek DeepInfer: Open-Source Inference Engine

What happened on October 20

On Tuesday, October 20, 2026, DeepSeek published DeepInfer on GitHub, describing it as "the high-performance inference framework that powers DeepSeek's large-scale production services." The code is released under the permissive Apache 2.0 license, which anyone can use, modify, and sell. Within about a day the repository had gathered more than 14,000 stars, and the announcement drew thousands of upvotes and hundreds of comments on Hacker News — one of the biggest open-source infrastructure drops of the year.

If you are new to the term: an inference engine is the software that serves an already-trained model to users. It splits the model across chips, batches incoming requests, and generates tokens quickly and cheaply. After training, inference is where most of the cost of running AI lives — and DeepSeek's famously low API prices have always rested on how well it does this part. DeepInfer is the first time the lab has shown the whole engine rather than individual components.

Why DeepInfer is trending now

Three things make the timing explosive. First, this is a reversal: in a note in April 2025, DeepSeek said it had considered releasing its full inference engine but decided against it, because the code was a heavily customized early fork of vLLM, was "tightly coupled" with its internal cluster tools, and its small team lacked the bandwidth to maintain a large open-source project. Eighteen months later, it changed its mind — the README still credits vLLM as the base it was "originally built primarily on," with inspiration from SGLang and TensorRT-LLM.

Second, the release landed a day after the U.S. Department of Homeland Security ordered federal civilian agencies to remove DeepSeek products from their systems. A Hangzhou lab giving away the exact kind of production-serving code that OpenAI and Anthropic keep locked inside their own data centers, the day after a U.S. government crackdown, is hard to read as coincidence.

Third, the community velocity is real. On X, DeepSeek wrote: "We're sharing our production stack to help the community lower compute costs, reduce energy use, and make AI more affordable." The post passed thousands of likes within hours, and the repository became one of the fastest-starred AI projects of the month.

What DeepInfer actually is

The first release is deliberately narrow: it runs a single model, DeepSeek-V4.1-Flash, in offline inference mode. Under the hood, the feature list reads like DeepSeek's recent systems research made operational:

  • Optimized kernels drawn from its earlier open-source libraries — FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect — plus custom TileLang kernels.
  • Parallelism across attention and mixture-of-experts layers for multi-chip deployments (Attention DP with balanced CP, MoE expert-parallel with EPLB).
  • DSpark speculative decoding: a draft model proposes tokens (default maximum draft length of 5) and confidence estimates schedule verification, cutting verified draft tokens by roughly 30%.
  • SWA bounded replay, which reduces decoder prefill work by replaying only a bounded suffix of tokens.
  • Asynchronous scheduling that overlaps CPU batch scheduling with device execution, enabled by default.
  • Batch-invariant inference and deterministic sampling for reproducible results (NVIDIA only).
  • Structured outputs constrained by regex, JSON schema, or EBNF grammar.

Requirements are data-center grade: Linux, GCC 13 or higher, Python 3.12, CUDA 13 for NVIDIA, CANN 9.2 for Ascend. DeepSeek's own benchmark charts show prefill throughput versus latency on 4 SM100 GPUs and decode throughput versus per-user speed on 64 GPUs.


 

Source: DeepSeek (deepseek-ai/DeepInfer on GitHub).


What is not included — and DeepSeek's own numbers

DeepSeek also published its production figures: a single cluster serving 155 trillion tokens per day, a 96% input cache hit rate, average time-to-first-token around 400 milliseconds, and 230 tokens per second (up to 300 for coding). These are DeepSeek's own claims and have not been independently verified — treat them as a signal of the scale this software is built for, not as a benchmark you can reproduce on your own hardware. The release is honest about its gaps: three pieces of a complete inference service are missing — a KV cache system, VE/prefill/decode disaggregation, and load balancing across data-parallel replicas. DeepSeek says these are tightly coupled to its internal infrastructure; a technical post the company published on Zhihu describes how they work, and the README notes that most of the engine work for disaggregation is already in place. If you want to understand the engine DeepInfer grew out of, our 30-minute vLLM serving tutorial and our comparison of vLLM with Ollama, llama.cpp, and SGLang are good starting points.



Source: DeepSeek (deepseek-ai/DeepInfer on GitHub).


The Huawei Ascend twist

The most strategically interesting line in the README is the hardware list: NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. DeepSeek brought its TileLang kernel programming language to Huawei chips in late September with the chipmaker's help, has said it plans to pre-train on Huawei silicon by the end of 2026, and Bloomberg reported in September that it plans to deploy at least 160,000 Ascend 950DT accelerators at a new data center in Inner Mongolia. DeepInfer is effectively the first first-party production endorsement of Huawei's AI chips from a frontier lab — a milestone for China's domestic compute stack as much as for open-source inference.

Alongside DeepInfer, DeepSeek also released deepseek-recipe, an MIT-licensed token encoding and decoding component that matches how DeepSeek's official API converts text to tokens and back — the last mile needed to reproduce the service's behavior locally.

What to watch next

Four open questions will decide how far DeepInfer goes. First, will DeepSeek ever release the missing KV cache and load-balancing code, or keep the hardest parts proprietary? Second, will the community port DeepInfer beyond its single model and two chip families — AMD support is the obvious ask. Third, will managed inference providers like Fireworks, Together, and Groq feel pricing pressure now that a frontier serving stack is free? And fourth, does the Ascend support mark the moment Huawei's AI chips become a serious second target for open-source inference? DeepSeek says inference code for future models will land in the same repository, so this story is just getting started.


Source: DeepSeek (deepseek-ai/DeepInfer on GitHub).


Comments

Popular posts from this blog

Open-Source AI Weekly: Bonsai, GigaChat 4 Lead

Claude Claims Proof of Riemann Hypothesis After 167 Years

How to Build an AI Agent with LangGraph in 30 Minutes