DeepSeek just open-sourced DeepInfer, the inference engine that runs DeepSeek-V4.1-Flash in producti

Romain Egele · LinkedIn · source

DeepSeek just open-sourced DeepInfer, the inference engine that runs DeepSeek-V4.1-Flash in production. I went through the code and the docs, and here’s what stood out.

First, the production numbers: 155 trillion tokens per day on a single cluster, at about $38 of revenue per GPU-hour, at off-peak pricing.

What struck me (128x B200 as base “efficient” deployment):

1/ No tensor parallelism, and very different shapes for prefill and decode. Attention runs data-parallel and the MoE experts run expert-parallel. Prefill runs as small 4-GPU instances. Decode runs as one wide instance across 64+ GPUs in a single NVLink domain, with roughly as many GPUs on each side, so about 128 GPUs for a deployment at full efficiency. “Efficient” here means throughput per GPU: at the same load, EP64 decode delivers about 25–35% more tokens/s per GPU than EP8, and faster per-user speed too. That only holds if traffic keeps every GPU loaded. It runs on far fewer GPUs, at lower throughput per GPU.

2/ Prefill cost cut almost in half. With “SWA bounded replay”, the decoder layers recompute only the last 128 tokens of the prompt instead of 2,560. A 4-GPU prefill instance processes 60–90K uncached tokens/s per GPU.

3/ Confidence-driven speculative verification. The draft model proposes 5 tokens, and a confidence head picks which ones are worth verifying. That verifies 30% fewer tokens for nearly the same accepted length. The gain only shows at high concurrency: −1.5% at 16 requests per GPU, +5% at 60, +11% at 96.

4/ The KV cache as a storage system. KV is kept for 3 days (agent traffic) to 7 days (chatbot) on about 100 PiB of SSD (3FS), roughly 14.4 TB per GPU. Any prefill machine can reuse any prefix, with no affinity routing needed.

5/ Kernels aren’t the secret. DeepSeek says its internal kernels are within 5% of the open-source versions (FlashMLA, DeepGEMM, DeepEP). The edge comes from system architecture: prefill/decode disaggregation, wide-EP, load balancing and a shared cache. My take: the open release is an offline engine, with no HTTP server, no KV cache and no load balancer, and most of its optimizations already live in vLLM. What makes the difference is scale and deployment shape. For single-node, latency-sensitive serving, tensor parallelism is still a solid choice. DeepSeek’s design pays off when the goal is cost per token at very large scale, with the traffic to fill it.

The repo and its deployment Q&A are well worth reading: https://lnkd.in/eHrTF3BG

llm inference deepseek vllm gpu mlops