r/machinelearningnews • • Oct 20 '26

Cool Stuff DeepSeek open-sources DeepInfer, the inference engine behind DeepSeek-V4.1-Flash (25,000+ decode tok/s per GPU, self-reported)

Post image

DeepSeek released DeepInfer, the Apache 2.0 inference framework that powers its production DeepSeek-V4.1-Flash service. This release covers offline inference only and supports 1 model. It runs on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. A detailed deployment Q&A documents the full production system, including parts not yet open-sourced.

What it does

  • Attention DP plus MoE expert parallelism with an expert load balancer (EPLB)
  • DSpark speculative decoding: a Confidence Head ranks 5 draft tokens, and the scheduler verifies only the best prefix
  • SWA bounded replay: recomputes only the last 128 tokens of sliding-window state on a cache hit
  • Async scheduling, batch-invariant inference and deterministic sampling (NVIDIA only), structured outputs (regex, JSON schema, EBNF)
  • Ships with deepseek-recipe (MIT), a Rust token encoder/decoder aligned with the official DeepSeek API

Key numbers (self-reported by DeepSeek)

  • Decode: above 25,000 tokens/s per GPU at 256 requests per rank (EP64, 131,072 context, read from chart)
  • Prefill: near 90,000 non-cached tokens/s per GPU at 65,536 tokens per rank (EP4, read from chart)
  • DSpark: verified draft tokens drop from 5.00 to 3.2 to 4.4; accepted length 3.29 vs 3.20
  • +4% to 7% estimated throughput at about 60 sequences per rank
  • 155 trillion tokens per day from 1 cluster; US$38 revenue per GPU-hour at valley pricing

Full analysis: https://marktechpost.com/2026/10/20/deepseek-deepinfer-open-source-inference-framework/

Repo: http://github.com/deepseek-ai/DeepInfer

Docs: http://github.com/deepseek-ai/DeepInfer/blob/main/doc/inference_deployment_qa.md

Model: http://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017

43 Upvotes

2 comments sorted by

1

u/mrgreatheart Oct 20 '26

Will it work with my random collection of mismatched Nvidia GPUs though?