DeepSeek Open-Sources DeepInfer, the Inference Framework Behind DeepSeek-V4.1-Flash

2026年10月20日 14:31
站內 AI 整理稿

DeepSeek has open-sourced DeepInfer, the inference framework that runs its production services.The DeepSeek DeepInfer inference framework is the engine behind DeepSeek-V4.1-Flash.It ships under the Apache 2.0 license.

DeepSeek also released deepseek-recipe, its MIT-licensed token encoding and decoding layer.For developers, this is a rare look at a frontier lab’s real serving stack.TL;DR Size / scope: 1 supported model (DeepSeek-V4.1-Flash), 1M-token context window per the model card.

Runs on: NVIDIA SM100 (Blackwell) GPUs and Huawei Ascend 950 NPUs.Benchmarks used 4 GPUs for prefill and 64 for decode.Performance: Production-grade throughput; DeepSeek says 1 cluster serves 155 trillion tokens per day.

Best: Above 25,000 output tokens/s/GPU at 256 requests per rank (EP64, 131,072 context).Worst: Offline inference only.KV cache system, P/D disaggregation and load balancing are not included.What is DeepInfer?DeepInfer is a high-performance inference engine from DeepSeek for its own models.

According to it’s GitHub README, it powers DeepSeek’s large-scale production services.This release covers offline inference with the core features needed at scale.It was originally built primarily on vLLM, with ideas from SGLang and TensorRT-LLM.The deployment Q&A gives production context.

A single cluster serves 155 trillion tokens per day.DeepSeek reports overall revenue of US$38 per GPU-hour at valley pricing.How does DeepInfer work?The engine stacks DeepSeek’s kernels: FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect and custom TileLang kernels.On top sit 5 system-level ideas.

Parallelism: Attention DP plus Wide-EP Attention uses data parallelism.The MoE layers use expert parallelism with an expert-parallel load balancer (EPLB).Decode runs EP64 to EP128 inside a supernode.Prefill uses the smallest EP that memory allows, typically EP2 to EP8.

DSpark: confidence-scheduled speculative decoding A draft model proposes 5 tokens per step.A Confidence Head predicts each draft token’s acceptance rate.The scheduler then verifies only the most valuable prefix.Per the Q&A, this cuts verified draft tokens by about 30% (5.00 to 3.2 to 4.4).

Accepted length barely moves (3.29 vs 3.20).SWA bounded replay On a cache hit, DeepInfer recomputes only the last 128 tokens of sliding-window attention state.That makes recomputation cost constant, regardless of context length.

In the decoder layers, DeepSeek says this nearly halves total prefill compute.Asynchronous scheduling, determinism and structured output CPU batch scheduling overlaps with GPU execution, so the GPU never idles between steps.

Batch-invariant inference and deterministic sampling are available on NVIDIA only.Structured outputs support regex, JSON schema and EBNF grammars.window.addEventListener("message",function(e){if(e.data&&e.data.id==="mtp-deepinfer-x"&&e.data.mtpEmbedHeight){var f=document.

getElementById("mtp-deepinfer-frame");if(f){f.style.height=e.data.mtpEmbedHeight+"px";}}}); How fast is DeepInfer?DeepSeek publishes Pareto curves for DeepSeek-V4.1-Flash at 131,072 context.Prefill ran on 4 SM100 GPUs; decode ran on 64.Figures below are read from those charts and are self-reported.

Decode (EP64DP64, nextn=3, 75% acceptance): Above 25,000 tokens/s/GPU at 256 requests per rank, near 100 tokens/s per user.At 8 requests, per-user speed passes 300 tokens/s.Prefill (EP4DP4, 140-token bounded replay): About 60,000 non-cached tokens/s/GPU at 4,096 tokens per rank.

Throughput nears 90,000 at 65,536 tokens, with roughly 730 ms per step.Wide-EP payoff: An EP8 vs EP64 chart shows EP64 ahead at every batch size.DSpark’s dynamic verification adds 4% to 7% throughput at about 60 sequences per rank.At 16 sequences per rank it is 1.

5% slower than fixed 5-token verification.How does DeepInfer compare with vLLM, SGLang and TensorRT-LLM?FeatureDeepInfervLLMSGLangTensorRT-LLMMaintainerDeepSeekvLLM projectSGLang projectNVIDIALicenseApache 2.0Apache 2.0Apache 2.0Apache 2.0Model coverage1 (DeepSeek-V4.

1-Flash)200+ architecturesLLMs, VLMs, diffusionSupport matrixHardwareNVIDIA SM100, Huawei Ascend 950NVIDIA, AMD, Intel, CPUs, plugins incl.

Ascend, TPUNVIDIA, AMD, TPU, Intel, Apple, Ascend, Moore ThreadsNVIDIA GPUsExpert parallelismYes, with EPLBYesYesWide-EPSpeculative decodingDSpark, confidence-scheduledn-gram, suffix, EAGLE, DFlashYes, via SpecForge draftsYesP/D disaggregationNot in this releaseYes (prefill, decode, encode)Via llm-d, Dynamo and othersYesOnline servingOffline inference onlyOpenAI-compatible serverYesYes What are DeepInfer’s limitations?

A full service still needs a KV cache system and VE/Prefill/Decode disaggregation.It also needs load balancing across data-parallel replicas.DeepSeek team states that those components are tightly coupled to internal infrastructure.Hardware is narrow.Builds require Linux, GCC 13 or later, Python 3.

12, and CUDA 13 or CANN 9.2.The smallest efficient production unit is 64 prefill GPUs plus 64 decode GPUs.The internal FlashMLA decoding kernel is 5% to 10% faster than the public one.End-to-end, DeepSeek puts the gap at 5% or less.

Key Takeaways DeepInfer is DeepSeek’s production engine, now Apache 2.0 on GitHub.It supports only DeepSeek-V4.1-Flash, on NVIDIA SM100 and Ascend 950.Decode tops 25,000 tokens/s/GPU on 64 GPUs (self-reported).DSpark cuts verified draft tokens about 30% with near-equal acceptance.

Offline only: no KV cache store, P/D disaggregation or load balancer.Check out the GitHub repo, deployment Q&A, deepseek-recipe and the model card.All credit goes to the researcher of this project.

Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!are you on telegram?now you can join us on telegram as well.The post DeepSeek Open-Sources DeepInfer, the Inference Framework Behind DeepSeek-V4.

1-Flash appeared first on MarkTechPost.

Related

相關文章

雷峰網模型更新

停止加薪!大眾計劃凍結全球大量員工薪酬至2030年;突發!美國發布DeepSeek禁令;馬斯克:明年向全美兒童贈送SpaceX股票

要聞提示1.停止加薪!大眾計劃凍結員工薪酬至2030年,涉及全球大量員工2.突發!美國發布DeepSeek禁令3.花錢之前先問網友意見!「錢包請等等」突然爆火:主打「勸你別買」4.豆包闢謠超一半算力在造爽劇:不靠譜,只有10%5.特斯拉喊話:沒有「速成車」6.

5 小時前
雷峰網模型更新

亞太唯一!阿里雲連續4年獲評 Gartner 容器管理領導者象限

近日,國際權威諮詢公司Gartner正式發佈2026年度《容器管理魔力象限》報告,阿里雲連續4年入選該報告,穩居“領導者”象限,是亞太地區唯一獲此殊榮的科技公司。Gartner在報告中將“豐富的AI集成”、“全面的功能覆蓋”和“在嚴苛生產環境中的廣泛使用”列為阿里雲的核心優勢。在同期發佈的《容器管理關鍵能力》報告中,阿里雲在六大場景中有四項位居前二, 進一步彰顯AI時代的技術領先優勢。

6 小時前

AI日報:騰訊開放元寶搜索;MiniMax 更新 M3.1Flash;螞蟻百靈開源 Ming-3.0 語音系列

新鮮AI產品點擊瞭解:https://app..com/zh1.騰訊開放元寶搜索,千億級索引支持AI智能體調用騰訊正式開放元寶搜索,通過Skill、MCP和API三種方式向開發者提供服務。該搜索引擎擁有千億級索引,接入157個行業權威信源,將底層索引檢索平均耗時降至8毫秒,並提供每月2000次免費調用額度。

7 小時前6600

AI助手初創公司Town完成1.08億美元B輪融資,估值突破10億美元

Town成立僅兩年,於四個月前正式上線,隨後在數週內實現數百萬美元的年度經常性收入(ARR)。截至目前,公司累計融資至少1.6億美元,此前於6月完成5500萬美元A輪融資。Town由前Plaid首席技術官Jean-Denis Greze創立,主要面向企業市場,為每位員工提供名為Townie的AI助手。

14 小時前

亞馬遜推開源 TorchNeuron:改一處配置,PyTorch 就能跑在自研 Trainium 上

它的賣點很直接:開發者寫好的 PyTorch 代碼,無需重寫,只改一處配置,就能在亞馬遜自研的 Trainium 芯片上原生跑起來。這套工具定於 20 日在加州聖何塞的北美 PyTorch 大會上以開源許可正式發佈。為了證明"無縫"不是嘴上說說,亞馬遜工程師把同一份 AI 訓練腳本分別跑在傳統芯片和 Trainium 上,唯獨區別是代碼裡指定所用芯片的設置參數。

15 小時前6600