DeepInfer Explained: DeepSeek's Open-Source Inference Engine
DeepSeek's in-house production inference framework, open-sourced Oct 20, 2026: runs V4.1-Flash, on NVIDIA SM100 and Huawei Ascend 950, Apache 2.0.
What DeepInfer Is, in 150 Seconds
Where the Speed Comes From
Hardware and Environment: Not Built for Your Desktop
The Official Performance Numbers (With a Caveat)
Getting Started: Build From Source to First Offline Run
Who It's For — and Who Should Skip It
Sources & Disclaimer
DeepInfer vs Popular Inference Frameworks
| Dimension | DeepInfer | vLLM | SGLang | TensorRT-LLM |
|---|---|---|---|---|
| Positioning & base | DeepSeek's production stack, open-sourced; officially built primarily on vLLM | Community-standard general inference engine (PagedAttention) | Berkeley open source, RadixAttention, strong prefix caching | Official NVIDIA stack, deeply optimized for its own GPUs |
| Models in first release | DeepSeek-V4.1-Flash only | Broad Hugging Face ecosystem coverage | Mainstream open models | Mainstream open models (NVIDIA GPUs) |
| License | Apache 2.0 | Apache 2.0 | Apache 2.0 | Apache 2.0 |
| Hardware support | NVIDIA SM100 + Huawei Ascend 950 (per README) | NVIDIA CUDA first, community AMD / domestic-chip ports | Primarily NVIDIA | NVIDIA GPUs only |
| Structured output | Yes (regex / JSON schema / EBNF grammar) | Yes (JSON / regex / grammar-guided) | Yes | Yes |
| Online serving | Offline inference only in v1; no KV cache, no prefill/decode disaggregation, no load balancing | Full online serving | Full online serving | Full online serving |
| Best for | Studying DeepSeek's production stack, Ascend 950 deployments | General self-hosted inference | Multi-turn chat / prefix-reuse workloads | Deep tuning inside the NVIDIA ecosystem |
Frequently Asked Questions
How is DeepInfer related to vLLM? Will it replace it?
The README states DeepInfer was "originally built primarily on vLLM", with ideas from SGLang and TensorRT-LLM. Think of it as DeepSeek's deeply customized fork for its own production workload — the first release supports only its own model, so it won't replace general-purpose vLLM. For general inference serving, vLLM remains the safer pick.
Can I run DeepInfer on an RTX 4090 or other consumer GPUs?
No. Officially supported hardware is limited to NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs — both data-center hardware. Consumer cards are not on the list, and the project is designed for production clusters anyway.
Does DeepInfer currently only support DeepSeek's own models?
Yes. The README's supported-models list contains only DeepSeek-V4.1-Flash. DeepSeek says inference code for future models will land in the same repository, but for now it is a V4.1-Flash engine.
Can I serve a public API with DeepInfer out of the box?
Not yet. The first release does offline inference only; the README explicitly lists what a complete online service still needs: a KV cache system, prefill/decode disaggregation, and load balancing across data-parallel replicas. It fits research and offline batch workloads.
What is deepseek-recipe, released alongside DeepInfer?
DeepInfer is the inference engine (it runs the model); deepseek-recipe is DeepSeek's production tokenization component, keeping a self-hosted service's tokenization behavior consistent with the official API. Together they reproduce DeepSeek's full production pipeline.
Is DeepInfer OK for commercial use? What about the model weights?
The framework code is Apache 2.0 — commercial use, modification and redistribution are allowed. Model weights are separate: the default deepseek-ai/DeepSeek-V4.1-Flash-1017 checkpoint carries its own license on Hugging Face, so check the license field on the repo page before using it.