DeepSeek Open-Sourced Its Inference Engine
DeepSeek just open-sourced DeepInfer, the high-performance inference framework that powers its large-scale production services. The repo is on GitHub under Apache 2.0, already at 5'300+ stars and climbing [1].
This is not a toy demo. It is the actual engine DeepSeek runs in production, optimized for their DeepSeek-V4.1-Flash model. The release includes offline inference with the core features needed for serving at scale [1].
What Is In There
The feature list reads like a checklist of everything a serious inference deployment needs [1]:
Optimized kernels: FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect, and custom TileLang kernels. These are the same kernels DeepSeek uses internally, not simplified reference implementations.
Parallelism: Attention data parallelism with balanced context parallelism, and Mixture-of-Experts expert parallelism with expert-and-load balancing (EPLB). MoE models are hard to serve because different experts get different traffic. DeepInfer handles this with built-in load balancing.
DSpark and confidence-scheduled verification: Accelerates decoding with draft tokens and uses confidence estimates to schedule verification. This is speculative decoding done at production scale.
Asynchronous scheduling: Overlaps CPU batch scheduling with device execution, enabled by default. Zero-overhead batch scheduler means the CPU does not become a bottleneck while the GPU works.
Deterministic sampling: Produces identical outputs for identical input tokens and sampling parameters. This matters for testing, debugging, and reproducibility. You enable it with environment flags and a fixed sequence seed [1].
Structured outputs: Constrain generation to a regex, JSON schema, or EBNF grammar. Pass the schema through so_args in SamplingParams. This is the kind of feature that production apps need for tool use and API calls [1].
What Is Not In There
The release explicitly lists what you would still need to build a complete inference service [1]:
- A KV cache system
- Prefill and decode disaggregation (most engine functionality is implemented, but not the full disaggregated serving setup)
- Load balancing across data-parallel replicas for both prefill and decode
This is offline inference only. If you want to serve it online, you need to wrap it with your own scheduling and caching layer. DeepSeek is giving you the engine, not the car.
Hardware Support
Two platforms are supported [1]:
- NVIDIA SM100 GPUs (CUDA 13)
- Huawei Ascend 950 NPUs (CANN 9.2)
The NVIDIA path is expected. The Ascend path is interesting. DeepSeek has been vocal about reducing dependence on US-export-restricted hardware, and shipping Ascend support in the same release as NVIDIA sends a clear message. The build system lets you switch with export DEEPINFER_ACCELERATOR=ascend [1].
Context: DeepSeek Banned from US Federal Agencies
The timing is pointed. On October 19, Reuters reported that the US DHS banned DeepSeek from federal civilian agency IT systems under a new order [2]. DeepSeek open-sourcing its inference engine the same week reads as a response to the pressure: you can restrict our services, but the code is now public and anyone can run it themselves.
Whether that is the intended message or just coincidence, the practical effect is the same. The inference engine that powered DeepSeek's services is now in the open. Anyone with SM100 GPUs or Ascend NPUs can build on it [1].
Why This Matters
Open-sourcing inference infrastructure is different from open-sourcing model weights. Weights are the product. The inference engine is the factory. DeepSeek is showing how the factory works, which is arguably more valuable for the open source community than another set of weights. The optimized kernels, the MoE load balancing, the deterministic sampling, these are engineering solutions that other teams can learn from and build on [1].
The fact that it ships with Ascend support alongside NVIDIA also pushes the ecosystem toward hardware diversity at a time when US export controls are making NVIDIA GPUs harder to obtain for Chinese and other restricted markets [2].