SuperAPIAI Directory

More Info

github.com · AI developer platforms

DeepInfer is a high-performance inference framework open-sourced by DeepSeek-AI on October 20, 2026 under the Apache-2.0 license, and is the same engine that powers DeepSeek's large-scale production services. It is deeply customized based on vLLM, integrates operator stacks such as FlashMLA, DeepGEMM, DeepEP, and TileLang, and supports production-grade features including DSpark confidence-scheduled speculative decoding, SWA bounded replay, asynchronous scheduling, batch-invariant inference/deterministic sampling, and structured output. The current version is mainly aimed at offline inference, supports only the DeepSeek-V4.1-Flash model, and requires NVIDIA SM100 (Blackwell) GPUs or Huawei Ascend 950 NPUs as hardware; consumer-grade graphics cards are not yet supported. The framework is suitable for teams that want to self-host DeepSeek models with production-grade throughput and latency, as well as engineers researching inference engines, MoE parallelism, speculative decoding, and TileLang kernels.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

DeepInfer is the open-source version of DeepSeek-AI's internal production inference engine, released on October 20, 2026 under the Apache-2.0 license. According to the official description, this engine powers all of DeepSeek's large-scale online inference services, including the high-throughput, low-latency serving of DeepSeek-V4.1-Flash.

Purpose and Positioning DeepInfer is aimed at teams that want to run DeepSeek models with production-grade throughput and latency; it is not a general-purpose multi-model serving gateway. The official acknowledgments state that it is "built primarily on vLLM" and was inspired by SGLang and TensorRT-LLM; it is a deeply customized vLLM production engine rather than a from-scratch build.

Key Capabilities

  • Optimized kernels and runtime: model and sampler runtime integrating FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect, and custom TileLang kernels.
  • Parallelism strategies: support for Attention DP / balanced CP, as well as MoE EP + EPLB load balancing.
  • DSpark confidence-scheduled speculative decoding: accelerates decoding via draft tokens and schedules verification by confidence (environment variable DEEPINFER_ENABLE_MTP_VARLEN=1; DEEPINFER_USE_NEXTN_DECODE sets the maximum draft length, default 5).
  • Decoder SWA bounded replay: replays only a bounded suffix to reduce decoder prefill work.
  • Asynchronous scheduling: overlaps CPU batch scheduling with device execution (zero-overhead batch scheduler, enabled by default).
  • Batch-invariant inference/deterministic sampling: the same input and sampling parameters reproduce the same output (NVIDIA only, DEEPINFER_BATCH_INVARIANT=1).
  • Structured output: constrains generation to regular expressions, JSON schema, or EBNF grammar via so_args in SamplingParams.

Hardware and Environment Supported hardware: NVIDIA SM100 (Blackwell) GPUs; Huawei Ascend 950 NPUs. Base environment (Linux): GCC ≥ 13.0, Python 3.12, CUDA 13 (NVIDIA) / CANN 9.2 (Ascend).

Usage Build: create and activate an emptyPython 3.12 environment, set export DEEPINFER_ACCELERATOR=nvidia (or ascend), then run ./build.sh. Using a local checkpoint: DEEPINFER_HF_MODEL_DIR=/path/to/DeepSeek-V4.1-Flash-1017. Runnable examples for structured output, DSpark, and SWA replay are located in the examples/ directory. Official benchmarks are measured on 4 SM100 GPUs (prefill) and 64 SM100 GPUs (decode, within the same scale-up domain), presented as throughput-latency Pareto curves, and can be reproduced via examples/sweep/run_sweep.sh. For evaluation benchmarks, see eval/README.md.

Applicable scenarios Suitable for teams self-hosting DeepSeek-V4.1-Flash at production scale; engineers researching inference engines, MoE parallelism, speculative decoding, and TileLang kernels; and deployment environments with NVIDIA Blackwell or Huawei Ascend 950 hardware.

Limitations The current version is the first offline inference release; the official README states that a KV cache system is not yet included; VE / Prefill / Decode disaggregation is not packaged (most of the required engine functionality is said to be implemented but not released in this version); load balancing across data-parallel replicas for prefill and decode is not provided. Only the DeepSeek-V4.1-Flash model is supported, only SM100 / Ascend 950 hardware is supported, and ordinary consumer-grade GPUs are not yet supported. Due to the limited hardware support scope, broad multi-hardware comparisons remain limited, and benchmark data should be regarded as vendor-reported. The repository is active, and the above gaps may be filled in subsequent versions.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools