DeepInfer
Open-source high-performance inference framework for DeepSeek models, providing offline inference on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs.
At a Glance
Self-hosted offline inference framework released under the Apache License 2.0; no-charge, royalty-free license. Release excludes KV cache system, prefill/decode disaggregation and load balancing needed for a complete inference service.
Engagement
Available On
Alternatives
Listed Nov 2026
About DeepInfer
DeepInfer is an inference framework from DeepSeek-AI that the README describes as powering DeepSeek's large-scale production services. This open-source release provides offline inference with the core features needed for serving at scale, and currently supports the DeepSeek-V4.1-Flash model.
What It Is
DeepInfer is a Python-based inference runtime for running DeepSeek models on accelerator hardware. It includes optimized kernels, a model and sampler runtime, and parallelism options such as attention data parallelism with balanced context parallelism and MoE expert parallelism with EPLB. It runs on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs, and is released under the Apache License 2.0.
Decoding and Scheduling Features
DSpark and confidence-scheduled verification speed up decoding by using draft tokens and confidence estimates to schedule verification. Decoder SWA bounded replay reduces prefill work by replaying only a bounded suffix. Asynchronous scheduling overlaps CPU batch scheduling with device execution and is enabled by default.
Determinism and Structured Output
Batch-invariant inference keeps results identical across different batch compositions, and deterministic sampling produces identical outputs for identical input tokens and sampling parameters when a fixed seed is passed. Both are NVIDIA only. Structured outputs constrain generation to a regex, JSON schema, or EBNF grammar through the sampling parameters.
Setup Path
The README lists Linux, GCC 13 or newer, and Python 3.12 as prerequisites, plus CUDA 13 for NVIDIA or CANN 9.2 for Ascend. Users set the accelerator environment variable, build from source with the build script, and run the offline inference example. The default checkpoint is downloaded from Hugging Face on first run, or a local copy can be used.
Scope of This Release
The README states that a complete inference service additionally needs a KV cache system, VE/Prefill/Decode disaggregation, and load balancing across data-parallel replicas, none of which are included in this release.
Community Discussions
Be the first to start a conversation about DeepInfer
Share your experience with DeepInfer, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
Self-hosted offline inference framework released under the Apache License 2.0; no-charge, royalty-free license. Release excludes KV cache system, prefill/decode disaggregation and load balancing needed for a complete inference service.
- Apache License 2.0
- Offline inference
- Optimized kernels, model and sampler runtime
- Parallelism: Attention DP / balanced CP, MoE EP + EPLB
- DSpark and confidence-scheduled verification
Capabilities
Key Features
- Optimized kernels, model and sampler runtime
- Attention DP / balanced CP and MoE EP + EPLB parallelism
- DSpark and confidence-scheduled verification
- SWA bounded replay
- Asynchronous zero-overhead batch scheduling
- Batch-invariant inference
- Deterministic sampling
- Structured outputs (regex, JSON schema, EBNF)
- Offline inference
- NVIDIA SM100 and Huawei Ascend 950 support
