DeepSeek开源DeepInfer推理框架与工具链
Full text of DeepSeek's announcement in Chinese, translated (I'll omit fangirl n…
DeepSeek将核心推理框架DeepInfer开源,涵盖分布式调度与多硬件适配,对做私有化部署或追求极致推理性能的工程团队极具参考价值,建议关注其架构设计。
Full text of DeepSeek's announcement in Chinese, translated (I'll omit fangirl noises):
DeepSeek 公告的全文中文版,已翻译(我将省略粉丝的欢呼声):
DeepSeek Open-Sources Its Inference Framework: Toward a Future of Truly Universal Access
DeepSeek 开源其推理框架:迈向真正普遍访问的未来
The capability boundaries of large models are defined by the models themselves, but serving ultra-large-scale models at a reasonable cost also depends on a middle layer that has long gone unnoticed by the public: the inference framework.
大模型的能力边界由模型本身定义,但以合理成本服务超大规模模型还依赖于一个长期被公众忽视的中间层:推理框架。
Training is how a model learns; inference is how it becomes useful to people. Faced with today's enormous volume of user requests, the inference framework orchestrates and schedules vast compute clusters, and its efficiency directly determines the compute cost and power consumption of AI services.
训练是模型学习的过程;推理是模型为人们带来价值的过程。面对如今海量的用户请求,推理框架协调并调度庞大的计算集群,其效率直接决定了 AI 服务的计算成本和功耗。
DeepSeek has long been committed to pushing inference performance to its limits. Building on our earlier open-sourcing of a series of large models, the TileLang compiler toolchain, and our inference operator library, we have decided to go further and fully open-source our internal inference framework, DeepInfer.
DeepSeek 一直致力于将推理性能推向极限。在之前开源一系列大模型、TileLang 编译器工具链以及我们的推理算子库的基础上,我们决定更进一步,完全开源我们的内部推理框架 DeepInfer。
"Do good together with the many; share skill so that the many may be skilled." By sharing our internal deployment experience, we hope to help developers and enterprises optimize throughput and latency for large-scale inference, so they can efficiently build private and public cloud deployments, lower compute costs, and reduce energy consumption, bringing intelligence to a broader population at a lower price and making large models truly accessible to all. We will also continue to support the community in optimizing large-scale deployments, and we welcome you to join us in open source.
"与大众行善,分享技能使大众皆能掌握"。通过分享我们的内部部署经验,我们希望帮助开发者和企业优化大规模推理的吞吐量和延迟,使他们能够高效构建私有云和公有云部署,降低计算成本,减少能源消耗,以更低的成本将智能带给更广泛的人群,让大模型真正普及。我们将继续支持社区优化大规模部署,并欢迎你们加入我们的开源行列。
DeepInfer
Using DeepInfer, we have achieved high-throughput, low-latency large-scale inference serving for DeepSeek V4.1 Flash. Going forward, inference code and subsequent optimizations for new DeepSeek models will continue to be released here.
使用 DeepInfer,我们为 DeepSeek V4.1 Flash 实现了高吞吐、低延迟的大规模推理服务。未来,针对新 DeepSeek 模型的推理代码及后续优化将持续在此发布。
DeepInfer inference framework: An inference engine that integrates high-performance operators with deep optimizations. It supports distributed inference, speculative decoding, SWA Bounded Replay, structured output, and more, and is compatible with both NVIDIA and Huawei Ascend platforms. deepseek-recipe encoding/decoding component: A production-grade token encoding/decoding component, open-sourced alongside DeepInfer. It is fully aligned with the processing logic of DeepSeek's official API, so the community gets an API experience consistent with our official deployment.
DeepInfer 推理框架:一款集成高性能算子与深度优化的推理引擎。它支持分布式推理、投机解码、SWA Bounded Replay、结构化输出等,并兼容 NVIDIA 和华为昇腾平台。 deepseek-recipe 编解码组件:一个生产级的 token 编解码组件,随 DeepInfer 一同开源。它与 DeepSeek 官方 API 的处理逻辑完全对齐,因此社区可获得与我们官方部署一致的 API 体验。
Open-source repositories
开源仓库
DeepInfer: https://github.com/deepseek-ai/DeepInfer deepseek-recipe: https://github.com/deepseek-ai/deepseek-recipe
Copy the link into your browser or tap "Read the original" to view DeepSeek's technical report on Zhihu: https://zhuanlan.zhihu.com/p/2095560295930508953
将链接复制到浏览器,或点击“阅读原文”在知乎上查看 DeepSeek 的技术报告:https://zhuanlan.zhihu.com/p/2095560295930508953
Looking Ahead
展望未来
With fully open-sourced models, operator libraries, and inference frameworks, we look forward to a near future in which the reach and quality of AI services worldwide expand and improve as never before, becoming fairer, more transparent, and more trustworthy. We hope this will accelerate technological progress across society and cut energy waste, letting limited resources flow more efficiently between infrastructure and end users, and delivering more powerful intelligence at a cost everyone can afford, along with the goodwill and boundless possibilities that come with it.
随着模型、算子库和推理框架的全面开源,我们期待一个即将到来的未来:全球 AI 服务的覆盖范围和质量将前所未有地扩展和提升,变得更加公平、透明和可信。我们希望这将加速全社会的技术进步,减少能源浪费,使有限的资源在基础设施与终端用户之间更高效地流动,并以每个人都能负担得起的成本提供更强大的智能,以及随之而来的善意和无限可能。
DeepSeek will work hand in hand with all of you, striving tirelessly to make this vision a reality.
DeepSeek 将与各位携手同行,不懈努力实现这一愿景。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力