2026-11-26 15:47 UTC

DeepSeek releases its production inference engine, with key serving components still missing

state: corroboratedheat: lowuncertainty: mediumrelevance: highdeepseek inference-engine open-weight-serving self-hosted-inferenceDeepSeek-AI

What is this?

DeepSeek has released DeepInfer under Apache 2.0, describing it as the inference framework behind its large-scale production services. The repository currently supports DeepSeek-V4.1-Flash, with NVIDIA SM100 and Huawei Ascend 950 targets. It combines optimized kernels and parallelism with speculative decoding, asynchronous scheduling, deterministic and batch-invariant inference, and structured outputs. DeepSeek says it was built primarily on vLLM, with inspiration from SGLang and TensorRT-LLM. The release is for offline inference, not a complete service: DeepSeek lists KV-cache infrastructure, prefill/decode disaggregation, and replica load balancing as missing components. Its published performance benchmarks cover NVIDIA SM100; the supplied sources do not establish independent, like-for-like results against vLLM or SGLang.

Why it matters

The Apache-licensed engine and its documented serving techniques remain useful to developers and systems researchers, though limited model and hardware support and missing service components constrain immediate use as a general replacement for vLLM or SGLang.

Current assessment

DeepSeek’s Apache-2.0 DeepInfer repository describes an offline inference framework that powers its large-scale production services, supporting DeepSeek-V4.1-Flash on NVIDIA SM100 and Huawei Ascend 950 hardware. It documents optimized kernels, parallelism, speculative decoding, asynchronous scheduling, batch-invariant inference, deterministic sampling, and structured outputs; DeepSeek says it was built primarily on vLLM, with additional inspiration from SGLang and TensorRT-LLM. It is useful to developers on supported configurations and as a window into production inference engineering, but it is not yet a complete general-purpose serving stack: DeepSeek lists KV-cache infrastructure, prefill/decode disaggregation, and replica load balancing as missing. Published benchmarks are vendor-provided and cover SM100; independent like-for-like comparisons, Ascend results, broader compatibility, and meaningful adoption remain unestablished. A later HN video title makes an unverified claim about GPU value but supplies no supporting result. The launch discussion has cooled.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1010h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-15 13:00⭐ origin echo-reconstructedREADME: "DeepInfer is the high-performance inference framework that powers DeepSeek's large-scale production services. This open-source rele
DeepSeek (deepseek-ai) on github (echo) · attributed from hn.story.50163277
—
10-20 09:08first on hacker news · published · +116.2hDeepSeek just open-sourced its inference engine
ggcr
—
10-20 09:33first on r/LocalLLaMA · published · +116.6hDeepseek released DeepInfer - Open Source high-performance, large-scale inference framework for DeepSeek models!
feelspeaceman
—
10-20 11:42first on r/singularity · published · +118.7hDeepSeek open sources the inference engine for their models
yogthos
—
10-20 09:08amplified on hacker news 👑hn.story.50163277
ggcr
peak 2355 · 868 comments · 77% of case engagement
10-20 09:33amplified on r/LocalLLaMAreddit.post.1xanm55
feelspeaceman
peak 1015 · 158 comments · 16% of case engagement
10-20 11:42amplified on r/singularityreddit.post.1xapvvc
yogthos
peak 478 · 55 comments · 7% of case engagement
10-21 14:16amplified on r/LocalLLaMAreddit.post.1xbod5o
tkpred
peak 7 · 5 comments · 0% of case engagement
11-15 00:07amplified on hacker newshn.story.50502453
yogthos
peak 1 · 2 comments · 0% of case engagement
10-20 09:20our radar first saw it · +116.3hdiscovery anchor: hn.story.50163277—
10-20 15:09reached heat=high · +122.2h · via ledger——
pace: p99 vs 879 stories at the 720h mark (now 1010h old) — ahead of mario-64-mixed-reality-port (1.0x), behind php2shell-ai-assisted-vulnerability-discovery (0.7x)

Evidence (6) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnDeepSeek just open-sourced its inference engine
Retrieved article excerpt

Open article · Retrieved 2026-10-20T09:21:58.930925+00:00

# DeepInfer

DeepInfer is the high-performance inference framework that powers DeepSeek's large-scale production services. This open-source release provides offline inference with the core features needed for serving at scale.

Supported models:

- DeepSeek-V4.1-Flash

Supported features:

- Optimized kernels, model and sampler runtime
- Parallelism: Attention DP / balanced CP, MoE EP + EPLB
- DSpark and confidence-scheduled verification
- SWA bounded replay
- Asynchronous scheduling (zero-overhead batch scheduler)
- Batch-invariant inference
- Deterministic sampling
- Structured outputs

Feature details and configuration

- **Optimized kernels:** [FlashMLA](https://github.com/deepseek-ai/FlashMLA), [DeepGEMM](https://github.com/deepseek-ai/DeepGEMM), [DeepEP](https://github.com/deepseek-ai/DeepEP), [TileKernels](https://github.com/deepseek-ai/TileKernels), [DeepSelect](https://github.com/deepseek-ai/DeepSelect), and custom [TileLang kernels](https://github.com/deepseek-ai/DeepInfer/blob/main/deepinfer/model_executor/layers/tilelang_ops).
- **DSpark and confidence-scheduled verification:** accelerate decoding with draft tokens and use confidence estimates to schedule verification. Set `DEEPINFER_ENABLE_MTP_VARLEN=1`; `DEEPINFER_USE_NEXTN_DECODE` controls the maximum draft length (default: 5).
- **Decoder SWA bounded replay:** reduce decoder prefill work by replaying only a bounded suffix. Set `DEEPINFER_YOCO_PREFILL_TRUNCATION_MODE=compact` and `DEEPINFER_YOCO_PREFILL_KEEP_TOKENS=140` for the default V4.1 settings; the retained suffix must cover the SWA window plus the maximum backtracking length.
- **Asynchronous scheduling:** overlap CPU batch scheduling with device execution. Enabled by default.
- **Batch-invariant inference:** keep model results identical across different batch compositions. Enable with `DEEPINFER_BATCH_INVARIANT=1` (NVIDIA only).
- **Deterministic sampling:** produce identical outputs for identical input tokens and sampling parameters. Set `DEEPINFER_BATCH_INVARIANT=1 DEEPINFER_ENABLE_MTP_VARLEN=0` and pass a fixed `seq_seed` to `SamplingParams` (NVIDIA only).
- **Structured outputs:** constrain generation to a regex, JSON schema, or EBNF grammar. Pass `so_args={"schema_type": ..., "schema": ...}` to `SamplingParams`; see [examples](https://github.com/deepseek-ai/DeepInfer/blob/main/examples/_structured_output.py).

Supported hardware:

- NVIDIA SM100 GPUs
- Huawei Ascend 950 NPUs

Required for a complete inference service (not included in this release):

- A KV cache system
- VE/Prefill/Decode disaggregation (most required engine functionality is already implemented)
- Load balancing across data-parallel replicas for both prefill and decode

## Getting started

### Prerequisites

- Linux
- GCC >= 13.0
- Python 3.12
- CUDA 13 (NVIDIA only)
- CANN 9.2 (Ascend only)

### Build from source

Before building DeepInfer, please create and activate an empty Python 3.12 environment.

```
# Use `ascend` instead for the Ascend platform
# Keep it exported in the environment where you run DeepInfer
export DEEPINFER_ACCELERATOR=nvidia
./build.sh
```

### Offline inference

The default checkpoint, [`deepseek-ai/DeepSeek-V4.1-Flash-1017`](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017), is
downloaded into the Hugging Face cache on the first run; set `DEEPINFER_HF_MODEL_DIR=/path/to/DeepSeek-V4.1-Flash-1017` to
run from a local copy instead.

```
python examples/offline_inference.py
```

See [examples](https://github.com/deepseek-ai/DeepInfer/blob/main/examples/README.md) for details.

## Performance benchmarks

| Prefill | Decode |
| --- | --- |
| [Prefill: non-cached input throughput vs. latency](https://github.com/deepseek-ai/DeepInfer/blob/main/doc/images/prefill_pareto.png) | [Decode: output throughput vs. per-user speed](https://github.com/deepseek-ai/DeepInfer/blob/main/doc/images/decode_pareto.png) |

Measured on 4 SM100 GPUs for prefill and 64 for decode — each within one scale-up domain. To reproduce the benchmarks, see [run\_sweep.sh](https://github.com/deepseek-ai/DeepInfer/blob/main/examples/sweep/run_sweep.sh).

## Evaluation benchmarks

See [eval/README.md](https://github.com/deepseek-ai/DeepInfer/blob/main/eval/README.md).

## License

DeepInfer is released under the Apache License 2.0. See [LICENSE](https://github.com/deepseek-ai/DeepInfer/blob/main/LICENSE) for details.

## Acknowledgments

DeepInfer was originally built primarily on [vLLM](https://github.com/vllm-project/vllm), with additional inspiration from [SGLang](https://github.com/sgl-project/sglang) and [TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM). We thank their developers.

## Citation

```
@misc{deepinfer2026,
  title = {DeepInfer: High-performance, large-scale inference framework for DeepSeek models},
  author = {DeepSeek-AI},
  year = {2026},
  publisher = {GitHub},
  howpublished = {\url{https://github.com/deepseek-ai/DeepInfer}},
}
```
ggcr2355862
🟧 echo.github ⭐README: "DeepInfer is the high-performance inference framework that powers DeepSeek's large-scale production services. This open-source releDeepSeek (deepseek-ai)——
🟠 redditDeepseek released DeepInfer - Open Source high-performance, large-scale inference framework for DeepSeek models!
LocalLLaMA
feelspeaceman1015156
🟠 redditDeepSeek open sources the inference engine for their models
singularity
yogthos47853
🟠 redditI built an interactive, step-by-step code explainer for DeepSeek’s open-source inference engine (DeepInfer)
LocalLLaMA
tkpred75
🟧 hnDeepSeek's New LLM Engine Just Made GPUs 3x More Valuable [video]yogthos12

Interpretation history

Decision trace