DeepSeek open-sources DeepInfer, the inference engine behind its own service
DeepSeek has released DeepInfer, the inference engine behind its V4.1 Flash service, under the Apache 2.0 license. It runs on NVIDIA Blackwell and Huawei Ascend hardware; the KV cache and load-balancing pieces are not part of this release.
DeepSeek open-sourced DeepInfer, the inference engine that runs its own AI service, on October 20, 2026. An inference engine is the software layer that runs a trained model on GPUs so it can answer user requests; it largely decides how fast and how cheaply a model can be served. DeepInfer is the engine behind the system that serves DeepSeek-V4.1-Flash in DeepSeek's own API and app. The code is licensed under Apache 2.0. Alongside it, DeepSeek released deepseek-recipe under the MIT license, a component that converts requests in different API formats into the token sequences the model processes; the goal is for V4.1 Flash services run by other providers to behave exactly like DeepSeek's own API.
What DeepInfer includes
According to the project page, DeepInfer brings together kernel libraries DeepSeek had previously released one by one, such as FlashMLA, DeepGEMM and DeepEP, plus custom kernels written in TileLang, in a single engine. It includes expert parallelism, which spreads the mixture-of-experts (MoE) layers across GPUs, and a mechanism that balances the experts' load between cards. Its speculative decoding (DSpark) drafts five tokens per step and uses a confidence estimate to choose which drafts are worth verifying; DeepSeek's document says this selective verification raises throughput by 4 to 7 percent at the load level used in production. A method that recomputes only the last 128 tokens when rebuilding the sliding-window attention cache roughly halves the prefill computation. It also offers deterministic sampling, which returns the same output for the same input every time, and structured outputs constrained by a JSON schema or a regular expression; the deterministic mode currently works only on NVIDIA GPUs. DeepSeek says the engine was originally built largely on the open-source vLLM, with inspiration from SGLang and TensorRT-LLM.
Which hardware it runs on
This release supports two hardware families: NVIDIA's Blackwell-generation data center GPUs (SM100) and Huawei's Ascend 950 AI accelerators. It requires Linux, Python 3.12, and CUDA 13 on NVIDIA or CANN 9.2 on Huawei. The only supported model for now is DeepSeek-V4.1-Flash; DeepSeek says inference code for its future models will also be added to DeepInfer. The document states that the system was designed from the start to run on accelerators from more than one vendor. Since US export controls limit Chinese data centers' access to NVIDIA's newest GPUs, the ability to run the same service on Huawei hardware carries extra weight for Chinese providers.
What this release leaves out
The released code covers what is needed for batch (offline) inference. Three pieces needed for a multi-user online service are missing: the KV cache system, the setup that splits prefill and decode onto separate machines, and load balancing across replicas. DeepSeek says these components are tightly coupled to its internal infrastructure and that it describes their design in a blog post and in the Q&A document in the repository. The scale in that document also shows who the engine is for: the smallest efficient deployment is 128 GPUs, 64 for prefill and 64 for decode. DeepSeek keeps the KV cache for more than 72 hours on a separate storage cluster; according to the document, about 14.4 TB of logical cache space is allocated per online GPU. The published speed tests were run on 4 Blackwell GPUs for prefill and 64 for decode.
The revenue figure DeepSeek disclosed
In the document published with the announcement, DeepSeek writes that a single cluster of its V4.1 Flash service currently processes 155 trillion tokens per day and brings in US$38 per GPU-hour, calculated at the prices charged during its lowest-tariff hours. It is rare for an AI company to disclose per-GPU revenue for its inference service. Because hourly rental rates for high-end data center GPUs sit well below that figure, the number suggests that even a low-priced model can be served at a high margin. DeepSeek did not disclose how many GPUs of which type run in the cluster, whether they are rented, or its energy and storage costs, so an exact margin cannot be calculated.
The token volume, revenue and speed figures all come from DeepSeek and have not been independently audited. Calculating revenue at lowest-tariff prices and using a single cluster as the example may paint a different picture from an average day. The released engine is a strong starting point for cloud providers and research teams running large GPU clusters; it is of no direct use today to people who want to run a model on a single server or their own computer, and the missing cache and load-balancing pieces have to be rebuilt with substantial engineering effort. It is worth watching measurements from independent deployments to see whether other providers reach the efficiency DeepSeek reports.