The whole dayTue 20 Oct 2026
AI Compass

DeepSeek open-sources DeepInfer, the stack behind V4.1-Flash

DeepInfer is the inference framework behind DeepSeek’s production service, released under Apache 2.0, with a separate library for turning API requests into tokens.

Logo: DeepSeekCover by AI Compass

DeepSeek published DeepInfer on 20 October 2026 under the Apache License 2.0. The repository describes it as the inference framework that powers DeepSeek’s large-scale production services. The supported model is DeepSeek-V4.1-Flash, and DeepSeek’s post says that is the model it is serving at scale. The release is an offline inference stack: optimised kernels, several ways of splitting work across chips, and options for deterministic sampling and structured output.

The supported hardware is NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. DeepSeek says a full service still needs pieces this release does not include: a KV cache system, which is the memory of an ongoing conversation, disaggregation of prefill and decode, and load balancing across replicas. It says most of the engine work for that split is already in the code. The default checkpoint is deepseek-ai/DeepSeek-V4.1-Flash-1017.

Alongside it, DeepSeek published deepseek-recipe under the MIT licence. That library turns chat and responses requests into the prompt and token IDs a DeepSeek V4 or V4.1 model expects, and turns the model’s output back into an API response. DeepSeek’s post calls it the production token encoding and decoding used to match the official API. The caller still has to run the model, execute tools and serve HTTP.

DeepSeek’s charts plot how prefill throughput trades off against latency, and how decode throughput trades off against per-user speed, for DeepSeek-V4.1-Flash.

DeepSeek-V4.1-Flash prefill throughput rises as the batch grows from 4,096 to 65,536 tokens per rank, while latency rises from under 100 ms to past 700 ms
Prefill throughput against latency for DeepSeek-V4.1-Flash on 4 SM100 GPUsImage: DeepSeek
DeepSeek-V4.1-Flash decode throughput falls as per-user speed rises, across 256 down to 8 requests per rank
Decode throughput against per-user speed for DeepSeek-V4.1-Flash on 64 SM100 GPUsImage: DeepSeek

Sources

  1. PrimaryDeepInfer repositorygithub.com/deepseek-ai · README, Apache 2.0, hardware and the two charts
  2. Officialdeepseek-recipe repositorygithub.com/deepseek-ai · Request conversion and token encoding, MIT licence
  3. On X@deepseek_ai on X: Introducing DeepInferx.com · Says DeepInfer is serving DeepSeek-V4.1-Flash at scale
  4. On X@deepseek_ai on X: deepseek-recipex.com · Calls deepseek-recipe the production token encoding and decoding

The rest of the day

Read the whole day

Spotted an error? Email aiforsuccess.in+compass@gmail.com or tag @ai_for_success on X