Devtoolwatch BoardGet it every Monday

DeepInfer review

DeepInfer is DeepSeek's open-source inference framework for running DeepSeek models offline on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs.

Updated Nov 15, 2026. Review written Nov 15, 2026 from the project's own sources; usage data refreshed every Monday.

TL;DR

DeepInfer is the inference framework behind DeepSeek's production services, released as open source for offline inference. It is for teams running DeepSeek-V4.1-Flash on NVIDIA SM100 GPUs or Huawei Ascend 950 NPUs. It includes DeepSeek's optimized kernels, expert and data parallelism, deterministic sampling, and structured outputs.

DeepInfer at a glance

Category
Inference and training
Maintained by
DeepSeek (organization, @deepseek-ai on GitHub)
License
Apache 2.0
Language
Python, C++, Shell
Repository
github.com/deepseek-ai/DeepInfer
PyPI package
deepinfer 0.1.0
Latest release
deepinfer 0.1.0 on PyPI, Oct 20, 2026
First published
Oct 16, 2026

What DeepInfer does

  • DeepInfer runs offline inference for DeepSeek-V4.1-Flash, using optimized kernels including FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect and custom TileLang kernels.
  • DeepInfer supports Attention DP, balanced CP, and MoE expert parallelism with EPLB.
  • DeepInfer speeds up decoding with DSpark draft tokens and uses confidence estimates to schedule verification.
  • DeepInfer overlaps CPU batch scheduling with device execution through an asynchronous scheduler that is enabled by default.
  • DeepInfer offers batch-invariant inference and deterministic sampling, so identical inputs give identical outputs on NVIDIA hardware.
  • DeepInfer constrains generation to a regex, JSON schema, or EBNF grammar through the so_args parameter of SamplingParams.
  • DeepInfer reduces decoder prefill work with SWA bounded replay, which replays only a bounded suffix.

How it works

DeepInfer is built from source on Linux with DEEPINFER_ACCELERATOR set to nvidia or ascend. It is driven from Python. On the first run, it downloads the default DeepSeek-V4.1-Flash-1017 checkpoint into the Hugging Face cache, or it reads a local copy set in DEEPINFER_HF_MODEL_DIR. Environment variables turn on features such as batch invariance and draft-token decoding.

How to install and start using DeepInfer

From PyPI

pip install deepinfer

Requirements

  • Linux with GCC 13.0 or newer
  • Python 3.12
  • CUDA 13 on NVIDIA SM100 GPUs, or CANN 9.2 on Huawei Ascend 950 NPUs

First steps

  1. Create and activate an empty Python 3.12 environment before building DeepInfer.
  2. Export DEEPINFER_ACCELERATOR as nvidia or ascend, then run ./build.sh. Keep the variable exported wherever you run DeepInfer.
  3. Run python examples/offline_inference.py to download the default checkpoint and run offline inference.
  4. Set DEEPINFER_HF_MODEL_DIR to the path of a local checkpoint copy if you don't want to download it.

Who DeepInfer is for

  • Teams running DeepSeek-V4.1-Flash on NVIDIA SM100 GPUs or Huawei Ascend 950 NPUs
  • Workloads that need reproducible outputs through batch-invariant inference and deterministic sampling
  • Applications that need generation constrained to JSON schemas, regexes, or EBNF grammars

Limitations to know

  • DeepInfer supports only the DeepSeek-V4.1-Flash model.
  • DeepInfer runs only on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs, on Linux.
  • DeepInfer does not include a KV cache system, prefill/decode disaggregation, or load balancing, all of which a complete serving setup needs.
  • DeepInfer supports batch-invariant inference and deterministic sampling on NVIDIA only.

Is DeepInfer growing? Usage data

In the week of Nov 8–14, 2026, DeepInfer ranked #143 on the Devtoolwatch Board and #18 in Inference and training, with a momentum score of 57 out of 100. Its main package had 36 downloads that week, −66% against its own 4-week average.

New GitHub stars per week for DeepInfer5 weeks from Oct 11, 2026: 0, 21.9k, 2.7k, 957, 448 new stars, an average of 5.2k a week.Aug 23week of Nov 8
New GitHub stars per week for the last 12 weeks, from GitHub's stargazer history (today's stargazers by the week they starred).
Show the weekly numbers
New GitHub stars per week for DeepInfer
Week ofNew stars
Aug 23, 2026–
Aug 30, 2026–
Sep 6, 2026–
Sep 13, 2026–
Sep 20, 2026–
Sep 27, 2026–
Oct 4, 2026–
Oct 11, 20260
Oct 18, 202621.9k
Oct 25, 20262.7k
Nov 1, 2026957
Nov 8, 2026448

On Hacker News

The Board ranks tools by four signals each week: new stars, new stars for the repo's size, added downloads and download growth beyond the market. How the ranking works.

DeepInfer alternatives

Other LLM inference and training tools on the Board in the week of Nov 8–14, 2026, by momentum:

Inference and training ranked by momentum, the week of Nov 8–14, 2026
RankToolStarsDownloads/wk
#1dsh-our-free-modeldsh-our-free-model is a dsh plugin that provides DeepSeek V4.1 Flash, Kimi K3 and other models without login, sign-up or API key.74.3k–
#2magpiemagpie is a local gateway and app that lets coding agents like Claude Code, Codex and Gemini CLI use any provider's model.36.5k–
#3edge0edge0 is an open-source streaming inference framework that runs large sparse mixture-of-experts models on consumer hardware by streaming…11.4k–
#4StrataStrata is a local inference engine and app that runs large open models like Qwen3.8-Flash-Next on consumer hardware with…44.2k–
#5kimi-k3-in-ckimi-k3-in-c is a portable C99 inference engine that runs the 2.78-trillion-parameter Kimi K3 model on one CPU with no GPU.12.1k–
#6OmniRouteOmniRoute is an MIT-licensed, self-hostable AI gateway that routes requests across many model providers through one OpenAI-compatible…87.5k–

All LLM inference and training tools, ranked

DeepInfer FAQ

Is DeepInfer free and open source?

Yes. DeepInfer's source code is on GitHub (deepseek-ai/DeepInfer) under the Apache 2.0 license, so you can use it for free.

How do I install DeepInfer?

Run pip install deepinfer. The deepinfer package needs Python 3.12 or newer.

Is DeepInfer still maintained?

Yes. The deepseek-ai/DeepInfer repository was last updated on Nov 3, 2026, and the latest release, deepinfer 0.1.0 on PyPI, came out on Oct 20, 2026.

How popular is DeepInfer?

DeepInfer has 26k GitHub stars as of Nov 15, 2026. It gained 448 new stars in the week of Nov 8–14, 2026, against a 12-week average of 5.2k a week. Its main package had 36 downloads that week, −66% against its own 4-week average. That made it #18 among LLM inference and training tools on the Devtoolwatch Board.

What are the best alternatives to DeepInfer?

Other LLM inference and training tools on the Devtoolwatch Board in the week of Nov 8–14, 2026, by momentum: dsh-our-free-model (#1), magpie (#2), edge0 (#3), Strata (#4), kimi-k3-in-c (#5). The alternatives table above has their numbers.

Can DeepInfer serve a production API on its own?

No. DeepInfer's open-source release covers offline inference. A complete inference service also needs a KV cache system, VE/Prefill/Decode disaggregation, and load balancing across data-parallel replicas, and none of these are included.

How do I get deterministic outputs from DeepInfer?

DeepInfer gives deterministic outputs when you set DEEPINFER_BATCH_INVARIANT=1 and DEEPINFER_ENABLE_MTP_VARLEN=0, and pass a fixed seq_seed to SamplingParams. This works on NVIDIA only.

Does DeepInfer support structured outputs?

Yes. DeepInfer can constrain generation to a regex, JSON schema, or EBNF grammar. Pass so_args={"schema_type": ..., "schema": ...} to SamplingParams.

What is DeepInfer based on?

DeepInfer was originally built mainly on vLLM, with additional inspiration from SGLang and TensorRT-LLM.

How do I enable draft-token decoding in DeepInfer?

DeepInfer enables DSpark draft-token decoding when you set DEEPINFER_ENABLE_MTP_VARLEN=1. DEEPINFER_USE_NEXTN_DECODE sets the maximum draft length, which defaults to 5.

Sources

  1. deepseek-ai/DeepInfer on GitHub
  2. DeepInfer README
  3. deepinfer on PyPI
  4. Hacker News: DeepInfer: High-performance inference framework for DeepSeek models
  5. Devtoolwatch Board, the week of Nov 8–14, 2026

DeepInfer README badge

Maintainers can show the tool's weekly Board rank in their README:

Devtoolwatch badge for DeepInfer

[![Devtoolwatch](https://index.devtoolwatch.com/badge/deepseek-ai-deepinfer.svg)](https://index.devtoolwatch.com/tools/deepseek-ai-deepinfer/)

How this page is made: Devtoolwatch writes each review from the project's README, releases, package metadata and website, with an AI model, then checks every claim against the source it cites and drops what the sources don't support. The numbers come from Devtoolwatch's daily GitHub snapshots, GitHub's stargazer history, and the npm and PyPI download APIs. Spotted an error? Email [email protected].