DeepInfer: DeepSeek open-sources its inference engine, but it runs one model, offline, for now
TL;DR
DeepInfer is DeepSeek's open-source inference engine (Apache-2.0, built mainly on vLLM). The release runs only DeepSeek-V4.1-Flash, offline, on NVIDIA SM100 GPUs or Huawei Ascend 950 NPUs. It has no KV cache system and no online serving. The $38 per GPU-hour figure is unverified.
On this page
DeepInfer is the open-source inference engine from DeepSeek, the software that loads a model and turns prompts into text on GPUs. The README calls it the framework behind DeepSeek's production services, and this first release covers offline inference only. It runs one model, DeepSeek-V4.1-Flash, on two kinds of hardware. For most people the practical answer today is that vLLM or SGLang still serve a wider range of models and machines.
- Repo
- deepseek-ai/DeepInfer
- Licence
- Apache-2.0
- Maintained by
- DeepSeek-AI (no individual maintainers named)
- Activity
- 10.3k stars, 900 forks, 80 open pull requests, 3 commits on main (GitHub, 20 Oct 2026)
- Models
- DeepSeek-V4.1-Flash only (default checkpoint DeepSeek-V4.1-Flash-1017)
- Hardware
- NVIDIA SM100 GPUs, Huawei Ascend 950 NPUs
What it does
Per the README, DeepInfer was built mainly on vLLM, with ideas from SGLang and TensorRT-LLM, and it uses DeepSeek's own kernels (small GPU programs): FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect and custom TileLang kernels. Listed features:
- Parallelism options for spreading a model across GPUs: attention data parallelism, balanced context parallelism, and expert parallelism with load balancing for the mixture-of-experts layers.
- DSpark, a draft-token decoding method (the engine guesses several tokens ahead and verifies them), switched on with an environment variable.
- Asynchronous scheduling, on by default.
- Batch-invariant inference and deterministic sampling, so the same prompt gives the same output. These work on NVIDIA only.
- Structured outputs from a regex, a JSON schema or a grammar.
What is missing
- Done: Offline inference with the core serving features
- Done: Structured outputs
- Not done: A KV cache system (the stored attention state that lets a server reuse earlier work)
- Not done: Prefill/decode disaggregation (running the two phases on separate machines)
- Not done: Load balancing across data-parallel replicas
- Not done: Online or API serving (only offline use is documented)
The README says the missing pieces are needed for a complete inference service. It publishes charts for prefill and decode speed, measured on 4 and 64 SM100 GPUs, but the page gives no numbers in text. A sweep script (examples/sweep/run_sweep.sh) is included to reproduce them.
Try it
The prerequisites are heavy: Linux, GCC 13 or later, Python 3.12, and CUDA 13 for NVIDIA or CANN 9.2 for Ascend.
- Make an environmentCreate an empty Python 3.12 environment and activate it.
- BuildSet
DEEPINFER_ACCELERATOR=nvidia(orascend) and run./build.sh. - Run
python examples/offline_inference.py. The checkpoint downloads from Hugging Face on first run; setDEEPINFER_HF_MODEL_DIRto use a local copy.
What it replaces
This table uses what each project's README lists as of 20 Oct 2026.
| DeepInfer | vLLM | SGLang | |
|---|---|---|---|
| Licence | Apache-2.0 | Apache-2.0 | Apache-2.0 |
| Stars | 10.3k | 94.3k | 37.5k |
| Models | DeepSeek-V4.1-Flash | Many, including DeepSeek-V3 | Many; hardware list below |
| Serving | Offline only | OpenAI-compatible API server, Anthropic Messages API, gRPC | Not listed in the README |
| Hardware | NVIDIA SM100, Ascend 950 | NVIDIA, AMD, Intel GPUs, several CPUs, plus plugins for TPUs, Gaudi, Ascend and others | NVIDIA, AMD Instinct, Google TPU, Intel, Apple Silicon, Ascend, Moore Threads |
| Disaggregated prefill/decode | Not yet | Yes | Not described in the README |
Star counts show attention and say nothing about quality. No independent benchmark compares the three on the same hardware, and DeepInfer's own charts have no numbers in the README. For any model other than V4.1-Flash, or any machine other than SM100 and Ascend 950, DeepInfer is not an option yet.
The $38 per GPU-hour figure
The repo says nothing about revenue. A $38 per card per hour figure, and a claim that one cluster serves 155 trillion tokens a day at off-peak pricing, circulate in a Hacker News comment quoting a Chinese-language post and in a post on X. Nobody in the discussion verified either number. Commenters also pointed out that it would be revenue, which is a different figure from profit.
Who's behind it
DeepSeek-AI publishes the repo under its own organisation, with no individual maintainers listed. The Hacker News post had 1,703 points and 621 comments as of 20 Oct 2026. Much of the discussion is about inference economics and whether AI becomes a commodity, with little on the engine itself.
Best for / skip if
Best for
- teams with SM100 GPUs or Ascend 950 NPUs who want to study or run DeepSeek's own serving code, and engineers who want to read how DeepSeek handles expert parallelism and draft-token decoding.
Skip if
- you need to serve other models, run on other hardware, expose an API, or deploy a full service today. Use vLLM or SGLang until the cache, disaggregation and load-balancing pieces ship.
Sources
- deepseek-ai/DeepInfer: licence, features, hardware, install steps, missing components, stars
- vllm-project/vllm: licence, stars, serving, hardware and feature list
- sgl-project/sglang: licence, stars, hardware list
- Hacker News discussion: the $38 and 155T figures, reader reaction
Continue reading
Top 10 open-model inference providers compared on price, speed and uptime, plus when owning a GPU pays off
Ten inference providers charge $0.34 to $1.12 per million tokens for the reference open model used here (Qwen3.8-27B), as of 20 Oct 2026, and Cerebras is about ten times faster than a typical host. An RTX 5090 pays back against them in 8 to 44 months only at heavy use.
Reflection's Beam is a 501B open-weight model for coding agents: where it fits and what it costs to run
Reflection released the weights of Beam, a 501B-parameter open-weight model with 23B active parameters, under Apache 2.0 on 16 October 2026. Artificial Analysis scores it 30 on its Intelligence Index, second among US open-weight models, and says K2 Horizon, one point ahead, uses about twice the output tokens.
tsrs: Cloudflare and VoidZero port TypeScript to Rust, claiming up to 8x speed and 70% less memory
tsrs is an experimental Rust port of the TypeScript compiler from Cloudflare and VoidZero, built with the TypeScript team rather than as a fork. Cloudflare reports up to 8x faster and about 70% less memory than TypeScript 7.0. The benchmarks are Cloudflare's own.