DeepSeek Open-Sources Production-Grade Inference Framework DeepInfer, Challenging Nvidia’s CUDA Ecosystem
DeepSeek has open-sourced its internally developed inference framework DeepInfer under the Apache 2.0 license, allowing deployment, modification, and commercial use. It already supports DeepSeek V4.1 Flash in handling large-scale user traffic on domestic Chinese chips. Production data shows that with an average input of 98.44K tokens, the P50 time to first token is 277 milliseconds, single-stream output speed is 137.9 tokens/s, and hourly revenue per accelerator card is approximately RMB 117.9. This release primarily opens up the core offline inference capabilities; some components required for a complete online service are not included.
Why read this
SelectedAI score 78
Drawing on production data and technical components, the article explains how DeepInfer reduces inference frameworks’ dependence on the CUDA ecosystem.
Topics
Body · AI translation
DeepSeek has open-sourced another new project, challenging the foundation on which Nvidia’s survival depends.
The project is called DeepInfer. It is an inference framework developed in-house by DeepSeek, which 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 can deploy, modify, and use it commercially.
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 by the community, it can essentially be concluded that the overseas competitor DeepSeek refers to 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 age.
01
What exactly has DeepSeek open-sourced?
A GPU’s computing power depends on the chip’s fabrication process, but beyond that, there is also a software layer atop 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 crucial factors in GPU performance.
Even with identical 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 that DeepSeek uses 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 “DeepSeek’s heavily customized, internally developed super-version of vLLM.” It is also released under the permissive Apache 2.0 license, meaning it can even be taken and 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 lists fused attention operators, FP8 computation output, batch-invariant inference and deterministic sampling, huge-page memory allocation for the KV cache, and optimized data movement in expert load balancing.
If that is hard to follow, here is a plain-language explanation: DeepInfer aims to squeeze as much performance as possible out of Chinese-made computing chips while keeping results stable and reproducible.
The claim that it is “production-grade” is backed by online data.
DeepSeek released actual operating data from 16:00 to 18:00 Beijing time on December 1.
With ultra-long inputs averaging 98.44K tokens, time to first token was 277 milliseconds at P50 and 459 milliseconds at P90; 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. Calculated at off-peak prices, 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.” Its fully loaded prefill 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 centers on the core capabilities required for offline inference. Some of the components DeepSeek needs to build a complete online service are not included.
Even so, the core part—the method for running models quickly and reliably on Chinese-made computing hardware—has already moved beyond the laboratory stage and been fully deployed commercially.
02
Challenging Nvidia’s Foundation
In the past, discussions of domestic substitution tended to focus on hardware—for example, announcing that compatibility work had been completed, successfully running a particular model, or conducting a pilot to handle 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 comprising operator libraries, communication libraries, and toolchains, enabling developers to control GPUs by writing code.
Most mainstream large models are built on CUDA. Switching to a different GPU chip means rewriting operators and retuning performance. CUDA also provides a comprehensive suite of tools, making it convenient for AI developers to program on the platform.
In a 2024 interview with Waves, Liang Wenfeng said Nvidia’s graphics cards “theoretically contain no technological secrets,” but that “reorganizing a team and catching up with the next generation of technology both take time, so in practice the moat remains very wide.” He went on to say that many Chinese-made chips have also struggled to develop because they “lack a supporting technical community and have access only to secondhand information.”
This is the foundation of Nvidia that DeepSeek is now shaking.
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 then optimizes them to withstand production traffic at DeepSeek’s scale, while using the same codebase and a single environment variable to switch backends. In effect, this decouples the inference framework from CUDA, two things that were previously inseparable.
Nvidia’s CUDA cycle is a self-reinforcing closed loop.
Through investment, Nvidia has ensured that mainstream software frameworks run only on CUDA, then optimized CUDA based on feedback from top developers. Even when Chinese-made chips are developed, there is no software available to run on them. As a result, Chinese chipmakers 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 very well initiate a reverse cycle: Chinese-made chips will have software available; open source will allow more people to use it for free; 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 language compiler tool 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 supports most of the operators used to train the V4 series of 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 components, then deliver the complete system. 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.
03
What Makes a Hero of an Era?
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, he said he was running open-source models on his own machine and understood how they worked, 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, Hotz unlocked the iPhone’s carrier lock and later hacked the PlayStation 3. He now focuses on the deep-learning framework tinygrad.
Hotz praised Liang Wenfeng because he also agrees with DeepSeek’s vision of making technology broadly accessible through open source, which allows ordinary people to benefit enormously from the convenience AI brings.
Liang once told Waves: “We hope more people—even developers of 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 has continued to pursue that goal since releasing the R1 weights in January 2025.
In late June this year, DeepSeek posted more than 30 openings on its website, saying it planned to “at least double the size of every department.”
One position was titled “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 deep expertise in both Nvidia GPUs and Chinese-made hardware, spanning instruction sets, memory models, compiler stacks, and 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 with any baseline or other implementation. We care only about how far the current design and implementation are 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 at once, again targeting engineering and infrastructure. At the time, many people assumed such large-scale hiring was merely intended to prevent its servers from going down again. In hindsight, we were thinking on the second level while Liang Wenfeng was on the fifth.
Operators, communications, and scheduling are precisely where Chinese chipmakers most lack firsthand experience. DeepSeek is bringing people in to optimize Chinese-made chips cycle by cycle until they can handle large-scale real-world traffic, then handing over the entire codebase.
Whether DeepSeek’s challenge will succeed remains to be seen, but as Liang said in an earlier interview with Waves: “In the face of disruptive technology, the moat created by closed source is temporary.”
This article originally appeared on the WeChat public account “Alphabet AI.” Author: Miao Zheng; editor: Wang Jing. Published by 36Kr with permission.
AI Trends