DeepSeek has put DeepInfer, the inference framework that runs its own large-scale production services, on GitHub under the Apache 2.0 licence. The release covers offline inference (running the model directly from a script, not as a live API server) and currently supports one model: DeepSeek-V4.1-Flash. The default checkpoint downloads from Hugging Face on first run.
The feature list is aimed at serious serving. There are optimised kernels (FlashMLA, DeepGEMM, DeepEP and others), parallelism options for attention and mixture-of-experts layers, speculative decoding with draft tokens and confidence-based verification, an asynchronous batch scheduler that is on by default, and structured outputs constrained by regex, JSON schema or EBNF grammar. On NVIDIA hardware you can also turn on batch-invariant inference and deterministic sampling, so the same input and sampling settings give the same output. Supported hardware is NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. You need Linux, GCC 13+, Python 3.12, and CUDA 13 or CANN 9.2.
DeepSeek is upfront that this isn't the whole picture. A KV cache system, prefill/decode disaggregation and load balancing across replicas are all needed for a complete service and are not included. The repo also credits vLLM as the original base, with ideas from SGLang and TensorRT-LLM.
My take
Let's be honest about who can run this. The benchmarks in the repo use 4 SM100 GPUs for prefill and 64 for decode. That's not a side project budget anywhere, and from Nigeria, getting that kind of hardware is a different conversation entirely. For most builders reading this, DeepInfer is something to learn from, not something to deploy. You'll keep calling DeepSeek through an API or a hosted provider.
That said, I like this release a lot. It's rare for a lab to show the engine it actually runs in production, and the README is plain about what's missing instead of pretending it's turnkey. If you work on inference at a company or a GPU cloud, the configuration notes alone are useful: things like the bounded replay setting, where the retained suffix has to cover the sliding window plus the maximum backtracking length, are exactly the kind of detail that usually lives only inside a team.
The part I care about most as an app builder is deterministic sampling and batch-invariant inference. If you've ever tried to write tests around an LLM and watched the output change between runs because your request got batched with someone else's, you know why this matters. It's NVIDIA-only for now, and you have to turn off the draft-token speedup to get full determinism, so there's a real speed-versus-reproducibility trade-off. Still, seeing it treated as a first-class feature should push hosted providers to offer it too.
The Huawei Ascend support is also worth noticing. Inference stacks have mostly assumed NVIDIA, and a production-grade option for another vendor's chips gives more choice to providers in regions where NVIDIA hardware is hard to get.
My suggestion: if you just want to run open models, stick with vLLM or SGLang, which support far more models and give you a full server. If you're curious how large-scale inference really works, read this repo's README and examples, because that's where the value is today.
Sources
Drafted with AI assistance from the sources above, and reviewed before publishing.
Comments
What do you think? Drop your thoughts below.
Loading comments…