DeepInfer exposes the core of DeepSeek’s large-scale inference engine for offline use. It targets SM100 GPUs or Ascend 950 NPUs, not a typical laptop, and is not a complete hosted service.
FOR:Infrastructure engineers evaluating self-hosted DeepSeek inferenceThe scope of the open-source release
The official README describes DeepInfer as the inference framework behind DeepSeek’s large-scale production services. The public release provides offline inference with optimized kernels, model/sampler runtime, parallelism, asynchronous scheduling and structured outputs. The reviewed model list contains DeepSeek-V4.1-Flash.
Production use inside DeepSeek and the public package’s scope are different facts. The README explicitly excludes a KV cache system, complete VE/Prefill/Decode disaggregation and load balancing across data-parallel prefill/decode replicas. A working offline example is not a complete API service.
Check the hardware before installing
Supported devices are NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. The prerequisites are Linux, GCC 13 or newer, Python 3.12, plus CUDA 13 for NVIDIA or CANN 9.2 for Ascend. These requirements do not describe ordinary consumer GPUs or Apple Silicon.
In an empty Python 3.12 environment, select the accelerator and run the source build, then the offline example. The default checkpoint is DeepSeek-V4.1-Flash-1017 and is downloaded into the Hugging Face cache on first use. Check model storage, memory and cluster capacity before starting a download.
git clone https://github.com/deepseek-ai/DeepInfer.git
cd DeepInfer
export DEEPINFER_ACCELERATOR=nvidia
./build.sh
python examples/offline_inference.pyDeepInfer, DeepJIT and the kernel libraries
DeepInfer handles model execution and scheduling. DeepGEMM supplies matrix kernels, DeepEP expert-parallel communication, FlashMLA attention, TileKernels common operators and DeepSelect TopK selection. TileLang is used to write kernels. These components occupy different layers, so one project does not replace all the others.
DeepJIT is a separate header-only C++20 runtime for compiling, caching, loading and launching kernels on CUDA or Ascend. Its November 5 commit adds Ascend AICPU JIT support. It is for extension and kernel-library authors; it does not turn an unsupported GPU into supported DeepInfer hardware. Its README still labels a direct Python compilation API and historical cache warmup as work in progress.
How to evaluate it without misleading benchmarks
The repository publishes prefill and decode benchmarks under stated device counts and scale-up conditions, with a reproduction script. Those results are not laptop performance or a guarantee for a different cluster. Record hardware, precision, sequence lengths, concurrency and parallelism when comparing.
First verify a small offline workload, output quality and memory use. Only then plan the missing serving components and total operating cost. DeepInfer uses Apache 2.0; DeepJIT uses MIT. This guide reviews repository evidence and does not claim to have run either hardware stack.
Sources
Start with the original documents. Models and prices change; check official pages before use.
01DeepInfer · official repository02Reviewed DeepInfer README · a679bb803DeepJIT · reviewed README