deepseek-ai/DeepInfer

DeepInfer is the inference framework that powers DeepSeek's large-scale online services. This open-source release covers the offline inference component, currently supporting DeepSeek-V4.1-Flash on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs (aarch64 hosts). It integrates proprietary operators such as FlashMLA, DeepGEMM, and DeepEP, supporting attention data parallelism, MoE expert parallelism with load balancing, draft token accelerated decoding, batch-invariant inference, deterministic sampling, and output constrained by regex, JSON Schema, or EBNF. The update on 11 28 added optimizations for Ascend 950DT, including fused attention, FP8 output, batch-invariant inference, and deterministic sampling. Decoding performance on SM100 also improved, and benchmark curves for both hardware types were refreshed.

DeepInfer is the inference framework that powers DeepSeek's large-scale online services. This open-source release covers the offline inference component, currently supporting DeepSeek-V4.1-Flash on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs (aarch64 hosts). It integrates proprietary operators such as FlashMLA, DeepGEMM, and DeepEP, supporting attention data parallelism, MoE expert parallelism with load balancing, draft token accelerated decoding, batch-invariant inference, deterministic sampling, and output constrained by regex, JSON Schema, or EBNF. The update on 11 28 added optimizations for Ascend 950DT, including fused attention, FP8 output, batch-invariant inference, and deterministic sampling. Decoding performance on SM100 also improved, and benchmark curves for both hardware types were refreshed.

Why It Matters This is the engine used by DeepSeek for its own online services; the latest update adds a full suite of optimizations for Ascend NPUs, providing an official reference for deploying on domestic chips.

Stars 26938 (+134 / 24h)

Reasons

  • 134 new stars in 24 hours, total stars 26938 (indicating attention only); Apache-2.0 license, official deepseek-ai repository
  • The README states it was initially built primarily on vLLM, with references to SGLang and TensorRT-LLM

Usage

  • Linux + Python 3.12, GCC 13 or higher; NVIDIA requires CUDA 13.2 or higher, Ascend requires CANN 9.3. Set DEEPINFER_ACCELERATOR, run ./build.sh, then run offline inference with python examples/offline_inference.py (the first run will download DeepSeek-V4.1-Flash-1017 weights from Hugging Face)

Risks

  • The complete online service still lacks a KV cache system, prefill/decode separation, and multi-replica load balancing, which are not included in this open-source release
  • Official benchmarks use 4 cards for prefill and 64 cards for decode, making it largely unrunnable for individual users and small teams; performance curves are self-tested by the official team

Open

Trendshift(GitHub Trending 快照)

Explore the latest AI Radar updates