DeepSeek has open-sourced DeepInfer, the inference engine that serves DeepSeek V4.1 Flash in production, under the Apache 2.0 license. It announced the release on X at 09:30 UTC on October 20, 2026, together with deepseek-recipe, the component that turns API requests into tokens and back. By noon UTC the repository had more than 6,400 stars and 500 forks.
The code comes with a long deployment Q&A that says more than the README: one DeepSeek cluster serves 155 trillion tokens a day, the efficient minimum is 128 GPUs, and the parts that make it a full service are not in the box. This post reads the repository, the Q&A and DeepSeek’s benchmark charts directly.
Update, October 24: vLLM and SGLang, the two open engines DeepInfer draws on, have each published benchmarks that put them level with it. The comparison is below.
On this page · 10 sectionsOpen
- What DeepSeek released, and what it kept
- The numbers DeepSeek disclosed
- Why the floor is 128 GPUs
- Speculative decoding that checks fewer guesses
- How close the public engine is to DeepSeek’s own
- Independent numbers: vLLM and SGLang
- Should you self-host it?
- Where CellCog stands
- What we are watching for
- Sources
DeepSeek open-sourced DeepInfer, the inference engine behind DeepSeek V4.1 Flash, under Apache 2.0 on October 20, 2026, with deepseek-recipe, its request-to-token converter.
DeepSeek says one cluster serves 155 trillion tokens a day and earns about 38 dollars per GPU-hour at its off-peak (valley) price.
deepseek-recipe turns Chat Completions, Responses and Messages requests into DeepSeek prompts and parses output back, matching the official API’s behavior.
It runs one model, DeepSeek-V4.1-Flash, on NVIDIA SM100 GPUs or Huawei Ascend 950 NPUs; the efficient minimum is 64 prefill plus 64 decode GPUs.
The KV cache system, prefill and decode disaggregation, and load balancing are not in the release; DeepSeek says that code is tied to its internal infrastructure.
§ 01What DeepSeek released, and what it kept
The repository describes itself plainly: “DeepInfer is the high-performance inference framework that powers DeepSeek’s large-scale production services.” The README then lists what a complete service also needs and this release does not include.
| Part | In the release? | What it does |
|---|---|---|
| DeepInfer engine | Yes, Apache 2.0 | Kernels, model and sampler runtime, scheduling, speculative decoding, structured outputs |
| deepseek-recipe | Yes | Converts Chat Completions, Responses and Messages requests to DeepSeek V4 and V4.1 prompts, and output back |
| KV cache system | No | Stores computed context on a dedicated 3FS storage cluster so repeated prefixes skip prefill |
| Prefill and decode disaggregation | No, though most engine pieces are in | Runs vision encoding, prefill and decode on separate machines |
| Load balancing | No | Spreads requests across data-parallel replicas for prefill and decode |
DeepSeek gives its reason in the Q&A: “The KV cache management and load balancing components of the inference system are tightly coupled to our internal infrastructure, so that code is not yet fully open-sourced.” It describes their design in a Zhihu post and in the Q&A instead.
The engine supports one model, DeepSeek-V4.1-Flash, and two kinds of hardware: NVIDIA SM100 GPUs (the Blackwell data-center generation) and Huawei Ascend 950 NPUs. It needs Linux, Python 3.12, and CUDA 13 or CANN 9.2. The README credits vLLM as the original base, with ideas from SGLang and TensorRT-LLM. The thread promises more: “Inference code for future DeepSeek models and ongoing optimizations will land here too.”
§ 02The numbers DeepSeek disclosed
The Q&A opens with the figure most readers will remember: “A single cluster currently serves 155 trillion tokens per day, with overall revenue of US$38 per GPU-hour (at valley pricing).” Valley pricing is DeepSeek’s off-peak API rate, so that revenue figure is a floor, not an average.
The storage behind it is just as large. DeepSeek keeps roughly 100 PiB of SSD for KV cache, the computed context it reuses when a request repeats a prefix. Agent traffic is kept for 3 days and chatbot traffic for 7, because chatbot hits have a long tail: a small amount of cache is read very many times. In practice that works out to about 14.4 TB of logical cache per online GPU.
§ 03Why the floor is 128 GPUs
DeepSeek splits the work in two. Prefill reads the prompt and runs on small groups of 2 to 8 GPUs. Decode writes the answer one step at a time and runs spread across 64 to 128 GPUs, each holding a slice of the model’s experts. In DeepSeek’s words, “the smallest efficient deployment unit is 64 GPUs of prefill plus 64 GPUs of decode.”
Spreading decode wide pays because each GPU moves less expert data per step. DeepSeek’s own chart compares 8 GPUs with 64 at the same load.
At 64 requests per rank, the wide setup gives each GPU about 24% more output and each user faster text, roughly 246 tokens per second against 197. The values are read off DeepSeek’s chart, measured with 131,072-token context and three draft tokens per step, so treat them as close, not exact.
§ 04Speculative decoding that checks fewer guesses
DeepInfer decodes with a draft model that proposes 5 tokens at a time. DeepSeek’s DSpark scheduler then predicts how likely each draft token is to be accepted and verifies only the ones worth the compute. The Q&A says this cuts the tokens verified per step by about 30% while the accepted length barely moves.
| Sequences per rank | Fixed-5 throughput (tok/s/rank) | Dynamic throughput (tok/s/rank) | Gain |
|---|---|---|---|
| 16 | 4,891 | 4,816 | -1.5% |
| 32 | 8,964 | 9,111 | +1.6% |
| 48 | 12,032 | 12,467 | +3.6% |
| 60 | 13,730 | 14,466 | +5.4% |
| 72 | 14,962 | 15,961 | +6.7% |
| 96 | 16,817 | 18,660 | +11.0% |
DeepSeek runs production around 60 sequences per rank, where the gain is 4% to 7%. At light load the scheduling costs slightly more than it saves.
§ 05How close the public engine is to DeepSeek’s own
DeepSeek says its internal kernel libraries are broadly the same as the public ones. The public FlashMLA lacks one hand-tuned optimization, which makes its decode kernel 5% to 10% slower, and the end-to-end gap is at most 5%. For a correctness check, the repository lists Pass@1 reference figures for V4.1: 99.9% on AIME 2026, 93.4% on GPQA Diamond and 42.6% on HLE-Full.
deepseek-recipe matters on its own. It encodes special tokens from their known positions, so text such as a user typing DeepSeek’s control tokens is encoded as ordinary text and cannot trigger a tool call. Third-party hosts of DeepSeek models get the same request handling as DeepSeek’s own API.
§ 06Independent numbers: vLLM and SGLang
Our watch list asked for throughput numbers from outside DeepSeek. Two arrived within four days, from the two open engines DeepInfer borrowed from.
vLLM published first, on October 23. On DeepSeek’s decode setup (131K context, three draft tokens per step), vLLM on GB200 GPUs came within 6% of DeepInfer’s published decode results at every batch size from 8 to 256, compared against values read off DeepInfer’s charts. Its headline lesson: “A general-purpose engine can match a model-specific one”. On a full GB300 NVL72 rack, with prefill and decode on separate machines, it reported 954K tokens per second per GPU on SemiAnalysis’s AgentX workload and converted that to $38.96 of revenue per GPU-hour at DeepSeek’s off-peak prices. DeepSeek reported US$38 for its own cluster; the workloads differ, so read that as the same ballpark, not a win.
SGLang followed on October 24 and ran DeepInfer itself, with DeepInfer’s own benchmarks on the same hardware. It reported up to 1.04x DeepInfer’s prefill throughput on four GB300 and four B300 GPUs, decode steps 1.1% to 7.4% shorter from 16 to 256 requests per GPU on 64 GB300s, and results within 1% at the remaining points. It also says DeepSeek’s kernels, DSpark speculative decoding and SWA bounded replay now run in SGLang’s main branch.
| Point | vLLM | SGLang |
|---|---|---|
| Compared against | DeepInfer’s published charts | DeepInfer, run on the same hardware |
| Decode | Within 6%, batch 8 to 256, on GB200 | Steps 1.1% to 7.4% shorter, 16 to 256 requests per GPU, 64 GB300s |
| Prefill | Tracks DeepInfer’s curve; setups differ | Up to 1.04x, on 4 GB300s and 4 B300s |
| Full-service pieces shown | Prefill and decode on separate machines | KV cache system, separate prefill and decode, load balancing |
Both teams are grading themselves against DeepSeek on benchmarks DeepSeek chose, so treat the margins as their claims. The useful fact is the near-tie. The lineage runs both ways: DeepInfer started from vLLM, and SGLang says DeepInfer’s documentation credits its CPU-GPU overlap scheduling to SGLang. SGLang’s post lists the three parts DeepInfer leaves out under the heading “A full serving system.”
§ 07Should you self-host it?
For most teams, no. You need Blackwell-class or Ascend 950 hardware, around 128 GPUs to run efficiently, and your own KV cache store and load balancers. For a cloud provider or a large inference team already serving DeepSeek V4.1 Flash, it is something rarer: a lab’s production engine, with the operating numbers attached. Since October 24 there is a simpler route too: SGLang runs DeepSeek’s techniques and ships the KV cache, disaggregation and load balancing DeepInfer lacks.
§ 08Where CellCog stands
CellCog does not serve DeepSeek models; CellCog runs on Anthropic’s Claude models (Claude Opus 5.5 on most tiers; Claude Fable 5.2 on Agent Max and Creative Max since November 11, 2026). We follow inference releases like this one because they set what it costs to serve the models businesses run on.
§ 09What we are watching for
- The KV cache and load-balancing code, which DeepSeek says is not yet fully open.
- Support for more models, which DeepSeek says will land in the same repository.
- Production users running DeepInfer, or the vLLM and SGLang paths, outside DeepSeek.
- Independent runs beyond the engines’ own teams, which so far supply every comparison.
§ 10Sources
- DeepSeek, DeepInfer repository, README and eval README, read October 20, 2026, 12:20 UTC.
- DeepSeek, DeepSeek V4.1 Flash Inference Deployment Q&A, October 20, 2026. Read directly.
- DeepSeek, deepseek-recipe repository, README. Read directly.
- vLLM team, Serving DeepSeek-V4.1-Flash at Scale, October 23, 2026. Read directly (post source on GitHub).
- SGLang team, More Than DeepInfer: What SGLang Delivers, LMSYS, October 24, 2026. Read directly.
- DeepSeek on X, announcement thread, October 20, 2026, 09:30 UTC.
Q1When was DeepInfer released?
DeepSeek announced it on X at 09:30 UTC on October 20, 2026. The repository’s first commit is dated 04:09 UTC the same day.
Q2What license is DeepInfer under?
Apache License 2.0, per the repository and its license file. deepseek-recipe was released at the same time.
Q3Which models and hardware does it support?
One model, DeepSeek-V4.1-Flash. Hardware: NVIDIA SM100 GPUs with CUDA 13, or Huawei Ascend 950 NPUs with CANN 9.2, on Linux with Python 3.12.
Q4Is the public version as fast as DeepSeek's internal one?
Close, per DeepSeek’s Q&A: the public FlashMLA lacks one hand-tuned optimization that makes its decode kernel 5% to 10% slower, and end-to-end performance is at most 5% apart. Outside engines are level too: vLLM reports decode within 6% of DeepInfer’s published results, and SGLang reports up to 1.04x its prefill.
Q5What scores should a correct deployment reproduce?
DeepSeek lists Pass@1 reference figures of 99.9% on AIME 2026, 93.4% on GPQA Diamond and 42.6% on HLE-Full, as a sanity check rather than exact targets.
Q6Does CellCog run DeepSeek models?
No. CellCog runs on Anthropic’s Claude models (Claude Opus 5.5 on most tiers; Claude Fable 5.2 on Agent Max and Creative Max since November 11, 2026). We follow inference releases because they set what it costs to serve the models businesses depend on.
