DeepSeek开源推理引擎DeepInfer及生产数据
[AINews] DeepSeek DeepInfer: Open Source SOTA Inference running 155T toks/day/cluster making $22m/day at ~80% margin for a 81 day payback
DeepSeek开源了经过大规模生产验证的推理引擎,附带极具参考价值的工程架构与性能数据,对做AI基础设施的同学是重要实战素材。
Proudly brought to you by SerpAPI: Today’s release covers a LOT of ground, but you can scrape all this into markdown for your agents! 50% token cost of JSON.
由 SerpAPI 自豪呈现:今天的发布涵盖了大量内容,但你可以将这些数据抓取为 Markdown 格式供你的智能体使用!JSON 的 Token 成本仅为 50%。
We last covered the Inference Inflection in April, and historically most of the advances have been closed source decacorns from Fireworks to Baseten to Modal.
我们上次在四月报道了推理加速(Inference Inflection),历史上大多数进展都来自 Fireworks、Baseten 到 Modal 等闭源独角兽企业。
Well, time for the open source response. It is day 1 of PyTorch Conf, and DeepSeek timed an intercontinental ballistic missile into the discussion by open sourcing DeepInfer, their production stack, capable of up to 72 hour prompt caching to the 12 hours OpenAI just announced:
好吧,是时候看看开源界的回应了。今天是 PyTorch Conf 的第一天,DeepSeek 通过开源其生产栈 DeepInfer 向讨论中发射了一枚洲际弹道导弹,该栈支持长达 72 小时的提示词缓存,而 OpenAI 刚刚宣布的是 12 小时:
This is their customization of vLLM with credit to SGLang and TRRTLLM, but there is a lot added… minus their crown jewels - their ultra optimized KV cache (compact + >8hour lifetime), PD/disggregation, and load balancing (their 3FS was open sourced a while ago). We have translated their blogpost and published it here together with a complete research guide and explainers and codemap and subsystem guide:
这是他们对 vLLM 的定制版本,并归功于 SGLang 和 TRRTLLM,但其中添加了许多内容……除了他们的核心机密——超优化的 KV 缓存(紧凑且寿命超过 8 小时)、PD/解耦以及负载均衡(他们的 3FS 早在之前就已开源)。我们翻译了他们的博客文章,并与完整的研究指南、解释说明、代码地图和子系统指南一起发布在这里:
As we point out in their additional disclosure, their claim to serve 155T tokens/day gets them $38 per SM100/A950 card per hour at off peak prices (currently $0.15/$0.60 per million input/output tokens: 155000000 tokens * $0.14 blend cost / 24 hours is ~$1m per hour). Taking their production data (which we translated) of 1.5 million cache-inclusive input tokens/second per prefill GPU, 96% input cache hit, and 14,000 output tokens/second per decode GPU (over ~2400 GPUs):
正如我们在他们的额外披露中指出的那样,他们声称每天处理 155T token 的能力,在低谷期价格下(目前每百万输入/输出 token 分别为 $0.15/$0.60:155,000,000 tokens * $0.14 混合成本 / 24 小时 ≈ 每小时 $1m),相当于每张 SM100/A950 卡每小时 $38。根据他们已翻译的生产数据,每个预填充 GPU 每秒处理 150 万包含缓存的输入 token,输入缓存命中率为 96%,每个解码 GPU 每秒处理 14,000 个输出 token(涉及约 2400 张 GPU):
with all-in costs $5-8 per card per hour that is an >80% inference margin!
考虑到所有成本,每张卡每小时 $5-8,这意味着推理利润率超过 80%!
Doing some cluster math, that is roughly $166B per GW, with 81 day payback period on inference margin (DeepSeek famously plans for 10 month payback). Imagine what the Whale could do with more GWs.
进行一些集群计算,这大约是每 GW(千兆瓦特)$166B,推理利润的回本周期为 81 天(DeepSeek 众所周知计划回本周期为 10 个月)。想象一下,如果鲸鱼拥有更多 GWs 能做什么。
Sponsored by SerpAPI!
由 SerpAPI 赞助!
Give Your AI Agents Live Search Data with Fewer Tokens
用更少的 Token 为你的 AI 智能体提供实时搜索数据
Receive results from any of SerpApi’s 100+ APIs as clean, structured Markdown, using roughly 50% fewer tokens than JSON on average. Simply add output=md or use the /search.md endpoint. It requires zero configuration and is included with every plan at no additional cost.
以干净、结构化的 Markdown 格式接收来自 SerpApi 100+ API 的结果,平均比 JSON 少使用约 50% 的 Token。只需添加 output=md 或使用 /search.md 端点即可。无需任何配置,并且包含在所有计划中,不收取额外费用。
AI News for 10/19/2026-10/20/2026. We checked 12 subreddits, 544 Twitters and no further Discords. AINews’ website lets you search all past issues. As a reminder, AINews is now a section of Latent Space. You can opt in/out of email frequencies!
2026年10月19日-2026年10月20日的 AI 新闻。我们检查了 12 个子版块、544 条推文,没有进一步的 Discord 消息。AINews 的网站允许你搜索所有过往期刊。提醒一下,AINews 现在是 Latent Space 的一部分。你可以选择加入或退出电子邮件频率!
AI Twitter Recap
AI Twitter 回顾
Top Story: DeepSeek DeepInfer—Production Inference, Open-Source Boundaries, and the Economics of Cached Tokens
头条故事:DeepSeek DeepInfer——生产级推理、开源边界与缓存 Token 的经济性
What happened
发生了什么
DeepSeek released DeepInfer, the inference engine behind V4.1 Flash, alongside production-serving details that make the engineering report as important as the code.
DeepSeek 发布了 DeepInfer(V4.1 Flash 背后的推理引擎),并公布了生产环境部署细节,使得这份工程报告与代码本身同等重要。
- The release covers the inference engine and API-processing layer. DeepInfer supports distributed inference, speculative decoding, SWA Bounded Replay, and structured output on NVIDIA and Huawei Ascend platforms. The accompanying deepseek-recipe component implements production token encoding/decoding and official-API-compatible processing. DeepSeek says future model inference implementations and optimizations will also appear in this repository. @deepseek_ai, @deepseek_ai, announcement translation
- The reported production figures are substantial—but describe a heavily cached service. DeepSeek’s engineering report, as summarized and quoted in the supplied posts, reports 155 trillion tokens/day from one cluster, 96% input-cache hits, 400 ms average time to first token, and 230 tokens/s generation, reaching 300 tokens/s for coding. It also reports $38 revenue per accelerator-hour at off-peak prices. These are first-party production claims, not independently audited measurements. @ZhihuFrontier, @swyx
- “Fully open source” does not mean the entire production service is reproducible from this release. Although DeepSeek describes DeepInfer as fully open source, the technical account says the KV-cache management and load-balancing components are not yet fully released, because they remain coupled to internal infrastructure. The engine is open; important service-level orchestration remains a deployment responsibility. @deepseek_ai, @ZhihuFrontier
- vLLM supplied the most concrete comparative response. After acknowledging that DeepInfer was initially built primarily on vLLM and released under Apache 2.0, the vLLM team reported decode throughput within 6% of DeepInfer’s published results on GB200 under a matched configuration. It also published AgentX results and reproduction recipes, materially qualifying claims that DeepSeek’s efficiency is inaccessible to existing open-source engines. @vllm_project, @vllm_project, reproduction resources
- The release triggered two distinct debates: whether DeepSeek has a uniquely strong serving stack, and whether its disclosures demonstrate high inference profitability more generally. The first now has comparative benchmark evidence; the second remains sensitive to workload mix, cache accounting, hardware cost, and which expenses are included. @Tim_Dettmers, @zephyr_z9, @Yuchenj_UW
- 此次发布涵盖了推理引擎和 API 处理层。DeepInfer 支持在 NVIDIA 和华为昇腾平台上的分布式推理、投机解码、SWA Bounded Replay 以及结构化输出。配套的 deepseek-recipe 组件实现了生产级的 token 编解码及官方 API 兼容的处理逻辑。DeepSeek 表示,未来模型的推理实现和优化也将出现在该仓库中。@deepseek_ai, @deepseek_ai, announcement translation
- 报告中公布的生产数据相当可观——但描述的是一个高度依赖缓存的服务。根据所附帖子中的摘要和引用,DeepSeek 的工程报告显示:单个集群每天处理 155 万亿个 token,输入缓存命中率达 96%,首 token 平均延迟为 400 毫秒,生成速度为每秒 230 个 token(编码任务可达每秒 300 个 token)。此外,还报告了在非高峰时段每加速器小时的收入为 38 美元。这些是 DeepSeek 自身声称的生产数据,而非经过独立审计的测量结果。@ZhihuFrontier, @swyx
- "完全开源"并不意味着整个生产服务都能从本次发布中复现。尽管 DeepSeek 将 DeepInfer 描述为完全开源,但其技术账号指出,KV 缓存管理和负载均衡组件尚未完全公开,因为它们仍与内部基础设施紧密耦合。引擎本身是开源的;重要的服务级编排工作仍是部署方的责任。@deepseek_ai, @ZhihuFrontier
- vLLM 提供了最具体的对比回应。在承认 DeepInfer 最初主要基于 vLLM 构建并以 Apache 2.0 许可证发布后,vLLM 团队报告称,在配置匹配的情况下,其在 GB200 上的解码吞吐量达到了 DeepInfer 公布结果的 94%(即差距在 6% 以内)。他们还发布了 AgentX 的结果和复现配方,有力地反驳了“现有开源引擎无法达到 DeepSeek 效率”的说法。@vllm_project, @vllm_project, reproduction resources
- 此次发布引发了两场截然不同的辩论:一是 DeepSeek 是否拥有独特强大的服务栈,二是其披露的数据是否普遍证明了高推理盈利能力。前者现在已有对比基准测试证据支持;后者则对 workload 组合、缓存统计方式、硬件成本以及包含哪些费用等因素非常敏感。@Tim_Dettmers, @zephyr_z9, @Yuchenj_UW
Architecture: separate stages, schedule compute rather than tokens
架构:分离各阶段,按计算量而非 token 数进行调度
DeepInfer’s disclosed architecture separates vision encoding, prefill, and decode, allowing each stage to scale against its own bottlenecks. The recommended deployment shapes are ordinary eight-accelerator machines for prefill and 64–128-accelerator supernodes for decode. Decode uses wide expert parallelism to distribute MoE experts while maintaining large effective batches. These are deployment recommendations, not sufficient evidence of the exact hardware composition of DeepSeek’s production cluster. @ZhihuFrontier
DeepInfer 公开的架构将视觉编码、预填充(prefill)和解码(decode)分离,使每个阶段都能针对自身的瓶颈进行扩展。推荐的部署形态是用于预填充的普通八卡加速机,以及用于解码的 64–128 卡超级节点。解码阶段使用宽专家并行(wide expert parallelism)来分布 MoE 专家,同时保持较大的有效批次。这些是部署建议,并非证明 DeepSeek 生产集群确切硬件构成的充分证据。@ZhihuFrontier
The scheduling details explain why a conventional “tokens per batch” comparison can miss substantial differences:
调度细节解释了为什么传统的“每批次 token 数”比较可能会忽略显著差异:
- Prefill scheduling estimates attention-compute cost. Work is allocated using estimated compute rather than raw request length alone. Chunk sizes vary to fit a time budget, instead of enforcing one fixed chunk size across heterogeneous requests. @ZhihuFrontier
- Prefill routing does not require cache affinity. Because cached prefixes are pooled in shared storage, a request can go to an available worker rather than the worker that previously served its prefix. In a detailed Chinese-language analysis, inference engineer Su Jin Yan highlights this as a particularly useful production design: prefill data-parallel groups balance on “compute tokens,” while shared storage supplies reusable state. The same analysis highlights request bucketing and FIFO scheduling with a runtime estimator. @SuJinYan123
- Decode routing balances both running-request count and KV-cache length. Request count approximates scheduling pressure; accumulated KV length captures memory/state pressure that request count alone misses. The engineering commentary describes prefill/decode scaling signals as aggregate compute load for prefill and running requests for decode. @ZhihuFrontier, @SuJinYan123
- Expert-parallel load balancing replicates popular experts. Replicas are periodically redistributed to reduce inter-device waiting caused by routing skew. The trade-off is additional HBM consumption against higher throughput, with diminishing returns as replication increases; the useful replication factor is workload-specific. @ZhihuFrontier, @SuJinYan123
- CPU scheduling overlaps accelerator execution. Asynchronous scheduling removes idle gaps between decode steps rather than treating host-side orchestration as free. @ZhihuFrontier
- 预填充调度会估算注意力机制的计算成本。工作分配基于估算的计算量,而非仅依据原始请求长度。块大小会根据时间预算进行调整,而不是在异构请求中强制执行单一的固定块大小。@ZhihuFrontier
- 预填充路由不需要缓存亲和性。由于缓存的前缀存储在共享存储中池化,请求可以发送到任何可用的工作节点,而不必是之前服务其前缀的工作节点。在一篇详细的中文分析中,推理工程师苏锦言(Su Jin Yan)强调这是生产中特别有用的设计:预填充的数据并行组在“计算 token”上实现平衡,而共享存储提供可复用的状态。同一分析还强调了请求分桶和带有运行时估计器的 FIFO 调度。@SuJinYan123
- 解码路由平衡运行中的请求数量和 KV 缓存长度。请求数量近似于调度压力;累积的 KV 长度捕获了仅靠请求数量无法体现的内存/状态压力。工程评论将预填充/解码的扩展信号描述为预填充的聚合计算负载和解码的运行请求。@ZhihuFrontier, @SuJinYan123
- 专家并行负载均衡会复制热门专家。副本会定期重新分配,以减少因路由倾斜导致的设备间等待。这种权衡是以额外的 HBM 消耗换取更高的吞吐量,随着复制次数增加会出现收益递减;有效的复制因子取决于具体 workload。@ZhihuFrontier, @SuJinYan123
- CPU 调度与加速器执行重叠。异步调度消除了解码步骤之间的空闲间隙,而不是将主机端的编排视为免费操作。@ZhihuFrontier
One technically notable observation is the apparent absence of tensor parallelism in the disclosed Blackwell configuration. A commentator contrasts this with default vLLM/SGLang recipes and traces the approach back to DeepSeek V3’s H800-era interconnect constraints. That is an interpretation of the configuration—not evidence that tensor parallelism is generally inferior. @nrehiew_
一个在技术上值得注意的观察是,在公开的 Blackwell 配置中似乎缺乏张量并行(tensor parallelism)。一位评论者将其与默认的 vLLM/SGLang 配方进行对比,并将这种方法的起源追溯到 DeepSeek V3 在 H800 时代的互连限制。这仅是对该配置的一种解读——并不能证明张量并行在总体上劣于其他方案。@nrehiew_
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力