[KongchangAI]
· 2 min read· 1,472 words

DeepSeek Open-Sources Ascend Inference Code: Domestic Compute Earns ¥118 per Card-Hour, Going Head-to-Head with NVIDIA

DeepSeek Open-Sources Ascend Inference Code: Domestic Compute Earns ¥118 per Card-Hour, Going Head-to-Head with NVIDIA

DeepSeek open-sources Ascend production inference engine, with real-world data showing ¥118 revenue per card-hour.

DeepSeek has fully open-sourced the Ascend production-grade code for its DeepInfer inference framework, backed by real business data proving domestic compute can make money: with average input near 100K tokens, first-token latency is 277ms and output speed is 138 words/sec, generating ¥118 per Ascend chip per hour at off-peak pricing. The article breaks down three key optimizations—operator fusion reducing memory movement, 1.24:1 read/write separation with zero-wait scheduling, and a PB-scale cache pool delivering 35x throughput (97.2% hit rate). Compared to NVIDIA SM100, Ascend single-card throughput is still one-third to 40%, but latency differs by only 72ms—already past the commercial threshold. The open-source foundation paves the steepest part of the road for domestic teams migrating to domestic compute.

DeepSeek has done something few in China's AI community dare to attempt: fully open-sourcing its production-grade inference code—and running it on Huawei Ascend. This isn't just a technical flex; it's a real business ledger—each Ascend chip generates ¥118 in real revenue per hour. Drawing on a breakdown video by Bilibili creator "龟姬团子" (Turtle Princess Dumpling), this article explains the underlying logic behind this domestic compute "gear shift and acceleration."

What Was Open-Sourced: Not an Adaptation Layer, but a Full Engine Powering Live Traffic

According to Bilibili creator 龟姬团子, DeepSeekAd has open-sourced the complete Ascend production-grade code for its inference framework DeepInfer on GitHub. The key phrase is "production-grade"—this isn't a lab demo but the live system actually handling massive user traffic for DeepSeek V4.1 Flash.

The official scorecard is convincing: with an average input length of over 98,000 tokens (equivalent to stuffing an entire novella into every question), the Ascend 950DT supernode achieves a median first-response latency of just 277 milliseconds. A human blink takes about 300 milliseconds—meaning the model's first token pops out before you even finish blinking. It then streams output at a smooth 138 words per second.

More critically, the revenue column: even at the cheapest off-peak pricing, each Ascend chip still generates ¥118 RMB in real operating revenue per hour. This turns "can domestic chips make money?" from a debate into a verifiable fact.

The Three Trump Cards: What DeepInfer Actually Changed

In the past, many teams running large models on domestic chips faced a vexing problem: paper specs looked fine, but efficiency dropped by half the moment real workloads hit. DeepSeek's optimizations in DeepInfer boil down to three core moves.

Trump Card 1: Operator Fusion—Less Running Around, More Computing

Models run slowly often because computation is sliced too finely. After each normalization or positional encoding step, data must be written back to memory and read out again—time wasted entirely on data movement. DeepInfer rewrote custom kernels in Ascend's low-level language, fusing normalization, positional encoding, low-precision quantization, and cache write-back into a single operator computed in one pass. Combined with FP8 and FP4 low-precision computation, it fully saturates the Ascend chip's compute pipeline.

Low-Precision Computing (FP8/FP4): FP8 refers to the 8-bit floating-point format and FP4 to the 4-bit format; both reduce memory footprint and bandwidth demand by shrinking the bit width per value, while boosting throughput of compute units like matrix multiplication. The trade-off is reduced numerical precision, requiring scaling factors, block-wise quantization, or mixed-precision strategies to suppress error accumulation. For large-model inference, weights and activations can typically tolerate lower precision, but sensitive stages like normalization and accumulation still need higher precision—so in practice, multiple precision formats are mixed rather than a one-size-fits-all approach.

Trump Card 2: Read/Write Separation and Zero-Wait Scheduling

Reading a 90,000-word long document is a compute-intensive task, while streaming out answers token by token is memory-bandwidth-intensive; running them mixed together causes mutual stalls. So the live system splits cards into those handling long-document reading and those handling answer generation at a ratio of 1.24:1.

Architecture diagram of splitting read/write loads at a 1.24:1 ratio

Meanwhile, the engine enables one-step zero-overhead scheduling: while the Ascend chip is fully occupied computing the next step, the CPU synchronously finishes the previous step's wrap-up work in the background, eliminating idle spinning where the chip waits on the CPU. It can also dynamically replicate the busiest hot experts so no single card becomes a bottleneck.

PD Separation (Prefill/Decode Disaggregation): Large-model inference has two phases—the Prefill phase processes the entire input prompt at once (compute-intensive, limited by compute), and the Decode phase generates output token by token (limited by memory bandwidth). The two phases have opposite hardware preferences; co-locating them on the same cards causes resource contention and lowers overall utilization. PD separation schedules the two workload types onto different card groups, dynamically allocating capacity according to business traffic ratios so each bottleneck resource is fully utilized. The cost is the need to efficiently transfer KV cache between the two groups, which places higher demands on interconnect bandwidth and the scheduling system.

Trump Card 3: Ultra-Long-Cycle Context Cache Reuse

This is the real money-making secret. The most dramatic comparison in the table: without caching, Ascend single-card throughput is 26,000 tokens per second; with caching, it soars to 929,600 tokens per second—a 35x surge.

The official setup includes a PB-scale solid-state drive cache pool that retains context for over 72 hours, with an average cache hit rate of 97.2% in live traffic. Even if your agent doesn't finish by Friday afternoon and you pick it up Monday after the weekend, the tens of thousands of words of history don't need recomputation—saving massive compute costs.

Context cache still reusable after weekend interruption

KV Cache and Prefix Caching: When generating each token, the Transformer uses the Key/Value vectors of all previous tokens; these intermediate results are the KV cache. Without caching, every conversation round would require re-running the forward pass over the entire history. Prefix caching stores the KV of already-computed context in high-speed storage (e.g., SSD pools) in blocks, so the next time the same prefix appears it's hit and reused directly, computing only the new portion. For scenarios with fixed system prompts, multi-turn follow-ups, and repeated agent calls, hit rates are often extremely high—yielding large throughput gains at very low marginal cost.

The Real Gap vs. NVIDIA SM100

The official technical documentation candidly includes a column of comparison data on the right side, referencing NVIDIA's latest flagship architecture, SM100.

NVIDIA SM100 reference data at $47.5 revenue per hour

The gap is real: Ascend single-card absolute throughput remains about one-third to 40% of NVIDIA's flagship. But latency differs by only 72 milliseconds, and it has solidly crossed the threshold for large-scale commercial monetization. In other words, the process-node generation gap hasn't been closed, but software-level optimization has already solved the "can it be commercialized?" question ahead of time.

Worth noting: the $47.5 per hour is SM100's reference revenue figure, while Ascend's ¥118 RMB is calculated at off-peak pricing—the two aren't on completely equal footing, so direct horizontal comparison requires caution. The creator also points out that the significance of this comparison isn't who wins or loses, but that domestic chips now have a production-grade ledger that can be benchmarked.

SM100 and the Process-Node Gap: SM100 is the codename for NVIDIA's new-generation data center GPU architecture, representing the compute and memory subsystem level of its flagship products. The root of the gap lies mainly in semiconductor manufacturing processes, HBM high-bandwidth memory capacity and bandwidth, and inter-chip interconnect capability—structural hardware-level differences that software alone cannot fully bridge. Software optimization can improve "non-peak-compute" factors such as data movement frequency, scheduling idle time, and cache hit rates. Therefore, on end-to-end metrics like latency, software can significantly narrow the perceived gap, but absolute throughput remains constrained by the hardware ceiling.

What It Means for the Industry: The Flywheel Starts Turning

The hardest hurdle for domestic chips has never been hardware specs alone, but the lack of a top-tier software ecosystem. Without leading large models pushing the underlying hardware to its limits, chips can't achieve efficiency; the less efficient they are, the less other companies dare to switch—an easy path into a vicious cycle.

This time, DeepSeek first proved Huawei Ascend could run, run fast, and generate real commercial returns within its own daily torrent of 1.55 trillion tokens of live business. Then it open-sourced the hardest-to-crack inference engine, Ascend-customized operators, and the entire architecture design documentation to society.

Open-source foundation paves the way for domestic compute migration

It should be noted that the distributed cache pool and global routing, which are deeply tied to the data center, cannot yet be directly packaged into the code repository. But according to the creator's analysis, this open-source foundation has already paved the steepest stretch of mountain road for all domestic large-model and enterprise teams migrating to domestic compute. As more teams run along this codebase, the positive flywheel of domestic compute moving from "usable" to "great to use" will truly start spinning.

Open Questions for the Industry

At the end of the video, the creator poses a question worth discussing: for domestic compute to fully catch up with the international top tier, what matters more—breakthroughs in chip manufacturing hardware, or grinding out the low-level software ecosystem bit by bit as we're doing today?

Looking at the DeepInfer case, the leverage of software optimization is staggering—a 35x throughput gain comes entirely from cache reuse and scheduling strategy, not from swapping hardware. On the other hand, single-card throughput is still only one-third to 40% of the flagship, and the hardware generation gap ultimately must be chased through process technology. The two paths aren't mutually exclusive, just different in pace: the software ecosystem lets existing hardware monetize immediately, while hardware breakthroughs determine the long-term ceiling.

#DeepSeek#Ascend#DeepInfer#domestic compute#NVIDIA SM100#LLM inference#operator fusion#KV cache
Share:

Related articles