DeepSeek Open-Sources Production-Grade Inference Framework DeepInfer
DeepSeek has open-sourced its self-developed inference framework DeepInfer under the Apache 2.0 license, allowing teams to deploy, modify, and use it commercially, although the current version primarily provides core offline inference capabilities. Its production metrics include a P50 time to first token of 277 milliseconds with an average input length of 98.44K tokens, a single-stream output speed of 137.9 tokens/s, and revenue of approximately 117.9 yuan per GPU per hour. DeepInfer is built on vLLM and draws on SGLang and TensorRT-LLM, focusing on optimizing core operators, communication, memory management, inference workflows, and task scheduling.
Why read this
AI score 75
The article examines DeepInfer’s engineering optimizations using production data and explains its potential impact on the ecosystem for deploying inference workloads on Chinese chips.
Topics
Body · AI translation
DeepSeek Open-Sources Production-Grade Code, Challenging Nvidia’s Foundation Alphabet List | Download the App | Exclusive First Look December 2, 2026, 11:41:37 | From Beijing
DeepSeek has open-sourced another new project, taking aim at the foundation on which Nvidia’s survival depends.
The project, called DeepInfer, is an inference framework developed in-house by DeepSeek, which officially describes it as production-grade code.
DeepSeek V4.1 Flash relies on DeepInfer to handle large-scale user traffic on Chinese chips. Moreover, under DeepInfer’s open-source license, any team can deploy, modify, and commercialize it.
Online data released by DeepSeek shows that, when running on Chinese chips, DeepInfer’s time to first token is already in the same range as competing products, while revenue per card per hour has reached 118 yuan.
Based on estimates by the community, it can essentially be concluded that the overseas competitor referenced by DeepSeek is Nvidia’s GB-series GPUs.
And just one day before DeepInfer was open-sourced, top American hacker George Hotz published a lengthy post calling Liang Wenfeng a hero of the era.
What exactly has DeepSeek open-sourced?
A GPU’s computing power depends on the chip’s manufacturing process, but beyond that, there is also a software layer on top of the chip responsible for how operators are written, how cards communicate with one another, how video memory is allocated, and how requests are queued and scheduled. These are also important factors in determining GPU performance.
Even with identical hardware, performance can be extremely poor if this software layer is not well designed.
This is the layer that DeepInfer handles. As noted above, it is the inference engine used by DeepSeek for its own large-scale online services. It was initially built primarily on vLLM, while also drawing on SGLang and TensorRT-LLM.
You can think of it as a “heavily customized, independently developed DeepSeek super-version of vLLM.” It is also released under the permissive Apache 2.0 license, meaning it can even be used directly for commercial purposes.
According to DeepSeek’s announcement, this open-source release systematically optimizes core operators, communication and memory management, inference workflows, and task scheduling. The repository’s update log mentions fused attention operators, FP8 computational output, batch-invariant inference and deterministic sampling, huge-page memory allocation for the KV cache, and optimized data movement for expert load balancing.
Don’t worry if that was hard to understand. In plain language: DeepInfer aims to squeeze as much performance as possible out of Chinese computing chips while keeping results stable and reproducible.
The claim that it is “production-grade” is backed by online data.
DeepSeek published actual operating data from 4:00 p.m. to 6:00 p.m. Beijing time on December 1.
With ultra-long inputs averaging 98.44K tokens, the P50 time to first token was 277 milliseconds and the P90 was 459 milliseconds; single-stream output speed reached 137.9 tokens/s; the input-cache hit rate was 97.2%; and the KV cache could be retained for more than 72 hours after becoming inactive. Based on off-peak pricing, revenue per card per hour was approximately 117.9 yuan.
DeepSeek also acknowledged that a gap remains compared with the world’s most advanced GPUs.
The same table included data for “a certain competing product.” During the prefill stage, its full-load throughput per card was 77.74K tps, roughly three times the 26.03K tps achieved by Chinese computing hardware. Its revenue per card per hour was 318.1 yuan, also significantly higher.
DeepSeek’s conclusion was that the ability of a new generation of Chinese computing hardware to provide AI inference services to the highest standards has now been validated in real-world operations.
It should be noted that this open-source release mainly comprises the core capabilities for offline inference. Some of the components required for the complete online service built by DeepSeek are not included.
Even so, the core part—the method for running models quickly and reliably on Chinese computing hardware—has already moved beyond the laboratory stage and been fully commercialized.
Challenging Nvidia’s Foundation
In the past, discussions of replacing foreign technology with domestic alternatives often centered on hardware—for example, announcing that adaptation had been completed, that a particular model had successfully run, or that a pilot project was handling a small portion of business traffic.
But the reason Nvidia has been able to make the entire global AI industry revolve around it is not its hardware. On the contrary, Nvidia’s true foundation is CUDA, which it has developed since its release.
CUDA is a GPU parallel-computing platform that includes operator libraries, communication libraries, and toolchains, allowing developers to control GPUs by writing code.
Most mainstream large models are written for CUDA. Switching to another type of GPU chip means rewriting operators and retuning performance. CUDA also offers a comprehensive set of tools, making it convenient for AI developers to program on the platform.
In a 2024 interview with Undercurrent, Liang Wenfeng said that Nvidia’s graphics cards “theoretically contain no technical secrets,” but that “reorganizing teams and catching up with the next generation of technology both take time, so in practice its moat remains very wide.” He later said that many Chinese chips have also failed to develop because they “lack a supporting technical community and have access only to secondhand information.”
This time, DeepSeek is shaking Nvidia’s very foundation.
DeepInfer reimplements on Chinese chips high-performance operators that were previously available only on CUDA, including DeepSeek’s FlashMLA, DeepGEMM—whose version for Chinese computing chips is called DeepGEMM-Ascend—and DeepEP. It then optimizes them to handle production traffic at DeepSeek’s scale, while using the same codebase and a single environment variable to switch backends. This effectively decouples the inference framework from CUDA, which had previously been inseparable.
Nvidia’s CUDA cycle is a self-reinforcing closed loop.
Through investment, Nvidia ensures that mainstream software frameworks can run only on CUDA, then optimizes CUDA based on feedback from leading developers. Even when Chinese chips are produced, there is no software that can run on them. Chinese chipmakers consequently have no users, receive no feedback, and cannot optimize their products or build an ecosystem. Ultimately, everyone becomes even more dependent on CUDA, and developers learn to write only CUDA code.
Once DeepInfer is open-sourced, it could well start a reverse cycle: Chinese chips gain usable software; open source allows more people to use it for free; Chinese chipmakers receive feedback and make improvements; and a complete, healthy domestic computing ecosystem ultimately takes shape.
As early as September 30, DeepSeek open-sourced infrastructure components for Chinese computing hardware, including the high-level programming and compilation tool TileLang, the matrix computation library DeepGEMM, the cross-device communication library DeepEP, and the sparse-attention operator FlashMLA. These correspond to components it had previously open-sourced for Nvidia platforms.
According to DeepSeek, TileLang is simpler to program than CUDA while also raising the upper limit of chip performance. Moreover, TileLang already supports most of the operators used in training the V4 series of models.
Every TileLang operator used in DeepSeek’s training has a corresponding high-performance implementation on Chinese computing hardware. The second step is DeepInfer: first provide the parts, then deliver the complete machine. The same inference framework can run on both Nvidia GPUs and Chinese computing hardware—and on the latter, it has withstood real user traffic.
What makes a hero of the age?
As noted above, the day before DeepSeek open-sourced DeepInfer, elite hacker George Hotz published an article titled “AI is Now Smarter than Me.”
At the end, he said that he was running an open-source model on his own machine and understood how it worked. He then wrote: “Many thanks to the labs that remain committed to openness. I think people like Liang Wenfeng will become heroes of this historical era.”
In 2007, at age 17, George cracked the iPhone’s carrier lock. He later hacked the PlayStation 3 and now focuses on the deep-learning framework tinygrad.
George praised Liang Wenfeng because he, too, embraces DeepSeek’s belief in making technology broadly accessible through open source, which allows ordinary people to enjoy the tremendous convenience brought by AI.
Liang once told Undercurrent: “We hope more people—even a small app—can use large models at low cost, rather than having the technology controlled by only a handful of people and companies, creating a monopoly.”
Liang Wenfeng has consistently pursued that goal since opening the R1 weights in January 2025.
In late June this year, DeepSeek posted more than 30 openings on its official website, saying that it intended to “at least double the size of every department.”
One opening was for a “High-Performance Operator/Communication/Compiler Engineer.” The team’s mission statement read: “We build the final layer of software between AGI and physical chips.” New hires would need to delve deeply into both Nvidia GPUs and Chinese hardware, from instruction sets, memory models, and compiler stacks to large-scale interconnects.
The team’s sole benchmark is “the physical limits of the hardware.” DeepSeek’s recruitment post stated: “We do not compare performance differences against any baseline or other implementation. We care only about how far the current design and implementation remain from the theoretical limit, and we pursue every cycle and every watt of power with near-obsessive intensity.”
In September, DeepSeek released around 150 openings for senior engineers all at once, again targeting engineering and infrastructure. At the time, many people assumed DeepSeek was recruiting on such a large scale simply to keep its servers from crashing again. In hindsight, we were thinking on the second level while Liang Wenfeng was on the fifth.
Operators, communications, and scheduling are precisely the areas where Chinese chipmakers most lack firsthand expertise. DeepSeek recruits people to painstakingly optimize Chinese chips cycle by cycle until they can handle large-scale, real-world traffic, then hands over the entire codebase.
Whether DeepSeek’s challenge will succeed remains to be seen. But as Liang Wenfeng said in an earlier interview with Undercurrent: “In the face of disruptive technology, the moat created by closed source is temporary.”
“Special notice: The above content—including any videos, images, or audio—is uploaded and published by users of Dafeng Hao, a self-media platform operated by Phoenix New Media. This platform merely provides information-storage services.
Notice: The content above—including any videos, images, or audio—is uploaded and published by users of Dafeng Hao, a social-media platform that merely provides information-storage services.”
AI Trends