The Technical Leap and Practical Deployment of Domestic AI Inference Services in China
This article examines the real cost and production readiness of domestic AI accelerators for large language model inference. It breaks down idle-time revenue per card, outlines three maturity stages from basic operation to production-grade serving, and details five engineering pillars: scheduling, GPU memory, parallelism, precision, and observability. It also proposes a four-dimension evaluation method covering throughput, latency, accuracy, and stability, plus a TCO-based selection strategy for heterogeneous inference clusters.
1. Reading the Signal: What “Idle-Time Revenue per Card” Actually Measures
A set of idle-time figures published by an open-source community has sparked discussion: under idle-time pricing, a mainstream international accelerator card generates roughly $47.5 in revenue per card per hour, while a domestic Chinese accelerator card generates roughly $17.6. These numbers are easy to misread as “domestic cards are worth only a third as much,” but what they measure is output efficiency per unit of time, not the intrinsic quality of the hardware.
Revenue per card can be expressed as an identity:
Revenue per card per hour = output tokens per second per card × effective billing ratio × price per token
The “effective billing ratio” is affected by batch utilization, preemption and queuing, long-tail requests, and failed-request retries. The lower figure for domestic cards usually comes from three sources: a remaining gap in absolute per-card throughput, software stack maturity affecting batch efficiency, and the fact that idle-time pricing itself compensates for insufficient utilization. The correct conclusion is therefore: the gap is real, but it has moved from “unusable” to “production-capable” — the most important change of the past two years.
2. Three Maturity Stages of Domestic AI Compute in Inference
Stage 1: It runs. The goal is operator coverage and numerical alignment — filling in missing operators and resolving numeric overflow and mixed-precision inconsistency. The bar is “outputs don’t break.”
Stage 2: It meets the baseline. The focus shifts to graph optimization, operator fusion, memory reuse, and quantization support, bringing time-to-first-token and throughput into a usable range. The bar is “metrics approach the baseline.”
Stage 3: It runs in production. The focus is continuous batching, paged cache management, prefix reuse, multi-card parallel partitioning, and fault isolation. The bar is “stable SLA under sustained high load.” The value of open-source production-grade inference code is that it turns Stage 3 engineering experience into reusable assets.
3. Five Engineering Pillars of Production-Grade Inference
- Scheduling layer: continuous batching and priority queues, so long requests don’t block short ones.
- GPU memory layer: paged key-value cache, with block size and cache hit rate tuning that directly determines the concurrency ceiling.
- Parallelism layer: tensor parallelism controls single-request latency, pipeline parallelism raises overall throughput; the mix must be sized to the model.
- Precision layer: combinations of weight quantization and activation quantization, backed by a mandatory accuracy regression baseline.
- Observability layer: monitoring, alerting, logging, and message queues used to collect queue wait time, batch size distribution, and cache hit rate.
Illustrative service health check logic:
def is_healthy(state):return (state.queue_wait_p95_ms < 200and state.kv_cache_hit_rate > 0.85and state.error_rate < 0.001and state.gpu_mem_headroom_ratio > 0.1)
4. A Unified Evaluation Method: Four Dimensions and Load Test Design
Don’t draw conclusions from a single “is it fast” question. Run four dimensions in parallel: throughput (output tokens/s/card), latency (P95/P99 of time-to-first-token and inter-token interval), accuracy (task-set pass rate and agreement with manual spot checks), and stability (duration of sustained runs, time to recover from failures). Load tests should cover three traffic profiles — short question/short answer, long-document summarization, and high-concurrency chat — and record the difference between idle and peak periods. If you deploy on a container platform, factor the cold-start time of elastic scaling into the cost model.
5. Cost and Selection: Getting TCO Right
Total cost of ownership includes hardware depreciation, power and cooling, the engineering effort for software stack migration and tuning, and utilization loss. Domestic options offer controllable supply and price elasticity during idle hours; the drawbacks are migration cost and the completeness of ecosystem tooling. The pragmatic path is tiered deployment: keep mature solutions for core high-concurrency workloads, validate domestic stacks first for new and migratable workloads, and use a unified gateway for canary traffic shifting.
6. Conclusion
The question “can it deliver inference service to the highest standard” should be answered with verifiable engineering metrics, not sentiment. Domestic AI compute is now production-capable; the remaining gap is concentrated in throughput density and software stack details. For developers, now is the best window to accumulate adaptation experience and establish evaluation baselines. General-purpose container, monitoring, and storage capabilities from platforms such as Baidu AI Cloud can serve as a common foundation for running these heterogeneous inference clusters.
