HomeArticle

DeepSeek open-sources production-grade code, challenging NVIDIA's cornerstone

字母AI2026-12-02 11:36
DeepSeek's open-source self-developed inference framework DeepInfer may put an end to NVIDIA's "selling shovels" myth.

DeepSeek has open-sourced another new project, challenging the cornerstone that NVIDIA has long relied on for its survival.

Named DeepInfer, this is a self-developed inference framework by DeepSeek, which the official DeepSeek team describes as production-grade code.

DeepSeek V4.1 Flash can support large-scale user traffic on domestic chips precisely through DeepInfer. Moreover, according to DeepInfer's open-source license, any team can use it for deployment, modification and commercial use.

The online data released by DeepSeek shows that DeepInfer running on domestic chips has reached the same order of magnitude of first-token latency as its competitors, generating a revenue of 118 yuan per GPU card per hour.

According to community estimates, it can be basically confirmed that the overseas competitor DeepSeek refers to is NVIDIA's GB series GPUs.

And just one day before the open-sourcing of DeepInfer, top American hacker George Hotz published a long article stating that Liang Wenfeng is a hero of the era.

01

What exactly has DeepSeek open-sourced?

The computing power of a GPU depends on the manufacturing process of its chip, but beyond that, there is a software layer above the chip that governs how operators are written, how cards communicate with each other, how video memory is allocated, and how requests are queued and scheduled. These are also critical factors that determine GPU performance.

With the same hardware, if this software layer is poorly developed, the performance will be extremely poor.

DeepInfer is built for exactly this layer. As mentioned earlier, it is the inference engine for DeepSeek's own large-scale online services, initially built mainly based on vLLM, with reference to SGLang and TensorRT-LLM.

You can understand it as a "DeepSeek's highly modified self-developed version of vLLM", and it adopts the permissive Apache 2.0 license, which even allows direct commercial use.

According to DeepSeek's announcement, this open-source version has systematically optimized core operators, communication and memory management, inference workflow and task scheduling. The update record in the code repository reads: fused attention operators, FP8 computation output, batch-invariant inference and deterministic sampling, KV cache allocation with huge page memory, and optimized data transfer in expert load balancing.

It does not matter if you do not understand the above description, in plain terms: DeepInfer is designed to squeeze the maximum possible performance out of domestic computing power chips, while ensuring stable and reproducible results.

The term "production-grade" is backed by real online data.

DeepSeek released the actual operation status from 16:00 to 18:00 Beijing time on December 1.

Under an ultra-long input with an average of 98.44K tokens, the P50 first-token latency is 277 milliseconds, and the P90 first-token latency is 459 milliseconds; the single-stream output speed reaches 137.9 tokens/s; the input cache hit rate is 97.2%, and the KV cache can be preserved for more than 72 hours after inactivity. Calculated at the off-peak price, the revenue per card per hour is about 117.9 yuan.

DeepSeek also acknowledges that there is still a gap compared with the world's top-tier GPUs.

The data of "a certain competitor" is listed in the same table. The full-load throughput per card in the pre-filling stage is 77.74K tps, which is about three times the 26.03K tps of domestic computing power; the revenue per card per hour is 318.1 yuan, which is also significantly higher.

The conclusion drawn by DeepSeek is that the capability of the new generation of domestic computing power to provide AI inference services according to the highest standards has been verified in real business scenarios.

It should be noted that this open source release focuses on the core capabilities of offline inference, and some components required for DeepSeek to build a complete online service are not included in this release.

Even so, the core part, that is, the method to make the model run fast and stably on domestic computing power, has moved beyond the laboratory stage and has been fully deployed for commercial use.

02

Challenging NVIDIA's Cornerstone

In the past, discussions about domestic substitution usually centered on hardware, such as announcing the completion of adaptation, successfully running a certain model, and piloting to take over a small part of the business.

But the reason why NVIDIA can make the entire global AI industry revolve around it is not its hardware. On the contrary, NVIDIA's real cornerstone is CUDA, which has been released for many years.

CUDA is a GPU parallel computing platform that includes an operator library, a communication library and a toolchain, allowing developers to control the GPU by writing code.

Most of the mainstream large models are written on CUDA. Switching to another type of GPU chip means rewriting operators and re-adjusting performance. In addition, CUDA has a complete toolset, which makes it easy for AI developers to program on it.

In an interview with Dark Surge in 2024, Liang Wenfeng said that NVIDIA's graphics cards "theoretically do not have any technical secrets", but "reorganizing the team and catching up with the next generation of technologies both take time, so the actual moat is still very wide". He then added that many domestic chips fail to develop well because of "the lack of a supporting technical community, with only second-hand information available".

What DeepSeek has shaken this time is exactly NVIDIA's cornerstone.

DeepInfer re-implements high-performance operators that were originally only available on CUDA, such as DeepSeek's FlashMLA, DeepGEMM (the version for domestic computing power chips is called DeepGEMM-Ascend) and DeepEP, on domestic chips, and optimizes them to withstand online traffic at the scale of DeepSeek. It then uses a unified code tree and one environment variable to switch backends, which effectively decouples the "inference framework" from "CUDA", two things that were previously tightly bound.

NVIDIA's CUDA cycle is a self-locking closed loop.

Through investment, NVIDIA makes mainstream software frameworks only run on CUDA, and then optimizes CUDA based on feedback from top developers. Even if domestic chips are manufactured, there is no software that can run on them. As a result, domestic chip manufacturers have no users, cannot get feedback, cannot optimize, and cannot form an ecosystem. In the end, everyone becomes more dependent on CUDA, and developers only know how to write CUDA code.

After DeepInfer is open-sourced, it is very likely to start a reverse cycle: domestic chips have available software, open source allows more people to use it for free, domestic chip manufacturers get feedback and achieve optimization, and finally a complete and healthy domestic computing power ecosystem is formed.

As early as September 30, DeepSeek open-sourced infrastructure components for domestic computing power, including the high-level language compilation tool TileLang, as well as the matrix operation library DeepGEMM, cross-device communication library DeepEP, sparse attention operator FlashMLA, etc., which correspond to the previously open-sourced components for the NVIDIA platform.

According to DeepSeek's official statement, TileLang is easier to program with than CUDA, and can raise the upper limit of chip performance. In addition, TileLang has already supported most of the operators in the training of the V4 series models.

Every TileLang operator used in DeepSeek's training has a corresponding high-performance implementation on domestic computing power. The second step is DeepInfer this time: first provide the parts, then deliver the complete machine. The same set of inference framework can run on both NVIDIA GPUs and domestic computing power, and has withstood real user traffic on the latter.

03

What Makes a Hero of the Era?

As mentioned earlier, one day before DeepSeek open-sourced DeepInfer, top hacker George Hotz published an article titled "AI is Now Smarter than Me".

George said that the latest models have outperformed himself in writing code, and he is worried that some people will gain a decisive advantage through AI.

At the end of the article, he said that he is running open-source models on his own machine and clearly understands how they work, then he wrote: "I am very grateful to those labs that insist on openness. I think people like Liang Wenfeng will become heroes of this historical era."

In 2007, 17-year-old George cracked the iPhone carrier lock, and later cracked the PlayStation 3. Now he is focusing on the deep learning framework tinygrad.

The reason why George praises Liang Wenfeng is that George also agrees with DeepSeek's concept of open source for public benefit, which allows ordinary people to obtain great convenience brought by AI.

Liang Wenfeng once told Dark Surge: "We hope more people, even a small app, can use large models at low cost, instead of the technology being mastered only by a small group of people and companies to form a monopoly."

Since the release of the R1 weights in January 2025, Liang Wenfeng has been acting in line with this concept.

At the end of June this year, DeepSeek posted more than 30 job openings on its official website, stating that it would "expand the scale of all departments by at least double".

One of the positions is "High Performance Operator / Communication / Compiler Engineer", and the team mission is written as: "We are building the last layer of software between AGI and physical chips." New hires need to have in-depth knowledge of both NVIDIA GPUs and domestic hardware, covering everything from instruction sets, memory models, compilation stacks to large-scale interconnection.

The only standard of the team is "the physical limit of hardware". The DeepSeek job posting reads: "We do not compare performance differences with any baseline or other implementations. We only care about how far the current design and implementation are from the theoretical upper limit, and we pursue almost paranoia for every cycle and every watt of power consumption."

In September, DeepSeek released about 150 senior engineer positions at one time, also targeting engineering and infrastructure. At that time, many people thought that DeepSeek's large-scale recruitment was only to prevent server downtime. Now it seems that we are on the second level, while Liang Wenfeng is on the fifth level.

Operators, communication and scheduling are the first-hand experience that domestic chips lack the most. Recruit people to squeeze every cycle on domestic chips until the system can support large-scale real traffic, and then release the entire set of code to the public.

Whether DeepSeek's challenge can succeed remains to be tested by time, but as Liang Wenfeng said in a previous interview with Dark Surge: "In the face of disruptive technologies, the moat formed by closed source is short-lived."

This article is from the WeChat official account "Letter AI", author: Miao Zheng, editor: Wang Jing, published with authorization from 36Kr.