DeepInfer: DeepSeek open-sources the engine behind V4.1-Flash (plus LFM2.5-DSpark drafters)
Date: 2026-10-21 · Sources: DeepSeek on X, GitHub, The Decoder, AI Weekly Espresso (10-20), community breakdowns by @bookwormengr and @rohanpaul_ai; LiquidAI LFM2.5-24B-A2B-DSpark (labs watcher). Raw: raw/rss/2026-10-20-the-decoder-deepseek-open-sources-the-inference-engine-that-powers.md, raw/labs/2026-10-21-203321-labs.md, X feed captures 10-20 evening.
TL;DR
DeepSeek released DeepInfer, the inference framework that serves DeepSeek-V4.1-Flash in production, under Apache 2.0. It targets NVIDIA SM100 (Blackwell) GPUs and Huawei Ascend 950 NPUs and only runs V4.1-Flash. What ships is the speed layer: optimized kernels, wide expert parallelism, the DSpark speculative drafter (up to ~5 tokens ahead, with confidence-scheduled verification), and "bounded replay" that recomputes only a 140-token suffix sized to the sliding attention window instead of re-prefilling. What does not ship, per Rohan Paul's read of the repo: the KV cache system, prefill/decode disaggregation and cross-replica load balancing. A companion deepseek-recipe library maps Chat Completions / Responses / Messages requests onto V4/V4.1 prompts so community deployments match the official API. It passed 6.3K GitHub stars in about 8 hours. The same day Liquid AI shipped DSpark-style drafters for its whole LFM2.5 family, so DSpark is now a named drafter design with two independent production users.
flowchart LR
R["Request<br/><small>API-shaped prompt</small>"] --> P["Small prefill<br/><small>~8B active, 8 GPUs</small>"]
P --> BR["Bounded replay<br/><small>recompute 140-token suffix</small>"]
BR --> D["Wide-EP decode<br/><small>experts over 64 GPUs</small>"]
D --> S["DSpark drafter<br/><small>~5 tokens, confidence-gated</small>"]
S -->|accepted| O["Tokens out<br/><small>lower $ per token</small>"]
S -->|rejected| D
X["Not shipped<br/><small>KV system, P/D split, LB</small>"]
classDef input fill:#d0ebff,stroke:#1971c2,color:#1b1b1b,stroke-width:2px
classDef core fill:#e5dbff,stroke:#6741d9,color:#1b1b1b,stroke-width:2px
classDef loop fill:#fff3bf,stroke:#f08c00,color:#1b1b1b,stroke-width:2px
classDef exit fill:#d3f9d8,stroke:#2f9e44,color:#1b1b1b,stroke-width:2px
classDef err fill:#ffe3e3,stroke:#e03131,color:#1b1b1b,stroke-width:2px
class R input
class P,BR,D core
class S loop
class O exit
class X err
linkStyle 4 stroke:#2f9e44,stroke-width:2px
linkStyle 5 stroke:#f08c00,stroke-width:2px
Key points
- Where the efficiency comes from (community analysis, not DeepSeek's paper): Engram-style conditional memory removes ~30% of parameter compute by reading embedding rows selectively; prefill activates ~8B params per token vs ~16B for decode, so only 8 GPUs of an NVL72 rack do prefill; decode spreads experts across 64 GPUs (DP64 + EP64, ~45B mostly 4-bit params per GPU), leaving most HBM for KV; KV reuse is claimed to cut KV per token ~400x vs a GQA baseline; NVLink moves KV from prefill to decode GPUs; DSpark accepts up to ~4 tokens on code.
- Tension in the reports: one reading says disaggregation is described in the deployment, the other says the disaggregation and KV-cache layers are exactly what was held back. Both can be true: DeepSeek runs disaggregated, but open-sourced the per-engine kernels only.
- Ascend 950 support puts the same engine on Huawei silicon that DeepSeek said it will pre-train on by end-2026. The same week DHS ordered DeepSeek products (including third-party products built on DeepSeek tech) out of federal civilian systems.
- LFM2.5-24B-A2B-DSpark (Liquid AI): a 327.7M-param drafter (5 full-attention layers, block size 9, a rank-256 "Markov head" plus a confidence head) for a 24B-A2B MoE. On B300 with an FP8 target in SGLang: 2.4x average output throughput at concurrency 1 (up to 3.1x), 1.7x at concurrency 256. Drafters ship for 1.2B, 2.6B, VL-3B, 8B-A1B and 24B-A2B targets, plus GGUF for llama.cpp.
Relation to prior wiki pages
- Confirms the speculative-decoding page's 10-17 comparison set: DSpine was benchmarked against DFlash2 and DSpark on acceptance length. DSpark is now in two shipping stacks (DeepSeek, Liquid), which moves it from "a baseline" to "a production default". See speculative-decoding.
- Extends conditional-memory-embeddings: the page's central claim (token-ID-addressed lookups are a systems win because the address is known before any layer runs) now has an open-source serving engine built around it. Same day, the N-gram memories at two bits paper cuts DeepSeek's table from 203 GB to 51 GB.
- KV-cache page tension (10-20): the vLLM push-mode KV transfer work showed disaggregation lives or dies on the KV transport layer. DeepInfer withholds exactly that layer, so the hard part of reproducing DeepSeek's cost curve is still private.
Open questions
- Will the community rebuild the missing KV/disaggregation layer on top of vLLM or llm-d 1.0 (released the same day at PyTorchCon), and how close to DeepSeek's API price does that get?
- DSpark acceptance on long agentic traces: DLite (10-20) showed drafters lose up to 80% of acceptance length there.