DeepSeek has open-sourced DeepInfer, the inference framework it says powers its large-scale AI services. Released on October 20, 2026, the project gives developers access to the software used to run DeepSeek models efficiently, not just the models themselves.
The release is notable for another reason: it supports NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs, two very different accelerator platforms. However, the first public version supports only DeepSeek-V4.1-Flash, provides offline inference rather than a full online service, and leaves out several components you'd need to run one.
That distinction matters. DeepInfer is not a new AI model, a hosted chatbot, or a drop-in replacement for DeepSeek's API. It's an inference framework for developers working with specialised AI infrastructure.
In this guide, we'll look at what DeepInfer actually includes, what's missing, who can use it, and how to decide whether running it yourself makes more sense than using a hosted API.
Official DeepInfer repository on GitHub
What is DeepSeek DeepInfer?
DeepInfer is an inference framework for running trained AI models. DeepSeek describes it as the high-performance framework behind its large-scale production services.
It helps to think of an AI system as three layers:
- The model: The trained neural network that generates responses.
- The inference engine: The software that executes the model and manages how the computation is performed.
- The serving infrastructure: The systems that handle incoming requests, manage shared resources, distribute traffic and keep the service running.
DeepInfer focuses on the second layer. It provides optimised execution and scheduling components, along with support for parallel processing and other techniques for running models efficiently.
The distinction is important because a better inference engine doesn't make the underlying model any smarter. What it can do is help the same model use hardware more effectively, generate responses more efficiently or behave more consistently under different execution conditions.
The initial public release supports DeepSeek-V4.1-Flash, using the DeepSeek-V4.1-Flash-1017 checkpoint by default. DeepSeek says inference code for future models will go into the same repository.
What does DeepInfer include?
DeepInfer combines several components designed for large-scale inference workloads. The open-source release provides offline inference with the core features needed for serving at scale.
| Feature | What it does | Why it matters |
|---|---|---|
| What it does | Why it matters | Optimised kernels |
| Uses specialised computation kernels, including FlashMLA, DeepGEMM and DeepEP | Helps execute model operations efficiently on supported hardware | MoE expert parallelism |
| Distributes mixture-of-experts computation across accelerators | Helps large models use multiple devices | Expert load balancing |
| Helps distribute expert workloads across devices | Can reduce uneven utilisation | DSpark and confidence-scheduled verification |
| Uses draft tokens and confidence estimates during decoding | Can improve token-generation efficiency | SWA bounded replay |
| Reduces decoder prefill work by replaying only a bounded suffix | Can cut the amount of prefill computation | Asynchronous scheduling |
| Overlaps CPU scheduling with device execution | Reduces scheduling overhead | Batch-invariant inference (NVIDIA only) |
| Keeps model results identical across different batch compositions | Makes behaviour more consistent across batching conditions | Deterministic sampling (NVIDIA only) |
| Produces identical outputs for identical input tokens and sampling parameters | Useful when you need reproducible results | Structured outputs |
Constrains generation to a regex, JSON schema or grammar
Useful for applications that need predictable machine-readable responses
These capabilities are documented in the official repository. DeepSeek also released a companion library, deepseek-recipe, which converts requests into token sequences using the same logic as its official API.
The practical takeaway is that DeepInfer is a lot more than a basic script for loading a model. It exposes infrastructure techniques that usually matter when you operate large models across multiple accelerators.
The value of each feature still depends on the workload, though. A system handling many simultaneous requests has very different needs from a developer running a few experiments.
The important catch: DeepInfer is not a complete serving stack
This is the most important detail to understand before you plan a deployment.
DeepSeek's repository explicitly lists several components required for a complete inference service that aren't included in the public release:
- A KV cache system.
- Prefill/decode disaggregation across the serving infrastructure (DeepSeek notes that most of the engine functionality it needs is already implemented).
- Load balancing across data-parallel replicas for both prefill and decode.
Why do these matter?
- KV cache management
When a model generates text, it keeps reusing information from the tokens that came before. A key-value cache, usually called a KV cache, stores intermediate attention information so the system doesn't have to recompute everything from scratch.
Managing that cache efficiently becomes especially important with long conversations or many simultaneous requests.
DeepInfer doesn't include the KV cache system that DeepSeek's documentation lists as necessary for a full service, so anyone building a production deployment has to account for that gap.
- Prefill and decode are different workloads
Inference has two broad stages.
Prefill processes the input prompt and prepares the model's internal state. Its performance matters when users submit long documents, codebases or conversations.
Decode generates the response token by token. It determines how quickly users receive the answer once generation begins.
The two stages have different computational characteristics. A system can benefit from giving each stage different resources, but that takes the right orchestration and infrastructure.
DeepInfer provides a lot of inference functionality, but the public release doesn't include the full prefill/decode disaggregation needed for a complete online service.
- Load balancing is more than running multiple GPUs
Adding more accelerators doesn't automatically give you a reliable service.
A production deployment has to distribute requests, handle failures, keep replicas from being overloaded and allocate resources according to demand. DeepInfer's repository lists cross-replica load balancing for prefill and decode among the components you still need to supply.
What this means: DeepInfer is an important part of an inference system, but don't assume that cloning the repository and running the example gives you a production-ready alternative to DeepSeek's hosted API.
Source: DeepInfer repository and deployment requirements.
Which hardware does DeepInfer support?
The initial release lists two supported accelerator platforms.
| Hardware | Status in the initial release |
|---|---|
| Status in the initial release | NVIDIA SM100 (Blackwell-generation) GPUs |
| Supported | Huawei Ascend 950 NPUs |
| Supported | Older NVIDIA GPU generations |
| Not listed as supported | Other accelerator platforms |
Not listed as supported
The NVIDIA path requires CUDA 13, while the Huawei Ascend path requires CANN 9.2. The documented build environment also calls for Linux, GCC 13 or later and Python 3.12.
Support isn't identical across the two platforms either. Batch-invariant inference and deterministic sampling are listed as NVIDIA only.
These are meaningful restrictions. DeepInfer isn't presented as a general-purpose inference engine that runs on any GPU, so check your exact accelerator and software environment before you invest time in deployment.
If you're on a regular laptop or a typical consumer GPU, the hardware requirements are likely to be your first obstacle.
The model is also very large. Its model card lists roughly 763 billion parameters, so downloading the weights is only one part of the challenge. Running it takes a lot of memory and a suitable multi-accelerator setup.
Check the official model card and DeepInfer build instructions before you plan a local installation.
DeepInfer performance: what do the published benchmarks prove?
DeepSeek provides performance charts for prefill and decode, plus evaluation scripts for selected model benchmarks.
The repository says the measurements were taken on four NVIDIA SM100 GPUs for prefill and 64 SM100 GPUs for decode, each within a single scale-up domain.
Those details matter because benchmark results depend on more than the software. Hardware, batch size, input length, output length, concurrency and measurement method all affect them.
For example, total throughput across many concurrent requests isn't the same as the response speed one user experiences. Likewise, prefill performance doesn't tell you how fast the model generates each token afterwards.
A useful evaluation should separate:
- Throughput: How much work the system completes over a period of time.
- Time to first token: How long a user waits before generation begins.
- Decode speed: How quickly the response is generated.
- Concurrency: How performance changes as more requests run at the same time.
- Resource efficiency: How much hardware it takes to reach a given level of service.
DeepSeek's charts are a useful starting point, but they aren't independent proof that DeepInfer is faster than every alternative. Bloomberg reported at launch that no outside party had yet benchmarked its efficiency gains. The published charts also focus on NVIDIA hardware, so they don't establish equivalent performance on Huawei Ascend 950.
For the official measurements and instructions for reproducing them, see the DeepInfer repository.
DeepInfer vs vLLM, SGLang and TensorRT-LLM
DeepInfer joins an existing ecosystem of inference software instead of creating a new category.
DeepSeek acknowledges that DeepInfer was originally built primarily on vLLM, with additional inspiration from SGLang and TensorRT-LLM.
The main question isn't which framework is fastest. It's which one supports your model, hardware and deployment requirements.
| Consideration | DeepInfer | General-purpose alternatives |
|---|---|---|
| DeepInfer | General-purpose alternatives | Initial model support |
| DeepSeek-V4.1-Flash | Depends on the framework and model | Hardware |
| NVIDIA SM100 and Huawei Ascend 950 listed | Support varies by framework and version | Main focus |
| DeepSeek's specialised inference stack | Broader model-serving use cases, depending on the project | Complete online serving |
| Some required infrastructure is missing from the public release | Capabilities vary; verify the specific deployment stack | Best reason to evaluate |
You want to study or use DeepSeek-specific optimisations
You need broader model compatibility or an established serving workflow
This is a scope comparison, not a claim that one framework is universally faster or better. The capabilities of vLLM, SGLang and TensorRT-LLM vary across versions, models and hardware.
If you already have a working serving system, any switch should be justified by measured improvements in cost, latency, throughput or operational simplicity, not by the announcement alone.
Is DeepInfer free and open source?
DeepInfer is released under the Apache License 2.0, so you can inspect and use the source code subject to the licence's terms.
But free software doesn't mean free inference.
Running a large model can involve buying or renting accelerators, memory, storage, networking, electricity, engineering time and ongoing maintenance. If you need a reliable online service, you also have to cover the components that are missing from the public release.
The actual cost depends on your deployment, utilisation and workload. A system that's cheap at high utilisation can be wasteful when its accelerators sit idle.
Read the project licence and review the repository's current requirements before you make a deployment decision.
DeepInfer vs the DeepSeek API: which should you choose?
For many developers, this is the most practical question.
| Your situation | Sensible starting point |
|---|---|
| Sensible starting point | You want to experiment with DeepSeek's model |
| Start with hosted API access | You're building a small application or prototype |
| Hosted API access is usually simpler | You want to inspect inference internals |
| Explore DeepInfer's source code | You operate supported accelerator hardware |
| Evaluate DeepInfer against your actual workload | You need a complete production service |
| Compare the full infrastructure requirements, not just the inference engine | You want to serve multiple model families |
Evaluate broader framework compatibility
A hosted API lets you focus on building your application instead of the whole inference infrastructure.
Self-hosting can give you more control over the environment, deployment and data flow, but it also moves the infrastructure responsibility onto your team.
So the right comparison isn't the API price against the cost of free software. It's the total cost of getting the same useful service.
A practical way to evaluate DeepInfer
Before you attempt a large deployment, use this checklist to see whether DeepInfer is relevant to your setup.
- Check the hardware. Confirm that you have access to NVIDIA SM100 or Huawei Ascend 950 accelerators.
- Check the environment. Verify Linux, Python 3.12, GCC 13 or later, and the right CUDA or CANN version.
- Review the model requirements. Check the model card, memory needs and supported inference configuration.
- Run the documented example. Start with the official offline inference example before attempting a distributed service.
- Reproduce a benchmark. Use the provided scripts and record the exact hardware, batch sizes and settings.
- Measure your real workload. Test prompt lengths, output lengths, concurrency and latency that resemble your application.
- Account for missing infrastructure. Work out how you'll supply cache management, prefill/decode orchestration and replica load balancing if you need an online service.
You can start by browsing the official GitHub repository. You don't need to download the model weights just to read the source code and documentation.
Final verdict: who should care about DeepInfer?
DeepInfer is an interesting release because it exposes part of the specialised inference infrastructure behind DeepSeek's services. It gives developers a chance to study its optimisations and experiment with DeepSeek-V4.1-Flash on the hardware platforms the initial release supports.
Its limitations matter just as much as its features. Model support is narrow, the hardware requirements are demanding, and the public release doesn't include everything needed for a complete online inference service.
For infrastructure engineers and researchers with supported hardware, DeepInfer is worth investigating. For developers building an application on a limited budget, a hosted API is likely to be the more practical place to start.
The key takeaway: DeepInfer gives developers an inference engine, not an entire AI service. Understanding that boundary is the difference between evaluating the release realistically and assuming that open-sourcing the engine makes large-scale AI deployment effortless.
No comments:
Post a Comment