DeepSeek releases DeepInfer, the inference engine that powers V4.1-Flash

DeepSeek releases DeepInfer, the inference engine that powers V4.1-Flash
DeepSeek released DeepInfer, the high-performance inference framework it uses in its production services, as open source, with initial support for DeepSeek-V4.1-Flash and Apache 2.0 license.
Inference is the work of running a model already trained to respond to requests. The same model can cost much more or less depending on the software serving it, so engine decisions directly affect price per token and energy consumption.
You may also likeDario Amodei de Anthropic advierte sobre necesidad de límites en IA antes de los próximos 3-5 años
The release includes optimized kernels, attention and expert parallelism, speculative decoding with scheduled verification by trust, constrained recovery of the attention window, and asynchronous batch planning, according to the GitHub repository.
It also incorporates batch-invariant inference modes and deterministic sampling, inconspicuous but key functions for auditing results and repeating experiments. It adds structured outputs with regular expressions, JSON schemas, and EBNF grammars.
DeepInfer runs on Nvidia's SM100 GPUs and Huawei's Ascend 950 NPUs, signaling DeepSeek's strategy not to depend on a single hardware vendor. The company said the engine was built mainly on vLLMs and also took insights from SGLang and TensorRT-LLM.
Release is not a complete service. The repository itself warns that a KV cache system, disaggregation between prefill and decoding, and load balancing between replicas are missing—necessary pieces to operate a large-scale online API.
You may also likeOpenAI acusa a empresas de Musk de romper contratos y suspende modelos
DeepSeek also published deepseek-recipe, an MIT-licensed library that converts API requests to the conversation format of its models, renders prompts, and encodes tokens. It is the contract between the API server and the inference engine.
The performance figures are from the company itself: it measured its benchmarks with four SM100 GPUs to process prompts and 64 to generate responses. There is no independent assessment of the profits, according to Bloomberg.
The move is unusual because labs often protect the techniques their models use. By opening them, DeepSeek allows clouds and companies already running their models to replicate their stack and potentially reduce costs.
The move reinforces the Chinese company's pattern: freeing up pesos and now also serving software to gain adoption against competitors who charge via API. The practical effect will depend on how many teams manage to rebuild the missing infrastructure.
You may also likeOpenAI acusa a empresas de Musk de romper contratos y suspende modelos
Image credit: Photo by Vishnu Mohanan on Unsplash.