TL;DR: DeepSeek released under Apache 2.0 DeepInfer — the inference engine that runs its production services. This isn’t a teaching framework but a battle-tested stack: optimized kernels (FlashMLA, DeepGEMM, DeepEP, TileKernels), Attention DP/CP and MoE EP + EPLB parallelism, DSpark speculative decoding, a zero-overhead asynchronous batch scheduler, batch-invariant inference, and deterministic sampling. The default checkpoint is DeepSeek-V4.1-Flash, which we covered earlier. Hardware targets: NVIDIA SM100 (Blackwell) and Huawei Ascend 950. The discussion hit #1 on HN with 1,348 points and 470+ comments.
What actually happened
Labs usually open-source the weights and keep the inference stack to themselves — it’s a competitive edge: how you shard the model across a cluster, how you schedule batches, how you shave latency. DeepSeek went further and open-sourced the very engine its services run on. The README openly credits vLLM, SGLang, and TensorRT-LLM: DeepInfer is built on vLLM and inspired by the other two.
Context makes the move sharper: the day before, DHS banned DeepSeek for US federal agencies (per Reuters). The company’s response was to open its production engine under Apache 2.0. The HN thread immediately turned into a debate about inference economics — commenters tossed around a figure of roughly $38/hour profit per rented GPU (linking to the InferenceX/SemiAnalysis profit estimator) and argued that open source in this space destroys provider margins. We won’t adjudicate that one, but the dynamics are telling.
Inside: kernels, parallelism, decoding
DeepInfer is a set of solutions for serving DeepSeek-family MoE models at production scale. The main blocks:
- Optimized kernels: FlashMLA (attention), DeepGEMM (matrix multiplication), DeepEP (expert parallelism), TileKernels and DeepSelect, plus custom TileLang kernels. These are the libraries DeepSeek had been developing separately — now assembled into one engine.
- Parallelism: Attention Data Parallel and balanced Context Parallel for attention; Expert Parallel with EPLB (load balancing across experts) for MoE.
- DSpark speculative decoding: drafts of up to 5 tokens with confidence-scheduled verification — draft tokens are verified on a confidence-based schedule rather than mechanically.
- SWA bounded replay: with sliding-window attention, only a bounded suffix of the prefill is replayed instead of the full history.
- Zero-overhead asynchronous batch scheduler.

Reliability: batch invariance and determinism
Two features that matter more than they sound.
Batch-invariant inference — the output doesn’t depend on which batch your request happened to land in. In a typical setup, a model’s answer can shift slightly depending on how many other requests ran alongside it, due to reduction ordering in the kernels. DeepInfer guarantees identical output regardless of batch composition. For production this means reproducible answers and testability: verify behavior locally, expect the same on the cluster.
Deterministic sampling via seq_seed: the same request with the same seed yields the same response. Plus structured outputs — response validation against regex, JSON Schema, or EBNF built into the engine.
Hardware: Blackwell and Ascend 950
DeepInfer supports two platforms out of the box:
- NVIDIA SM100 — the Blackwell architecture. Benchmarks in the repo: prefill measured on 4×SM100, decode on 64×SM100, with throughput/latency pareto curves.
- Huawei Ascend 950 NPU. Worth calling out separately: a production-grade inference stack from DeepSeek that runs on Chinese NPUs from day one, not only on NVIDIA.

What’s missing for a full service
Honestly: this is offline inference with a core, not a ready-made production service. The release does not include:
- a KV-cache system for cluster-scale cache management;
- prefill/decode disaggregation — splitting those stages across nodes;
- load balancing across DP replicas — routing requests between model copies.

In other words, the engine gives you kernels, parallelism, and batch scheduling — but the KV storage layer and replica orchestration are yours to build, or to wait for in future releases.
Why this matters to us
An open production engine is another brick in the “your model + your engine + your data” stack. A year ago, local or private inference of frontier models was a craft project; now the weights are open, the engine is open, and private inference is a question of hardware, not reverse engineering. MaxGraph is the local memory for exactly that stack: everything your agent remembers and decides lives with you, next to the model.
And there’s a subtler parallel. DeepInfer invests in token-level reproducibility: batch invariance and deterministic sampling guarantee that identical input yields identical output. Agent memory solves the same problem at the decision level — so the agent doesn’t reinvent next session what it already figured out and recorded. Reproducible inference without reproducible context is only half the job.
FAQ
What is DeepInfer? A high-performance inference framework that powers DeepSeek’s production services. On October 20, 2026 the company open-sourced it under Apache 2.0. Built on vLLM, inspired by SGLang and TensorRT-LLM.
Which models does it support? DeepSeek-V4.1-Flash — the default checkpoint is deepseek-ai/DeepSeek-V4.1-Flash-1017 on Hugging Face.
What hardware does it run on? NVIDIA SM100 (Blackwell) and Huawei Ascend 950 NPU — both supported out of the box.
What is batch-invariant inference? A guarantee that the model’s answer doesn’t depend on batch composition: an identical request returns an identical result no matter what else runs alongside it. Plus deterministic sampling via seq_seed.
Can you run a full service on it? Not out of the box: the release is offline inference with a core. It lacks a KV-cache system, prefill/decode disaggregation, and load balancing across DP replicas — you’d need to build those yourself.
What’s next
- DeepSeek V4.1 Flash: model breakdown
- How AI agent memory works: a guide
- Local LLMs: what hardware you need
MaxGraph — memory for AI agents: local, private, with a living knowledge graph. 7 days free.
Give your agent memory
7-day trial, no card. Installation is one prompt — your agent does the rest.