Domestic AI Compute Inference: Crossing the Chasm to a Commercial Loop
This article examines how China's domestic AI compute has moved from feasibility testing to measurable commercial output in large model inference. It covers the shift toward revenue-per-card-hour metrics, the three-stage evolution from running models to large-scale production, the four technical pillars of production inference (operators, communication, memory, and scheduling), a five-dimension framework for evaluating production readiness, and practical deployment recommendations for enterprises.
1. Introduction: From Feasibility Testing to Measurable Commercial Output
Over the past two years, the most notable progress in domestic AI compute for large model inference is not any single benchmark score, but a change in how progress is measured. The industry has started using quantifiable commercial metrics such as revenue per card-hour to evaluate inference services, rather than only checking whether a model can produce output.
Take a publicly disclosed set of off-peak pricing figures as an example: two mainstream accelerator types generated approximately USD 47.50 and USD 17.60 in revenue per card-hour, respectively. These numbers show two things. First, a several-fold gap still remains between domestic compute and the international state of the art, which is an objective fact. Second, that gap is now comparable under the same measurement standard, rather than impossible to compare. Being able to appear in the same comparison table is itself proof of engineering maturity.
The more important implication is the commercial loop. As long as an inference service generates positive revenue per card-hour, it can sustain itself and keep funding the next generation of hardware and software stack iterations. By contrast, a technical path that relies on external funding over the long term struggles to continue once that funding stops. Therefore, in the early stage of an industry, “earning less but earning sustainably” is a more important survival condition than “leading in peak performance.”
2. Three-Stage Evolution: Running, Saturating, and Large-Scale Commercial Use
Stage 1: Running — Proving Technical Feasibility
The goal is to complete end-to-end deployment of a model on domestic chips and produce correct results. The core work is filling gaps in operator coverage, aligning precision, and adapting frameworks. The evaluation standard is whether the results are correct, while performance, cost, and stability all leave substantial room for optimization. This stage is usually driven jointly by many vendors and the open-source community, forming foundational adaptation capabilities.
Stage 2: Saturating — Pushing Toward Theoretical Performance
Work proceeds layer by layer, from single-operator efficiency to multi-card communication, then to memory management and task scheduling, approaching the hardware’s theoretical limits. The evaluation standard shifts from “correct” to “effective throughput per unit of power and per unit of time.” This stage involves the most engineering effort and is the hardest to replace externally, requiring long-term system-level investment.
Stage 3: Large-Scale Commercial Use — Handling Real Traffic
This is no longer lab benchmarking but production environments serving real user requests, with quantifiable commercial output. The evaluation standard becomes availability, tail latency, cost per request, and the accountability of revenue. The sign of entering this stage is an inference cluster operating in a “measurable, schedulable, and profitable” state.
3. Four Technical Pillars of Production-Grade Inference
1. Operator Layer: From Coverage to Efficiency
General operator libraries solve whether operators exist, while high-performance implementations solve whether they are fast. In practice, high-frequency operators such as attention, normalization, and activation functions need fusion to reduce memory round trips of intermediate tensors. For memory-bound operators, prioritize bandwidth utilization; for compute-bound operators, prioritize parallelism and pipelining.
2. Communication Layer: Matching Parallelism Strategy to Topology
Tensor parallelism is sensitive to bandwidth, pipeline parallelism is sensitive to latency, and expert parallelism amplifies All-to-All communication pressure. Production deployment must align the parallelism partitioning scheme with the interconnect topology, and hide communication overhead beneath computation through communication-computation overlap, bucketing, and pipelining.
3. Memory Layer: KV Cache as the Cost Center
Under long context and high concurrency, the KV cache often occupies the majority of GPU memory. Common techniques include paged cache management, prefix reuse, quantization and compression, and hot-cold tiering, offloading part of the cache to host memory or remote storage to trade capacity for cost.
4. Scheduling Layer: Continuous Batching and Priorities
Continuous Batching inserts requests into a batch as soon as they arrive, significantly improving throughput. Combined with preemption and recomputation to control tail latency, and priority queues to meet latency targets for interactive requests.
Illustrative scheduling pseudocode:
while cluster_alive():batch = scheduler.form_batch(max_tokens=BUDGET)for req in batch:if req.prefill_done and req.can_preempt:preempt(req) # yield memory to high-priority requestsoutputs = engine.step(batch) # forward pass + samplingscheduler.enqueue(outputs)metrics.report(batch) # throughput/latency/hit rate
4. How to Evaluate Whether an Inference Service Is Production-Grade
Build a quantitative baseline across five dimensions:
- Throughput and cost: revenue per card-hour, cost per million tokens;
- Latency distribution: focus on P95/P99 rather than averages, especially for interactive scenarios;
- Stability: long-run duration, failure recovery time, request success rate;
- Elasticity: resource reuse rate between off-peak and peak hours; off-peak pricing is an economic means of improving overall utilization;
- Observability: whether logging, monitoring and alerting, and tracing cover the operator and communication layers.
5. Enterprise Deployment Recommendations
- Start with small-traffic canary releases and calibrate the capacity model with real traffic rather than relying on offline benchmarks;
- Build a hardware-agnostic inference abstraction layer to avoid locking the business to a single backend;
- Put cache hit rate and batching efficiency on daily dashboards, and continuously optimize unit cost;
- Use container platforms and message queues for elastic scaling and request buffering to smooth out peaks and valleys;
- In a cloud environment such as Baidu AI Cloud, which offers general-purpose container platforms, object storage, logging, and monitoring and alerting, you can build the observability and elasticity described above more quickly.
6. Conclusion
This big step in domestic AI compute inference is essentially a move from technical feasibility to economic sustainability. The gap still needs to be narrowed through generations of engineering optimization, but as long as each card-hour can reliably generate positive returns, iteration has intrinsic momentum. For developers, mastering the four optimization layers of operators, communication, memory, and scheduling offers more long-term value than chasing a single hardware specification.
