The Economics of Domestic AI Accelerators for LLM Inference: Bottleneck Analysis and Optimization

    This article breaks down the unit economics of LLM inference on domestic AI accelerators, using published benchmarks to show that revenue per card-hour is driven by decode throughput rather than peak compute. It explains how to model card-hour output, why single-stream speed matters most for interactive workloads, the three-stage path from feasibility to production, and practical evaluation and ecosystem recommendations.

    1. The Right Question: Not “Can It Run?” but “Does the Math Work?”

    Debates over whether domestic AI accelerators can deliver top-tier inference service usually stay at the benchmark level. A more useful engineering question is: under real user traffic, what is the commercial output per card-hour, which layer is the bottleneck, and is the cost of closing that gap manageable?

    Published operating data offers a comparable sample. With an average input length of about 98K tokens and a prefix cache hit rate of about 97%, a domestic accelerator platform and a leading international platform show roughly the following:

    Metric Domestic Platform Reference Platform
    Average input length ~98.44K ~98.44K
    Prefix cache hit rate ~97.2% ~97.2%
    TTFT P50 ~277 ms ~205 ms
    TTFT P90 ~459 ms ~380 ms
    Single-stream output speed ~137.9 t/s ~238.9 t/s
    Per-card decode throughput ~7,409 t/s ~17,840 t/s
    Revenue per card-hour (off-peak rate) ~17.60 ~47.50

    The revenue gap is about 2.7x and the throughput gap is about 2.4x. Since the two are close in magnitude, revenue per card-hour is essentially determined by decode throughput, not peak compute. This is the anchor for every optimization decision that follows.

    2. Write Revenue as a Formula and the Bottleneck Emerges

    A simplified model can describe card-hour output:

    1. revenue_per_card_hour ≈ price_per_token × decode_throughput × utilization
    2. decode_throughput ≈ f(batch_size, kv_cache_budget, memory_bandwidth, comm_efficiency)

    In long-input, high-cache-hit scenarios, prefill is largely absorbed by the cache, so the cost center falls almost entirely on the decode stage. Decode is memory-bandwidth bound: every generated token requires re-reading weights and the KV cache. The ceiling is therefore set by memory bandwidth, KV cache capacity, and parallel communication efficiency, not by floating-point peak. This explains why per-card decode throughput and revenue move in lockstep, and why single-stream speed and total throughput show different gaps.

    Looking closer, the single-stream speed gap (~1.73x) is smaller than the total throughput gap (~2.41x). This suggests the domestic platform already has solid batching and concurrency aggregation, and the weakness is concentrated in the “per-request latency to bandwidth utilization” chain.

    3. Three-Stage Evolution: Run, Saturate, Account

    Stage one is feasibility validation: the model loads and produces correct results, but operator coverage is incomplete, precision strategies are conservative, and stability is insufficient.

    Stage two is squeezing the hardware: optimizing core operators, collective communication, memory management, and task scheduling layer by layer to raise theoretical utilization. This stage depends heavily on architecture-level engineering capability and has the highest barrier in the whole path.

    Stage three is production validation: no longer relying on lab benchmarks, but serving real traffic and quantifying commercial output. The key shift is that the evaluation system moves from “peak performance” to “output per unit cost,” while fault rate, scaling speed, and canary capability must meet online standards.

    4. Why Single-Stream Output Speed Is the Most Valuable

    Perceived responsiveness in interactive scenarios is determined by single-stream speed, while billing and concurrency density are determined by total throughput. Low single-stream speed usually comes from three causes:

    • In-batch scheduling favors large batches, so a single request is diluted within the decode loop;
    • A mismatch between KV cache paging and memory access granularity reduces effective bandwidth;
    • Small operators such as sampling, normalization, and quantization/dequantization are not fused, creating heavy short-kernel launch overhead.

    Common optimization techniques include operator fusion, paged KV cache, speculative decoding, and SLA-tiered co-location:

    1. # Example: dynamically pick a concurrency tier based on TTFT target
    2. def pick_batch(pending, ttft_p50, slo_ms=300):
    3. for bs in sorted(pending, reverse=True):
    4. if estimate_ttft(bs) <= slo_ms * 0.8:
    5. return bs
    6. return 1 # Fallback: prioritize latency

    5. Deployment Recommendations and Ecosystem Gaps

    To evaluate whether domestic compute is production-ready, validate in this order: first, measure throughput and P90 latency with a benchmark set of fixed input and output lengths; then replay real traffic to measure cache hit rate and jitter; finally, calculate card-hour output and scaling costs.

    At the ecosystem level, the last stretch still needs work: a unified graph compiler and operator library, mature adaptation of distributed training and inference frameworks, an observability stack (logging services, monitoring and alerting, tracing), and elastic scheduling on container platforms. Baidu AI Cloud has general practices in heterogeneous compute scheduling and inference serving that can serve as an architectural reference. The real turning point is not a single benchmark lead, but the ability to sustain profit, self-fund, and gradually build an independent, mature toolchain ecosystem.