The Engine Without the Car: How DeepSeek Open-Sourced Its Inference Stack and Kept the Hard Part
On Tuesday, DeepSeek announced in a four-post thread on X that DeepInfer — the framework its own README calls "the high-performance inference framework that powers DeepSeek's large-scale production services" — is now fully open source under Apache 2.0. This is not a research artifact or a teaching example: it is the software that actually runs the model behind DeepSeek's API, the layer the company declined to release a year ago on the grounds that it wasn't practical yet. As of Wednesday, the GitHub repository shows 10.8k stars and 950 forks.
The scope is narrow on purpose: one model (DeepSeek-V4.1-Flash), two chip families (NVIDIA's SM100 Blackwell GPUs and Huawei's Ascend 950 NPUs), and offline inference only. What sits inside that scope is a working tour of how a frontier lab serves a model at 25,000-plus decode tokens per second, per GPU. What sits outside that scope explains why DeepSeek felt safe releasing it.
What's in the box
The release reads like DeepSeek's systems papers turned into shipping code. The kernel layer bundles the lab's previously open-sourced components — FlashMLA, DeepGEMM, and DeepEP — alongside TileKernels, DeepSelect, and custom TileLang kernels. Parallelism covers attention data parallelism with balanced context parallelism, plus mixture-of-experts expert parallelism fronted by an expert load balancer (EPLB).
Two techniques do the heavy lifting on speed. DSpark, the speculative decoding path, uses a confidence head to rank five draft tokens and verifies only the best prefix instead of everything; per MarkTechPost's summary, that trims verified draft tokens by roughly 30% with near-equal acceptance rates. SWA bounded replay attacks the prefill side: on a cache hit, the decoder recomputes only a bounded suffix of the sliding-window state — 140 tokens by default — rather than redoing full prefill work.
The rest of the feature list targets people who operate fleets rather than demos. An asynchronous, zero-overhead batch scheduler overlaps CPU scheduling with device execution and is on by default. Batch-invariant inference keeps model results identical across different batch compositions, and deterministic sampling produces identical outputs for identical input tokens and sampling parameters — both NVIDIA-only, both enabled through DEEPINFER_BATCH_INVARIANT=1. Generation can be constrained to a regex, a JSON schema, or an EBNF grammar. DeepSeek's self-reported benchmark puts decode above 25,000 tokens per second per GPU, measured on 4 SM100 GPUs for prefill and 64 for decode, each within one scale-up domain.
Alongside the engine, the lab released deepseek-recipe, an MIT-licensed Rust tokenizer that mirrors the token encoding and decoding logic behind the official DeepSeek API. Between the two repositories, a third party can now replicate DeepSeek's serving behavior offline, on their own hardware, with the same API-to-prompt contract the company itself uses.
The three things that aren't in the box
The README is unusually explicit about the boundary. Under a heading that reads "Required for a complete inference service (not included in this release)", it lists a KV cache system, VE/prefill/decode disaggregation, and load balancing across data-parallel replicas for both prefill and decode. Those three pieces are the difference between an engine and a car you can actually drive. The KV cache store is what makes long conversations affordable at scale; disaggregation is what lets a fleet split prefill from decode across machines; the load balancer is what turns a pile of replicas into a service with an uptime. DeepSeek published the parts that are hard to write and withheld the parts that are hard to operate.
That split is the strategic read. The kernels and scheduler encode real efficiency IP, but releasing them costs DeepSeek little, because they are not where its cost advantage lives. The advantage lives in models architecturally co-designed for this serving stack — a property acquired at training time, and not something you can download. Analyst Jack Gold, president of J. Gold Associates, told TechTarget the move is for DeepSeek's own benefit; the company positions itself as the open-source provider of choice for cost-conscious enterprises, while the withheld serving layer nudges any deployment that needs an actual online service back toward DeepSeek's own API. The giveaway markets to the exact audience — self-hosters and cost optimizers — most likely to become API customers the moment they outgrow offline inference.
The hardware list is the other signal. Huawei's Ascend 950 NPU appears beside NVIDIA's SM100 parts with equal billing, one week after reports that DeepSeek plans to pre-train on the Ascend 950DT by the end of 2026. Equal billing in a production release note is a roadmap statement: the engine is being maintained, from day one, for a fleet that is increasingly not NVIDIA's.
There is a quieter open-source story here too. DeepInfer was originally built primarily on vLLM, with inspiration from SGLang and TensorRT-LLM, and the README credits all three. The vLLM project publicly thanked DeepSeek for the credit and said it will keep improving its own V4.1-Flash support with ideas from DeepInfer. A lab that took from the commons is returning production-grade code to it — and in doing so, accelerating the exact infrastructure that competes with its API business.
What the release is not is a surrender of the parts that matter. DeepSeek says inference code for future models and ongoing optimizations will land in the repository too, which makes DeepInfer less a one-time gift than a commitment device: every deployment that adopts its conventions is one that DeepSeek's next model drops into cleanly. The community gets the engine. DeepSeek keeps the car — and the customers.