Software

DeepSeek releases DeepInfer inference engine under Apache 2.0 for V4.1-Flash

DeepSeek has published the production serving framework it uses internally, supporting only its V4.1-Flash model and running on both Nvidia and Huawei accelerators.

T
By TechQuire Daily Staff TechQuire Daily Staff
October 20, 2026 / 7 min read

DeepSeek has built its reputation less on flashy demonstrations than on the unglamorous plumbing that makes large models cheap to run, and on October 20, 2026 the Chinese lab pushed that strategy one step further. The company published DeepInfer, the in-house inference framework that serves its models in production, on GitHub under the Apache 2.0 licence, in a repository that supports exactly one model and exactly two hardware families. The single supported model is DeepSeek-V4.1-Flash. The two supported hardware families are Nvidia's SM100 data centre GPUs and Huawei's Ascend 950 NPUs.

Timing matters because inference, the step in which a trained model actually answers requests, has quietly become the dominant cost line for anyone running generative AI at scale. The same GPU can produce very different throughput and latency depending on how requests are batched, how context is cached and how the next token is generated. AI Times reported on October 20 that inference now determines service competitiveness as generative AI and agent workloads spread, and that DeepSeek framed the release as a way to share production deployment experience so developers and enterprises can raise throughput, cut latency and lower compute and energy costs across private and public cloud deployments.

DeepSeek did not arrive here overnight. It launched DeepSeek-V4.1-Flash in September 2026, and earlier in October it published tooling for Huawei chips positioned as an alternative to Nvidia's CUDA. DeepInfer is the third piece of that sequence, the serving layer that turns a checkpoint into a running service. The project was originally built primarily on vLLM, the widely used open-source serving engine, with additional inspiration from SGLang and Nvidia's TensorRT-LLM, according to the repository documentation published on October 20.

The release also arrived against a difficult political backdrop. The Next Web reported on October 20 that DeepInfer landed one day after the United States ordered civilian federal agencies to remove DeepSeek products from their systems. The effect, whatever the intent, was a company under regulatory pressure in one of the largest software markets shipping its most valuable operational code to anyone who wants to download it, including the cloud providers and competitors that had been weighing the risk of depending on DeepSeek's hosted API.

Key Facts

DeepInfer is not a research sample. The repository describes it as the high-performance inference framework that powers DeepSeek's large-scale production services, and the open-source release provides offline inference with the core features needed for serving at scale. The Next Web reported on October 20 that DeepSeek announced the release on X and published the code on GitHub under the Apache 2.0 licence, and that the repository had passed 8,000 stars by Tuesday afternoon. DeepSeek also shipped a companion tool called deepseek-recipe, which handles token encoding and decoding and is designed to match the logic of DeepSeek's official API so that self-hosted deployments behave like the hosted service.

The feature list is dense and specific. DeepInfer bundles optimised kernels plus model and sampler runtime, drawing on FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect and custom TileLang kernels. It supports parallelism through attention data parallelism, balanced context parallelism, and mixture-of-experts expert parallelism with load balancing, a design that matters because mixture-of-experts models route each query to only a subset of specialised sub-networks. It adds DSpark speculative decoding, which drafts several tokens ahead and verifies them in a single pass, controlled by an environment flag with a maximum draft length default of 5, plus SWA bounded replay, which keeps a bounded suffix of 140 tokens for V4.1 settings. Structured output is constrained to a regular expression, a JSON schema or an EBNF grammar, and batch-invariant inference and deterministic sampling are offered on Nvidia hardware only.

The performance figures are the eye-catching part, and they are DeepSeek's own. Crypto Briefing reported on October 20 that throughput reaches 155 trillion tokens per day per cluster, that the input cache hit rate sits at 96%, that average time-to-first-token comes in at around 400 milliseconds, and that generation speed runs at 230 tokens per second, rising to as much as 300 tokens per second for coding tasks. The repository states that benchmarks were measured on 4 SM100 GPUs for prefill and 64 SM100 GPUs for decode.

What the release leaves out is equally important. The GitHub page explicitly lists three components required for a complete inference service that are absent: a KV cache system, the disaggregation of prefill and decode across separate pools (though it says most required engine functionality is already implemented), and load balancing across data-parallel replicas for both prefill and decode. Prerequisites are Linux, GCC 13.0 or newer, Python 3.12, CUDA 13 for Nvidia and CANN 9.2 for Ascend, with builds driven by a shell script that takes an accelerator flag. The default checkpoint is DeepSeek-V4.1-Flash-1017 from Hugging Face.

Analysis

Open-sourcing a model has become routine. Open-sourcing the serving stack has not, and that distinction is the real story here. What this really means is that DeepSeek has decided its advantage no longer lives in secret weights or in guarded serving tricks, but in the price of compute and the number of hardware suppliers it can lean on. Shipping a framework in which Huawei's Ascend 950 NPUs sit beside Nvidia's SM100 GPUs in an official, first-party release is a statement of hardware neutrality, and it is one that Nvidia's software ecosystem has spent years discouraging.

The numbers deserve caution rather than celebration. AI Times reported on October 20 that open-sourcing does not by itself guarantee cost or speed gains, because real performance depends on GPU configuration, model size, request patterns, batch size, network and storage, and it noted that the repository only guarantees reproducing its benchmarks on a specific hardware setup. Adopting enterprises will have to validate DeepInfer in their own environments before trusting the 155 trillion tokens per day or the 400 millisecond time-to-first-token figure. The Next Web reported on October 20 that there is no independent benchmarking of DeepInfer's gains yet, which leaves every published number as a vendor claim.

Scope is the other constraint. DeepInfer supports DeepSeek-V4.1-Flash and nothing else, its primary target is offline inference with an emphasis on high throughput, and the missing KV cache and disaggregation pieces mean it is a component rather than a finished product. Teams building latency-sensitive real-time services should evaluate carefully before switching. Still, the direction of travel is clear: the vLLM project thanked DeepSeek for crediting the open-source community and said it would keep improving its own V4.1-Flash support with ideas from DeepInfer, which means the techniques will diffuse well beyond DeepSeek's own user base.

Why It Matters

The economics of inference are the economics of the entire AI industry at this point. A framework that reaches a 96% input cache hit rate and holds generation at 230 tokens per second changes the cost curve for any company serving DeepSeek models, whether from a public cloud or from its own racks. Firms that already run these models on their own servers now have access to the same methods DeepSeek uses internally, an unusual concession from a lab that, like most of its peers, normally guards such techniques closely.

There is a geopolitical layer as well. A Chinese lab publishing production-grade software that treats a Chinese NPU as a first-class target alongside Nvidia hardware gives buyers an alternative path at a moment when export controls and procurement rules are reshaping which accelerators are even an option. And for the open-source serving community, DeepInfer is a detailed look at how a frontier lab actually runs mixture-of-experts models at scale, complete with the parts it chose to leave out.

Next Up

The immediate test is independent measurement. Expect cloud providers, hosting companies and inference startups to reproduce, or fail to reproduce, DeepSeek's figures on their own clusters in the coming weeks, and expect the missing KV cache, prefill and decode disaggregation and cross-replica load balancing to appear as either community contributions or DeepSeek follow-up releases.

Longer term, watch whether DeepInfer stays a single-model project or becomes a general serving stack. Much depends on how quickly vLLM folds the ideas into its own V4.1-Flash support, and on whether Ascend 950 deployments show up in public benchmarks rather than only in DeepSeek's own tables.

Tagged

Comments (0)

No comments yet. Be the first to share your thoughts.