DeepSeek open-sources DeepInfer, the engine behind its own API

DeepSeek has open-sourced DeepInfer, the high-performance inference framework that powers its large-scale production services, under Apache 2.0, for offline inference of DeepSeek-V4.1-Flash, including its 1017 checkpoint, on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs.

DeepSeek has made a habit of opening the parts of its stack that other labs keep private, and on October 20 it opened one of the most consequential pieces yet. DeepInfer, described by DeepSeek as the high-performance inference framework that powers its large-scale production services, is now available as open source under the Apache 2.0 licence, with a public repository under the deepseek-ai organisation. The release provides offline inference with the core features needed for serving at scale, and its initial supported model is DeepSeek-V4.1-Flash, with the DeepSeek-V4.1-Flash-1017 checkpoint, released on October 17, as the default. That pairing matters: the checkpoint is the minor update to V4.1-Flash that has run DeepSeek's web, app and API services, and DeepInfer is the code that sits between those weights and a working API.

What is in the box is production-grade engine work, and what is left out is just as telling. DeepInfer is built mainly on vLLM, with ideas taken from SGLang and NVIDIA's TensorRT-LLM, and it includes optimised kernels, attention data parallelism, mixture-of-experts expert parallelism, DSpark draft-token decoding, structured outputs and deterministic sampling, among other features. It runs on two hardware families only, NVIDIA SM100 data-centre Blackwell GPUs with CUDA 13 and Huawei Ascend 950 NPUs with CANN 9.2, and it needs Linux, GCC 13 or newer and Python 3.12. What it does not include, DeepSeek says explicitly, is the KV cache system and load balancing components of a complete serving platform, which remain tightly coupled to its internal infrastructure, along with full prefill and decode disaggregation.

That limitation is the honest headline for anyone thinking of running DeepInfer themselves. The code costs nothing, but running it efficiently is a data-centre job: DeepSeek's own reference figures describe prefill on ordinary 8-GPU machines and decode on 64 to 128-GPU supernodes, with an efficient minimum around 128 GPUs in its deployment guidance. For most developers, DeepInfer will therefore matter less as something to run tomorrow and more as a reference implementation: future DeepSeek models will ship their inference code in the same repository, so engine vendors and cloud providers that want day-one support will have working code to follow instead of a paper to interpret. Open models, open kernels, open inference, as DeepSeek put it in its announcement, is a slogan, but this release gives it a concrete meaning that other labs will now have to answer.

Read the original · github.com

Share