Analyzing the Technical Standards of Domestic AI Inference Services
This article breaks down the engineering standards required for production-grade inference on domestic AI accelerators. It explains how to translate business workloads into hardware resource profiles, details four core metrics for bottleneck attribution—covering prefill throughput, decode throughput, single-stream speed, and card allocation ratios—and outlines key engineering practices for load governance, disaggregated deployment, and observability. Readers will learn a reliable framework to evaluate whether domestic compute can deliver high-standard inference services.
1. The Starting Point: Why Open-Source Production-Grade Inference Code Deserves Serious Attention
When a production-grade inference implementation designed for domestic accelerator cards is open-sourced, industry discussions often focus on whether it simply runs. The metric that truly determines value is whether it can deliver inference services externally at the highest standard. Here, “highest standard” does not refer to peak compute numbers, but to simultaneously satisfying four constraints under real business traffic: throughput, latency, stability, and unit cost. Determining whether domestic compute meets the mark requires breaking service capability into quantifiable engineering metrics rather than relying on single-point benchmarks.
2. Translating Business Workloads into Hardware Pressure
Inference workloads can be abstracted into two phases. The prefill phase processes all input tokens at once; it is compute-intensive and highly unfriendly to memory access on long sequences. The decode phase generates output token by token, re-reading model weights and the KV cache at every step; it is bandwidth- and capacity-intensive. Because their resource profiles are completely different, the same card can have vastly different revenue-generating capabilities across different workloads.
The extreme scenario described in the source material is worth abstracting into a general model: a single user submits roughly 100MB of plain text at once (about 20 million tokens), far exceeding a normal context window, with a cache hit rate of zero and extremely short output per round. The essence of this traffic is the continuous consumption of the most expensive and scarcest prefill capability, producing almost no decode benefit. The following illustrative code expresses this pressure model:
# Illustrative workload characteristics only; not specific product parametersprefill_tokens = 20_000_000 # Extra-long inputcache_hit_ratio = 0.0 # No prefix reuseoutput_tokens = 8 # Extremely short outputcost_ratio = prefill_tokens / max(output_tokens, 1)# The larger the cost_ratio, the more compute consumed per unit of revenue
When the cost_ratio reaches the millions, the effective output per card per hour drops significantly, creating a several-fold gap compared to reasonable workloads. Operators must also bear higher power and rack density costs. This explains why many platforms tighten policies on unlimited usage—it is not a capability issue, but a workload structure issue.
3. Four Core Metrics and Bottleneck Attribution
Evaluating an inference service is best done across four fixed dimensions: uncached prefill throughput, total per-card decode throughput, single-stream output speed, and the card count ratio between prefill and decode. Their bottlenecks fall sequentially on compute and long-sequence memory access, memory bandwidth and capacity, bandwidth and interconnect latency, and the compute-to-bandwidth ratio.
Comparison data from the source material (a certain generation of domestic card versus a competitor) shows: prefill throughput of approximately 26.03K tps versus 77.74K tps, about 2.99x; total per-card decode throughput of 7.409K tps versus 17.84K tps, about 2.41x; single-stream output of 137.9 tps versus 238.9 tps, about 1.73x; revenue per card per hour of 17.6 versus 47.5, about 2.70x; and a prefill-to-decode card ratio of 1.24:1. Working backward, the competitor’s memory bandwidth is roughly 2x (on the order of about 8TB/s), and compute must reach 3 to 4x to produce 2.41x aggregate decode throughput under 2x bandwidth. This shows that single-stream latency is determined by bandwidth and interconnect latency, while total throughput is jointly determined by bandwidth, capacity, and compute—the three cannot substitute for one another.
4. Engineering Essentials for Production-Grade Services
- Load governance: Set quotas and priorities for input length, output length, concurrency, and cache hit rate to prevent long texts from monopolizing prefill resources.
- Disaggregated deployment: Pool cards at a prefill-to-decode ratio of around 1.2:1, combined with prefix caching and chunked prefill to improve reuse rates.
- Interconnect and parallelism: High-bandwidth intra-node multi-card interconnect determines tensor parallelism efficiency; the single-layer switching scale of a super node determines the upper limit of models and concurrency that can be supported.
- Observability: Use effective token revenue per card per hour, queuing latency, and cache hit rate as core dashboard metrics, rather than looking at utilization alone.
- Cloud deployment: Elastic scaling can be combined with container platforms, object storage can host long texts, message queues can smooth traffic peaks, and logging with monitoring alerts can form a closed loop. The general capabilities of Baidu AI Cloud can serve as a reference path.
5. Conclusion
Domestic compute already has the hardware foundation to deliver inference services at a high standard. Public specifications—approximately 1 PFLOPS FP8, approximately 2 PFLOPS FP4, 144GB of memory, approximately 4TB/s bandwidth, and single-layer interconnect across 128 cards—are key supports. The real gap lies not in peak performance, but in the engineering maturity of load governance and ratio tuning. Translating business workloads into resource profiles and using the four metrics to attribute bottlenecks is the reliable method for judging whether services can be delivered at the highest standard.
