DeepSeek open-sources DeepInfer production inference stack and reveals revenue figures
On October 20, the first day of PyTorch Conf, DeepSeek officially open-sourced its in-house production inference framework DeepInfer under Apache-2.0. The stack powers DeepSeek-V4.1-Flash at scale (per swyx, it is a vLLM-derived build with acknowledgments to SGLang and TRT-LLM), and the company says the release aims to help the community cut compute costs and energy use. The repo's GitHub stars climbed rapidly—from 2k at launch (feelspeaceman, yogthos) to 4.6k (mitsuhiko) and 6.3k within 8 hours (rohanpaulai); vLLM author woosukk and the SGLang team both congratulated the release. The same day, reports emerged that the U.S. Department of Homeland Security asked federal agencies to remove DeepSeek, contrasting the open-source move with regulatory pressure.
Confirmed
- DeepInfer is Apache-2.0, initially supports DeepSeek-V4.1-Flash with offline inference, and runs on NVIDIA (including Blackwell) and Huawei Ascend hardware
- In an engineering post on Zhihu, DeepSeek disclosed production figures: a single cluster serves 155 trillion tokens/day, with revenue of roughly $38 per GPU-hour; per zephyrz9, this is based on off-peak pricing—peak pricing would roughly double it; burnytech (via swyx) estimated 80% gross margin per GPU-hour, and teortaxesTex calculated up to 93% with multi-vendor chip compatibility and 8-GPU configs
- teortaxesTex added finer metrics: 14,000 tokens/s output per decode card (230 tokens/s per user), a 1:1 prefill-to-decode card ratio, and a 96% input cache hit rate
- DeepInfer ships an official English deployment QA doc (inferencedeploymentqa.md) describing three design goals including multi-vendor accelerator support, and discloses 72-hour KV cache retention
- The companion deepseek-recipe repo (MIT) open-sources production token encoding/decoding aligned with the official DeepSeek API
- Technical components include high-performance kernels, MoE expert parallelism, distributed inference, speculative decoding, SWA Bounded Replay, and structured output; the official prefill benchmark peaks around 65,536 tokens/s/GPU non-cached on 4x SM100 GPUs
- Per jenzhuscott (via swyx), despite pricing 20x cheaper than OpenAI/Anthropic, DeepSeek's GPU payback period is about 10 months
- vLLM author woosukk and the SGLang team both signaled they may absorb the improvements
- lxfater noted the release answers the question of why self-hosting open models was often not cheaper than the official API
- DeepSeek summarized the effort as "Open models. Open kernels. Open inference."
Why it matters
DeepInfer is a real production inference stack, not a paper project, so the community can directly reuse inference optimizations proven at scale. NVIDIA-plus-Ascend support also matters for heterogeneous compute ecosystems. The rare disclosure of revenue and throughput figures—$38/GPU-hour, 80–93% gross margins, 96% cache hits, 155T tokens/day—plus the 10-month GPU payback analysis confirm DeepSeek's inference-efficiency edge. Together with previously released models, kernels, and now deepseek-recipe, DeepSeek is assembling a fully open inference stack that could push industry-wide inference costs lower, while U.S. removal directives highlight the geopolitical tension around the open-source approach.
2026-10-20 ~ 2026-10-22 · 60 related posts
- Episode 1: DeepSeek open-sources DeepInfer production inference stack and reveals revenue figures(2026-10-20, 60 posts)
- Episode 2: DeepSeek Rumored at $1B ARR; Analyst Argues Only ~3,000 GPUs Needed(2026-10-20, 5 posts)
- Episode 3: DeepSeek Discloses $38/GPU-Hour Inference Revenue, Sparking Unit Economics Debate(2026-10-21, 10 posts)
- Episode 4: DeepSeek Details V4.1 Flash Inference Deployment: Engineering, Not Magic(2026-10-21, 2 posts)
- Episode 5: DeepSeek Open-Sources DeepInfer Inference Framework, Criticized for Missing KV Cache and Load Balancing(2026-10-21, 2 posts)
- Episode 6: swyx vs willcb: How Big a Deal Is DeepSeek's Open Inference Stack(2026-10-21, 3 posts)
Primary sources
- DeepSeek open-sources DeepInfer, the production inference framework behind DeepSeek-V4.1-Flash — deepseek_ai ·
- DeepSeek open-sources DeepInfer: one cluster serves 155T tokens/day at $38 per GPU-hour — Yuchenj_UW ·
- DeepSeek open-sources DeepInfer: 155T tokens/day per cluster at ~80% GPU margin — swyx ·
- DeepSeek fully open-sources its internal inference framework DeepInfer, supporting NVIDIA and Ascend — DeepSeek · 2026-10-20
- DeepSeek launches DeepInfer with open prefill/decode benchmarks and reproducible scripts — Xianbao_QIAN · 2026-10-20
- DeepSeek open-sources DeepInfer, the inference framework powering its production services — jiqizhixin · 2026-10-20
- [source] DeepSeek open-sources DeepInfer, the production inference framework behind DeepSeek-V4.1-Flash — deepseek_ai · 2026-10-20
- Inside DeepInfer: high-performance kernels, distributed inference and speculative decoding — deepseek_ai · 2026-10-20
- DeepSeek also open-sources deepseek-recipe, replicating official API token encoding logic — deepseek_ai · 2026-10-20
- DeepSeek closes open-source series: open models, open kernels, open inference — deepseek_ai · 2026-10-20
- DeepSeek open-sources DeepInfer, a high-performance inference framework for its models — feelspeaceman · 2026-10-20
- DeepSeek open-sources DeepInfer inference stack: 155T tokens/day, 96% cache hit rate — 赛博禅心 · 2026-10-20
- DeepSeek open-sources DeepInfer, the production inference stack behind its online V4.1 service — AI寒武纪 · 2026-10-20
- DeepSeek open-sources DeepInfer inference framework; vLLM thanks them and plans to fold in its ideas — woosuk_k · 2026-10-20
- DeepSeek's production data: $38 revenue per card-hour, 96% cache hit rate check out to within 3% — teortaxesTex · 2026-10-20
- DeepSeek open-sources DeepInfer as DHS orders federal agencies to purge it — Polymarket · 2026-10-20
- DeepSeek open-sources DeepInfer: 155T tokens/day per cluster, $38 per GPU-hour off-peak — Xianbao_QIAN · 2026-10-20
- DeepSeek open-sources DeepInfer production inference stack; GPU payback reportedly ~10 months — SumitGup · 2026-10-21
- DeepSeek's Cluster Serves 155T Tokens/Day at $38 Revenue per GPU-Hour — zephyr_z9 · 2026-10-21
- DeepSeek Open-Sources DeepInfer: 155T Tokens/Day and Up to 93% Inference Gross Margin — teortaxesTex · 2026-10-21
- DeepSeek's English DeepInfer deployment Q&A: multi-vendor chips, 72-hour KV cache — teortaxesTex · 2026-10-21
32 near-duplicate retellings: zhyncs42 · MaziyarPanahi · 智东西 · mitsuhiko · aigclink · 新智元 · 量子位 · teortaxesTex · yogthos · Apprehensive_Rub3897 · Promptmethus · rohanpaul_ai · lxfater · stochasticchasm · AccBalanced · petrusenko_max · Xianbao_QIAN · heyshrutimishra · basedjensen · CurieuxExplorer · Yuchenj_UW · dotey · DavidBennett__ · zhuohan123 · kingslyj · burny_tech · Shahules786 · tianyin_xu · APPSO · AIFlow_ML · swyx · PMinervini