The Unit Economics of LLM Inference on Domestic AI Accelerators: A Practical Path
This article examines how to evaluate and optimize the unit economics of large language model inference running on domestic AI accelerators. It introduces a three-stage evolution model (getting it running, saturating performance, and large-scale commercial deployment), a revenue-per-card-per-hour model that translates throughput metrics into money, and a comparison showing that the main gap lies in decode speed rather than input processing. The article also explains why single-stream output speed is the most critical bottleneck and outlines four areas to close the remaining gap: operators and compilation, caching and reuse, scheduling and elasticity, and cost modeling with observability. It concludes that a trustworthy cost-revenue model and a mature software ecosystem matter more than matching a single hardware benchmark.
1. The Starting Point: Can Inference Services Actually Make Money?
Over the past two years, the evolution of large model inference on domestic (China-based) AI accelerators can be summarized as a path from feasibility validation to a closed commercial loop. A set of publicly available comparison figures illustrates the point well: under off-peak pricing, a certain domestic accelerator card generates roughly $17.60 in revenue per card per hour, while a certain mainstream international flagship platform generates about $47.50 — a gap of nearly 2.7x. That gap is real, but something else deserves more attention: the domestic platform can already produce quantifiable output, which means inference is no longer a pure-cost experiment but a business that can sustain itself.
This article does not focus on any specific product. Instead, it abstracts the issue into a general technical question: how to evaluate and optimize the unit economics of an inference service running on domestic AI accelerators. The core metric here is a single one: how much effective revenue can be generated per unit of time and per unit of hardware investment.
2. A Three-Stage Evolution Model: Running, Saturating, and Commercial Scale
Stage 1: Getting It Running (Feasibility Validation)
The goal is to map the model completely onto domestic chips while ensuring numerical correctness and usable results. Common problems at this stage include fallback implementations caused by missing operators, inconsistent precision, and out-of-memory errors under long contexts. The evaluation criterion is simply “can it produce a result”; performance and cost are not yet in view.
Stage 2: Saturating Performance (Performance Extraction)
Optimization proceeds layer by layer — from core operators, communication mechanisms, and memory management to task scheduling — approaching the theoretical peak. Typical work includes:
- Operator fusion to reduce memory round trips for intermediate tensors;
- Parallelism strategy tuning (choosing split points for tensor parallelism / pipeline parallelism);
- KV cache paging and reuse to improve cache hit rates;
- Continuous batching and preemptive scheduling.
Stage 3: Large-Scale Commercial Deployment (Commercial Loop)
This is no longer benchmark runs in a lab but serving real user traffic and being able to convert technical metrics into revenue. The dividing line at this stage is: whether a trustworthy cost-revenue model has been established.
3. Translating Technical Metrics into Money: The Revenue-per-Card Model
Let (T) be the total effective output tokens of a service within a statistical period, (X) the single-card decode throughput (t/s), (N) the number of cards, and (H) the runtime in seconds. Then:
Effective throughput utilization U = T / (X * N * H)Revenue per card per hour R = (T * price) / (N * H / 3600)
As shown, (R) is roughly proportional to single-card decode throughput and linearly related to utilization (U). The key differences in the comparison data become clear at a glance:
| Metric | Domestic Platform | International Comparison Platform |
|---|---|---|
| Average input length | 98.44K | 98.44K |
| Cache hit rate | 97.2% | 97.2% |
| Time to first token P50 | 277 ms | 205 ms |
| Time to first token P90 | 459 ms | 380 ms |
| Single-stream output speed | 137.9 t/s | 238.9 t/s |
| Single-card decode throughput | 7,409 t/s | 17,840 t/s |
The two platforms have identical input lengths and cache hit rates, which shows the gap is not in “how fast it reads” but in “how fast it generates.” Single-stream output speed of 137.9 vs. 238.9 directly determines the interactive experience; single-card decode throughput of 7,409 vs. 17,840 directly determines how fast the service makes money.
4. Locating the Bottleneck: Why Single-Stream Output Speed Is the Most Critical
Single-stream speed determines the completion time of an individual request, which in turn affects concurrency capacity and user experience. It is constrained by three types of factors:
- Memory bandwidth: The decode phase is memory-intensive, and moving weights and the KV cache is the bottleneck;
- Intra-batch interference: Under large batches, low-frequency requests get “slowed down,” and P90 time to first token is amplified;
- Scheduling granularity: Poor request queuing and preemption strategies can leave effective compute idle.
The optimization direction can be summarized as illustrative pseudocode:
# Goal: maximize effective throughput under latency constraintsfor batch in scheduler.iter_batches():batch = prioritize_by_sla(batch) # sort by SLA prioritybatch = pack_paged_kv(batch) # pack paged KV to reduce fragmentationif batch.predicted_latency > SLA_P90:batch = split_or_preempt(batch) # split or preempt to protect P90execute(batch)
5. Closing the “Last Mile”: Four Paths
- Operators and compilation layer: Continuously fill in high-performance operators, reduce fallback paths, and replace manual tuning with auto-tuning.
- Caching and reuse: Prefix caching, semantic caching, and paged KV management turn a 97%-level hit rate into real compute savings.
- Scheduling and elasticity: Tidal scheduling under off-peak pricing pushes costs to the minimum during low-load periods and is a key lever for revenue per card.
- Cost modeling and observability: Build a monitoring and alerting system with “revenue per card per hour” as the north star metric, and do capacity planning in combination with logging services and container platforms.
6. The Ecosystem Perspective: From Usable to Independently Mature
The real endgame is not matching a single performance point but forming an independent, mature software ecosystem: stable operator libraries, compilers, distributed communication libraries, and developer toolchains. Baidu AI Cloud’s practice in general-purpose compute scheduling, container platforms, and monitoring and alerting shows that ecosystem barriers come from the usability and portability of the toolchain, not from a single hardware parameter.
7. Conclusion
The 2.7x revenue gap is a reality, but “being able to account for the numbers and sustain itself” is the qualification to be at the table. For developers and enterprises, the reusable methodology is: take revenue per card per hour as the single north star, advance in stages through “running — saturating — commercial,” prioritize the two bottlenecks closest to revenue — single-stream output speed and scheduling efficiency — and ultimately turn technical advantages into ecosystem advantages.
