DeepSeek Open-Sources Production-Grade Inference Framework DeepInfer, Supporting Deployment on Chinese Computing Hardware
DeepSeek has open-sourced DeepInfer, a production-grade inference framework under the Apache 2.0 license, allowing teams to deploy, modify, and use it commercially. It also supports handling large-scale user traffic on Chinese chips. Production data shows that with an average input of 98.44K tokens, its P50 time to first token is 277 milliseconds, its single-stream output speed is 137.9 tokens/s, and revenue per card is approximately RMB 117.9 per hour. This open-source release primarily covers core offline inference capabilities; some components required for a complete online service are not included.
Why read this
AI score 77
Drawing on production operating data and the scope of the open-source release, the article examines how inference software for Chinese computing hardware can reduce reliance on the CUDA ecosystem, as well as its current limitations.
Topics
Body · AI translation
DeepSeek has open-sourced another new project, challenging the very foundation on which Nvidia depends for its survival.
The project is called DeepInfer. It 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-made chips. Under DeepInfer’s open-source license, any team may also deploy, modify, and commercially use it.
Online data released by DeepSeek shows that DeepInfer running on Chinese-made chips has achieved time to first token in the same range as competing products, while generating revenue of 118 yuan per card per hour.
Based on estimates from 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, leading American hacker George Hotz published a lengthy post calling Liang Wenfeng a hero of our time.
What exactly has DeepSeek open-sourced?
A GPU’s computing power depends on the chip’s manufacturing process, but there is also a software layer on top of the chip that determines 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.
With the same hardware, performance can be extremely poor if this software layer is not well designed.
DeepInfer operates at precisely this layer. As noted above, it is the inference engine used by DeepSeek for its own large-scale online services. It was originally built primarily on vLLM, while also drawing on SGLang and TensorRT-LLM.
You can think of it as “DeepSeek’s heavily customized, self-developed supercharged version of vLLM.” It is also released under the permissive Apache 2.0 license and can even be used commercially as-is.
According to DeepSeek’s announcement, this open-source release systematically optimizes core operators, communications and memory management, inference workflows, and task scheduling. The code repository’s update log lists fused attention operators, FP8 computation outputs, 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 is hard to follow. In plain language: DeepInfer aims to squeeze as much performance as possible out of Chinese-made AI computing chips while keeping results stable and reproducible.
The claim that it is “production-grade” is backed by online data.
DeepSeek published actual operating results from 4:00 p.m. to 6:00 p.m. Beijing time on December 1.
With ultra-long inputs averaging 98.44K tokens, P50 time to first token was 277 milliseconds and 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 was approximately 117.9 yuan per card per hour.
DeepSeek also acknowledged that a gap remains between this performance and that of 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-made computing hardware. Its revenue of 318.1 yuan per card per hour was also significantly higher.
DeepSeek’s conclusion was that the ability of a new generation of Chinese-made 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 focuses primarily on the core capabilities for offline inference. Some of the components DeepSeek uses to build a complete online service are not included.
Even so, the core portion—the methods that enable models to run quickly and reliably on Chinese-made computing hardware—has already moved beyond the laboratory stage and been fully deployed commercially.
Challenging Nvidia’s Foundation
In the past, discussions of replacing foreign technology with Chinese alternatives often revolved around hardware—for example, announcing that compatibility work had been completed, that a particular model had been successfully run, or that a pilot system had begun handling a small portion of business traffic.
But Nvidia has not made the entire global AI industry revolve around it because of 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 comprising operator libraries, communications libraries, and toolchains, allowing developers to control GPUs by writing code.
Most mainstream large models are written on CUDA. Switching to a different 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 the moat remains very wide in practice.” He subsequently said that many Chinese-made 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-made chips high-performance operators such as DeepSeek’s FlashMLA, DeepGEMM (whose version for Chinese-made computing chips is called DeepGEMM-Ascend), and DeepEP, which were previously available only on CUDA. It has optimized them to handle production traffic at DeepSeek’s scale, while allowing backends to be switched via a single environment variable within the same codebase. In effect, this decouples the “inference framework” from “CUDA,” two things that were previously inextricably bound together.
Nvidia’s CUDA flywheel is a self-reinforcing closed loop.
Through investment, Nvidia has ensured that mainstream software frameworks can run only on CUDA, then optimized CUDA based on feedback from top developers. Even if Chinese-made chips are built, there is no software available to run on them. Chinese chipmakers therefore have no users and receive no feedback, leaving them unable to optimize their products or build an ecosystem. Ultimately, everyone becomes even more dependent on CUDA, and developers know only how to write CUDA code.
Once DeepInfer is open-sourced, it could very well set a reverse flywheel in motion: Chinese-made chips will have software they can use; open source will allow more people to use it free of charge; Chinese chipmakers will receive feedback and make improvements; and a complete, healthy domestic computing ecosystem will ultimately take shape.
As early as September 30, DeepSeek open-sourced infrastructure components for Chinese-made computing hardware, including the high-level programming language compiler TileLang, the matrix computation library DeepGEMM, the cross-device communication library DeepEP, and the sparse-attention operator FlashMLA, corresponding to components it had previously open-sourced for Nvidia platforms.
According to DeepSeek, TileLang is easier to program than CUDA while also raising the upper limit of chip performance. Moreover, TileLang already powers most of the operators used to train its V4-series models.
Every TileLang operator used in DeepSeek’s training has a corresponding high-performance implementation on Chinese-made 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-made computing hardware—and on the latter, it has withstood real user traffic.
What makes a hero of the times?
As noted above, one day before DeepSeek open-sourced DeepInfer, renowned hacker George Hotz published an article titled “AI Is Now Smarter than Me.”
At the end of the article, he said that he was running an open-source model on his own machine and understood how it worked. He then wrote: “Thank you so much to the labs that remain open. I think people like Liang Wenfeng will become heroes of this historical era.”
In 2007, at the age of 17, Hotz cracked the iPhone’s carrier lock. He later hacked the PlayStation 3 and now focuses on the deep-learning framework tinygrad.
Hotz praised Liang Wenfeng because he also embraces DeepSeek’s vision of making technology broadly accessible through open source, which allows ordinary people to benefit enormously from the convenience brought by AI.
Liang once told Undercurrent: “We hope that more people—even those building a small app—can use large models at low cost, rather than allowing the technology to remain in the hands of only a small number of people and companies, creating a monopoly.”
Liang Wenfeng has been doing exactly that since releasing the R1 weights in January 2025.
In late June this year, DeepSeek posted more than 30 openings on its official website, saying it planned to “at least double the size of every department.”
One of the positions was for a “high-performance operator/communications/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-made hardware, from instruction sets, memory models, and compiler stacks all the way 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, with an almost obsessive focus on every cycle and every watt of power consumption.”
In September, DeepSeek released around 150 openings for senior engineers in one go, again targeting engineering and infrastructure. At the time, many people assumed that DeepSeek was hiring on such a large scale simply to keep its servers from going down again. Looking back now, we were thinking on the second level while Liang Wenfeng was on the fifth.
Operators, communications, and scheduling are precisely the areas where Chinese-made chips most lack firsthand expertise. DeepSeek is hiring people to squeeze out improvements cycle by cycle on Chinese-made chips until they can support real traffic at scale—and then handing 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 only temporary.”
AI Trends