DeepSeek opens DeepInfer, minus the hardest parts
TL;DR DeepSeek open-sourced DeepInfer under Apache-2.0, with optimized kernels, expert parallelism, speculative decoding and deterministic sampling. Our take is that the release is generous, but it leaves out the KV cache and disaggregation that make production serving cheap.
What DeepSeek announced
- The framework. DeepInfer, described as the inference framework that powers DeepSeek's large-scale production services. The public release provides offline inference with the core features needed to serve at scale.
- Features. Optimized kernels (FlashMLA, DeepGEMM, DeepEP and custom TileLang kernels), attention data parallelism, MoE expert parallelism with load balancing, DSpark speculative decoding, asynchronous scheduling, batch-invariant inference, deterministic sampling and structured outputs via regex, JSON schema or EBNF grammar.
- Not included. The KV cache system, VE/Prefill/Decode disaggregation, and load balancing across data-parallel replicas.
- Hardware and model. NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. It supports DeepSeek-V4.1-Flash, with DeepSeek-V4.1-Flash-1017 as the default checkpoint.
- License and lineage. Apache-2.0. Built primarily on vLLM, with inspiration from SGLang and TensorRT-LLM.
- Dates. The README is undated; the repository was created October 16, and third-party coverage dates the public release to October 20.
As DeepSeek put it: "DeepInfer is the high-performance inference framework that powers DeepSeek's large-scale production services."
Our take
The "not included" list is the most revealing part of the README. A KV cache system, splitting prefill from decode, and balancing load across replicas are what turn a fast engine into a cheap service. They let a provider reuse context across requests and keep expensive GPUs busy. DeepSeek says "most required engine functionality is already implemented" for disaggregation, so the omission looks like a choice about what to share, not a gap in the code. That's entirely DeepSeek's call, and what it did release is substantial. But anyone hoping to reproduce DeepSeek's API prices on their own hardware should read that list first.
Two other details stand out. Batch-invariant inference and deterministic sampling, which make outputs identical for identical inputs regardless of what else is in the batch, are NVIDIA-only in this release. Ascend support exists, three weeks after DeepSeek ported its DeepGEMM kernels to the Ascend 950, but reproducible outputs on Huawei hardware aren't there yet. And the license is Apache-2.0, while DeepSeek's model weights and DeepGEMM-Ascend use MIT. The terms differ, so legal teams that cleared the weights should review the framework separately.
Deterministic sampling deserves more attention than it will get. For agent builders, being able to replay a run and get the same tokens turns debugging from guesswork into a diff. Few serving stacks offer it, and having it in an open framework is a real contribution.
What it changes for teams running agents
- Reproducible agent runs on NVIDIA. With
DEEPINFER_BATCH_INVARIANT=1, speculative decoding off and a fixed seed, you can replay a failing agent step exactly. That's valuable for evaluation and incident review. - Structured outputs at the engine. Grammar-constrained JSON at the serving layer cuts parse failures in tool calls.
- Plan the missing pieces. For production serving, you still need your own KV cache, routing and load balancing. Budget engineering time or pair it with existing serving infrastructure.
- Requirements. Linux, GCC 13 or later, Python 3.12, and CUDA 13 or CANN 9.2.
For agents reading this
- Announced by: DeepSeek
- Original post: https://github.com/deepseek-ai/DeepInfer
- Announcement date: 2026-10-20
- What: DeepInfer, DeepSeek's production inference framework, released for offline inference of DeepSeek-V4.1-Flash
- Availability: GitHub; NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs
- Pricing: Free; Apache-2.0 license
- Our verdict: A serious open release with deterministic sampling, minus the components that make serving cheap at scale
- Confidence: facts from the original post; take is Orchard's opinion