Inside DeepSeek's Trillion-Token Engine: DeepInfer and deepseek-recipe Architecture from Silicon to Protocol Layer DeepSeek published a technical report, "Production Deployment Practices of DeepSeek V4.1 Flash at Scale," and open-sourced its core production stack: the DeepInfer inference framework and the Rust-native deepseek-recipe protocol layer. DeepInfer is co-optimized for NVIDIA SM100 (Blackwell) and Huawei Ascend 950 NPUs with custom kernels (FlashMLA, DeepGEMM, DeepEP, TileKernels) and a 1:1 prefill-decode disaggregated cluster topology, alongside speculative decoding, sliding-window replay and dynamic MoE load balancing. The report cites single-cluster daily throughput of 155 trillion tokens, a 96% KV cache hit rate and $38/GPU/hour in off-peak revenue. NOTE Executive Summary TL;DR Silicon & Kernel Foundations : DeepInfer is co-optimized for NVIDIA SM100 Blackwell with NVLink 5 and Huawei Ascend 950 NPUs, leveraging custom kernels—FlashMLA latent attention decoding , DeepGEMM FP8/FP4 block-scaled GEMM , DeepEP zero-bubble All-to-All communication , and TileKernels TileLang domain-specific JIT compilation —to eliminate hardware abstraction overhead. Cluster Topology & 1:1 PD Disaggregation : Breaking past single-node time-sharing limitations, the system establishes a symmetrical 1:1 ratio between 8-GPU compact Prefill nodes compute-bound, high FLOPs density and 64–128 GPU Wide-EP Decode supernodes memory-bound, ultra-wide aggregate HBM bandwidth , supplemented by an isolated asynchronous Vision Encoder pipeline. Triad Algorithmic Acceleration Suite : Introduces DSpark Confidence-Scheduled Speculative Decoding Confidence Head predicting adaptive verification trees, unlocking 4%–7% net throughput , SWA Bounded Replay eliminating redundant recomputation across sliding window boundaries in long contexts , and dynamic MoE load balancing resident core experts + on-demand redundant replicas to eliminate cross-node stragglers . Protocol Revolution & Unit Economics : Checkpoints officially discard traditional Jinja templates in favor of the Rust-native deepseek-recipe engine for zero-copy OpenAI/Anthropic protocol translation,