DeepSeek Opens the Inference Layer Built for Chinese Chips

DeepSeek has released the production inference engine that carries large-scale traffic for its V4.1 Flash model on domestic chips, and published the numbers behind it. The move targets the software layer that has kept developers tied to NVIDIA long after the hardware itself stopped being a secret.

DeepSeek founder Liang Wenfeng speaking at a technology event
Liang Wenfeng has argued that open software is the fastest route to a viable domestic compute ecosystem. (Source: 36Kr)

What DeepInfer actually is

The project is called DeepInfer. DeepSeek describes it as production-grade code, and says V4.1 Flash handles large volumes of real user traffic through it on Chinese accelerators. The licence is Apache 2.0, so teams can deploy, modify and commercialise the system.

The engine started as a heavy customisation of vLLM, with ideas taken from SGLang and TensorRT-LLM. In practical terms it is the layer above the chip: how operators are written, how cards talk to each other, how memory is allocated and how requests are queued. Weak software can waste a strong accelerator. Good software can extract far more from an ordinary one.

The open release systematically optimises core operators, communication and memory management, inference flow and task scheduling. The commit log lists fused attention operators, FP8 computation output, batch-invariant inference and deterministic sampling, huge-page allocation for the KV cache, and better data movement for expert load balancing. DeepSeek has not shipped every component needed for a complete online service. The part that matters most, running a model fast and steadily on domestic compute, is included.

The production numbers

DeepSeek published live figures from 16:00 to 18:00 Beijing time on 1 December. With an average input of 98.44K tokens, P50 time to first token was 277 milliseconds and P90 was 459 milliseconds. Single-stream output reached 137.9 tokens per second. The input cache hit rate was 97.2 per cent, and inactive KV cache could be retained for more than 72 hours. At off-peak prices that worked out to about RMB 117.9 of revenue per card-hour.

The same table listed a competitor. During prefill that system sustained 77.74K tokens per second per card, roughly three times the 26.03K recorded on the domestic platform, and earned RMB 318.1 per card-hour. DeepSeek’s conclusion was narrower than the headline: the newest generation of domestic compute has proved it can deliver AI inference at a real business standard in live traffic.

Why the software layer matters

Most domestic substitution projects have been described in hardware terms. A chip is announced, a model runs on it, a pilot takes a slice of traffic. NVIDIA’s position was never built on silicon alone. CUDA is the parallel computing platform of libraries, communication tools and development utilities that lets engineers command the GPU. Most frontier models are written against it. Move to another accelerator and the operators must be rewritten and retuned.

Liang Wenfeng told the outlet Undercurrent in 2024 that NVIDIA’s graphics cards have no real technical secret, but that rebuilding a team and catching the next generation take time, leaving a wide practical moat. He also said many domestic chips failed to develop because they lacked a technical community and had access only to second-hand information.

DeepInfer reimplements operators that previously lived in the CUDA world, including FlashMLA, DeepGEMM and DeepEP, on domestic hardware, then tunes them to survive traffic at DeepSeek’s scale. One code tree and one environment variable select the backend. The inference framework and CUDA, historically welded together, come apart.

A reverse loop

NVIDIA’s cycle reinforces itself. Investment pushes mainstream frameworks onto CUDA, developer feedback improves CUDA, and chip makers without software find no users to generate that feedback. DeepInfer could start the loop in the other direction: usable software brings more free users, domestic chip makers receive reports, and optimisation compounds.

This is the second step. On 30 September DeepSeek open-sourced infrastructure for domestic compute, including the TileLang compiler, the DeepGEMM matrix library, the DeepEP cross-device communication library and the FlashMLA sparse attention operator. TileLang now carries much of V4 series training. First came the parts, then the machine.

The day before the release, hacker George Hotz published an essay titled AI is Now Smarter than Me. He wrote that he ran open models on his own machine and could see how they worked, then thanked labs that stayed open and said people like Liang Wenfeng would be heroes of this period. Liang has said he wants more people, even a small app, to be able to use large models cheaply rather than leave the technology in a few hands.

Editor’s note: This is an adapted translation of the original 36Kr report. It has been trimmed and restructured for readability for an international business audience. The full original (in Chinese) is at https://36kr.com/p/4094509067900544.

Leave a comment