On Oct 20 (UTC) DeepSeek open-sourced DeepInfer (Apache 2.0), the in-house inference stack that serves DeepSeek-V4.1-Flash at scale. The release covers offline inference with Attention DP/CP and MoE EP+EPLB parallelism, DSpark speculative decoding, SWA bounded replay, batch-invariant inference, deterministic sampling and structured outputs on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. The KV cache system, prefill/decode disaggregation and load balancing are not included. DeepSeek also released deepseek-recipe (MIT), which converts Chat Completions, Messages and Responses requests and encodes them the same way the official API does.

Key Takeaways

  • ✓DeepInfer is Apache 2.0 and, per DeepSeek, is the framework serving DeepSeek-V4.1-Flash in production; it currently supports only that model
  • ✓Hardware is limited to NVIDIA SM100 (Blackwell) GPUs and Huawei Ascend 950 NPUs; the official Pareto curves were measured on 4 GPUs for prefill and 64 for decode
  • ✓The open release omits the KV cache system, VE/prefill/decode disaggregation and cross-replica load balancing, so it is not a full serving stack yet
  • ✓DeepSeek's reference V4.1 scores (Pass@1, vendor-reported): AIME 2026 99.9%, GPQA Diamond 93.4%, HLE-Full 42.6%, meant as a deployment sanity check
  • ✓deepseek-recipe (MIT, Rust with Python bindings) handles Chat Completions/Messages/Responses conversion and token encoding/decoding
DeepSeek open-sources DeepInfer, the inference framework behind its V4.1-Flash production service, with speculative decoding, batch-invariant inference and structured outputs, plus the deepseek-recipe API encoding library
🖼️Official Media
Click to view high-res
🧭

Turn your technical choice into a development budget

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

🔬

In-Depth Technical Analysis

DeepSeek's open weights are popular, but new architectures such as V4.1-Flash (Engram, sliding-window attention) usually wait for vLLM or SGLang support, and community deployments rarely match the official API. On Oct 20 DeepSeek open-sourced DeepInfer, the framework behind its production service, and said inference code for future models will land there too. Per the GitHub repo, DeepInfer was originally built mainly on vLLM and uses FlashMLA, DeepGEMM, DeepEP, TileKernels and custom TileLang kernels. It supports Attention DP / balanced CP and MoE EP+EPLB, DSpark draft-token decoding with confidence-scheduled verification, SWA bounded replay to cut prefill work, a zero-overhead async scheduler, batch-invariant inference, deterministic sampling, and regex/JSON Schema/EBNF structured outputs. The companion deepseek-recipe library converts and encodes requests to match the official API. DeepSeek published only throughput-latency charts (4 GPUs for prefill, 64 for decode) with no head-to-head numbers versus vLLM or SGLang; its reference V4.1 scores (vendor-reported) are AIME 2026 99.9%, GPQA Diamond 93.4% and HLE-Full 42.6%. To try it you need NVIDIA SM100 or Ascend 950 hardware, Linux, Python 3.12, GCC 13+ and CUDA 13 or CANN 9.2; set DEEPINFER_ACCELERATOR, run ./build.sh, then examples/offline_inference.py. The KV cache system, prefill/decode disaggregation and load balancing are not included, so production serving still needs your own pieces or vLLM/SGLang.

Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up NextUnsloth ships DeepSeek-V4.1-Flash-1017 dynamic GGUFs: a 250 GB 1-bit quant runs on 128 GB+ RAM, with the Engram table offloaded to SSD
Read Now→