Skip to content
AI EmployeeSuper-AgentsAgent-to-AgentBenchmarksPricingBlog

DeepSeek Open-Sources DeepInfer: What It Takes to Run

At a glanceQuick answers
What is DeepInfer?
DeepSeek’s own inference engine, the software that serves DeepSeek V4.1 Flash to its API users, now public on GitHub under Apache 2.0.
Can I run DeepSeek's whole service with it?
No. The engine is there, but the KV cache system, the split of prefill and decode onto separate machines, and the load balancers are not. You build those yourself.
How big a deployment does it expect?
DeepSeek’s own guide puts the smallest efficient unit at 64 GPUs for prefill plus 64 for decode, on NVIDIA SM100 GPUs or Huawei Ascend 950 NPUs.
Data illustration on a near-white ground: an open server rack with teal GPU blades streaming a ribbon of token squares, under the figures 155T tokens a day and 38 dollars revenue per GPU-hour
Fig 0One DeepSeek cluster, 155 trillion tokens a day. Made by CellCog's image agent, running GPT Image 2.5.

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.

On this page · 9 sectionsOpen
  1. What DeepSeek released, and what it kept
  2. The numbers DeepSeek disclosed
  3. Why the floor is 128 GPUs
  4. Speculative decoding that checks fewer guesses
  5. How close the public engine is to DeepSeek’s own
  6. Should you self-host it?
  7. Where CellCog stands
  8. What we are watching for
  9. Sources
Key points5 · 7 min full read
  1. An open box with a code symbol and an unlocked padlock.
    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.
  2. A server streaming tokens under a sun.
    DeepSeek says one cluster serves 155 trillion tokens a day and earns about 38 dollars per GPU-hour at its off-peak (valley) price.
  3. One machine reading, one writing, joined by an arrow.
    deepseek-recipe turns Chat Completions, Responses and Messages requests into DeepSeek prompts and parses output back, matching the official API’s behavior.
  4. Two chips joined by a line.
    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.
  5. Storage drives with a closed padlock.
    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
Table 1What is in the DeepInfer release (DeepSeek README and deployment Q&A, October 20, 2026)
Animation: a request flows through DeepSeek's serving system; DeepSeek Recipe and the DeepInfer engines in prefill and decode turn teal under an Apache 2.0 tag, while load balancers and KV cache storage stay grey with padlocks, marked not in the release
Fig 1The engine and request converter are open; KV cache storage and load balancers are not

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.

Animation: 8 large GPUs crowded with experts put out about 12,700 tokens per second each; 64 small GPUs holding one or two experts each put out about 15,700
Fig 2Spread over 64 GPUs, each holds fewer experts and puts out more tokens per second
Decode output per GPU in tokens per second, read from DeepSeek's EP8 vs EP64 chartBar chart of decode output per GPU: EP64 at 64 requests per rank about 15,700, EP8 at 64 requests about 12,700, EP64 at 256 requests about 26,300, EP8 at 256 requests about 24,900, with EP64 at 64 requests highlightedEP64, 64 requests per rank15700EP8, 64 requests per rank12700EP64, 256 requests per rank26300EP8, 256 requests per rank24900Decode output per GPU in tokens per second, read from DeepSeek's EP8 vs EP64 chartBar chart of decode output per GPU: EP64 at 64 requests per rank about 15,700, EP8 at 64 requests about 12,700, EP64 at 256 requests about 26,300, EP8 at 256 requests about 24,900, with EP64 at 64 requests highlightedEP64, 64 requests per rank15700EP8, 64 requests per rank12700EP64, 256 requests per rank26300EP8, 256 requests per rank24900
Fig 3Decode output per GPU in tokens per second, read from DeepSeek's EP8 vs EP64 chart

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%
Table 2Fixed-length vs dynamic verification, EP64 benchmark (DeepSeek deployment Q&A)

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.

§ 06Should 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.

§ 07Where CellCog stands

CellCog does not serve DeepSeek models; every CellCog agent tier runs on Claude Opus 5.5. We follow inference releases like this one because they set what it costs to serve the models businesses run on.

§ 08What 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.
  • Independent throughput numbers on hardware outside DeepSeek’s own clusters.

§ 09Sources

Frequently asked6 questions

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.

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. Every CellCog agent tier runs on Claude Opus 5.5. We follow inference releases because they set what it costs to serve the models businesses depend on.

Published 20 October 2026 All Choosing a platform →