DeepInfer is the open-source version of DeepSeek-AI's internal production inference engine, actually used by DeepSeek's large-scale online inference services. It released its first runnable version alongside the official announcement on October 20, 2026, under the Apache-2.0 license, completely free and self-hostable. The official acknowledgments state that it was initially built primarily on top of vLLM and drew on SGLang and TensorRT-LLM, making it a deep customization rather than a from-scratch development.
In terms of purpose, DeepInfer targets teams that need to run DeepSeek large models with production-grade throughput and latency, rather than being a general-purpose multi-model inference gateway. The current version focuses on offline inference and includes core capabilities that support large-scale deployment.
Main capabilities include: integration of FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect, and self-developed TileLang operators; support for Attention data parallelism (DP)/balanced context parallelism (CP), MoE expert parallelism (EP), and EPLB load balancing; DSpark confidence-scheduled speculative decoding (enabled via DEEPINFER_ENABLE_MTP_VARLEN=1, with DEEPINFER_USE_NEXTN_DECODE controlling the maximum draft length, default 5); Decoder SWA bounded replay, replaying only a bounded suffix to reduce prefill workload; asynchronous scheduling enabled by default, overlapping CPU batch scheduling with device execution; batch-invariant inference and deterministic sampling (enabled on NVIDIA platforms via DEEPINFER_BATCH_INVARIANT=1), where the same input and sampling parameters reproduce completely identical outputs; structured output, which can constrain generation to regex, JSON Schema, or EBNF grammars, passed via so_args in SamplingParams.
In terms of usage, the basic environment requires Linux, GCC ≥ 13.0, and Python 3.12; NVIDIA requires CUDA 13, and Ascend requires CANN 9.2. To build, first create and activate an empty Python 3.12 environment, set export DEEPINFER_ACCELERATOR=nvidia (use ascend for Ascend), and then run ./build.sh. To use local weights, set DEEPINFER_HF_MODEL_DIR=/path/to/DeepSeek-V4.1-Flash-1017. Runnable examples for structured output, DSpark, SWA replay, etc. are available in the examples/ directory. The official benchmarks were measured on 4 SM100 GPUs (prefill) and 64 SM100 GPUs (decode, within the same scale-up domain); the reproduction script is at examples/sweep/run_sweep.sh, and the evaluation benchmark is described in the repository's eval/README.md.
Applicable scenarios include: teams that want to self-host DeepSeek-V4.1-Flash with production-grade throughput/latency; developers researching large model inference engines, MoE parallelism, speculative decoding, and TileLang operators; and scenarios with NVIDIA Blackwell or Huawei Ascend 950 hardware resources.
In terms of limitations, the current release is the initial offline inference version and does not yet include a complete KV cache system, VE/Prefill/Decode disaggregation, or load balancing across data-parallel replicas; it supports only one model, DeepSeek-V4.1-Flash; hardware support is limited to SM100 and Ascend 950, so ordinary consumer-grade GPUs cannot run it for now. The community still lacks cross-hardware comparative evaluations, and performance figures are based on official claims. The project is still early in maturity, but the repository is active and issues are responded to quickly, and future versions may fill in the above capabilities.