How Domestic AI Accelerators Can Reach Production-Grade LLM Inference

    Evaluating Chinese AI compute for large language model inference requires more than comparing revenue per accelerator card. This article breaks the journey into three capability stages—correct execution, efficient execution, and sustained service delivery—and outlines concrete acceptance criteria across quality, performance, reliability, and economics. It also explains what actually determines inference efficiency (operator implementation, KV-cache capacity, scheduling, and multi-card parallelism), why open-sourcing production-grade inference code lowers engineering exploration costs, and how enterprises should validate systems through a staged, real-workload process.

    1. Judging Inference Capability Takes More Than a Revenue-per-Card Table

    A common way to discuss LLM inference capability on domestic accelerators is to compare how much revenue each accelerator card generates per hour under a given pricing model. That metric has commercial value, but it is not equivalent to chip performance and cannot by itself prove that a system meets production standards.

    Per-card revenue is shaped by service pricing, request mix, resource utilization, input/output lengths, deployment scale, and quality requirements. The same hardware serving mostly short-form Q&A can complete a very different number of requests per unit time than the same hardware handling long-document analysis. If two services use different pricing schemes, revenue differences may simply reflect commercial pricing rather than technical capability.

    A more rigorous analysis should therefore be split into three questions:

    1. Under the same model, comparable precision, and the same request workload, how much effective throughput can the hardware and software stack deliver?
    2. Given latency and reliability requirements, how many resources are required?
    3. After deducting hardware, energy, networking, operations, and migration costs, is the service economically sustainable?

    Progress in domestic AI compute does not necessarily mean it leads on every metric. The more meaningful question is whether it has moved from “the model can run” to “the service can be delivered reliably,” and whether it can continue to optimize cost and experience over time.

    2. Three Capability Stages in the Evolution of a Domestic Inference Stack

    These three stages are an engineering analysis framework, not a claim about how every team’s history unfolded. Different models, hardware, and business scenarios may sit at different stages.

    Stage 1: Making the Model Run Correctly

    The main task at this stage is to get the model execution path working: weight loading, operator support, data type handling, memory management, and multi-card communication.

    The difficulty usually is not producing some output text, but producing it reliably. Replacing operators, reducing precision, or reordering execution can all introduce numerical deviations. A model that starts up successfully may still lose quality on long contexts, complex reasoning, or structured-output tasks.

    Acceptance at this stage should focus on:

    • Whether numerical errors for key operators stay within an acceptable range;
    • Whether execution remains stable across different input lengths;
    • Whether multi-card runs exhibit communication stalls or resource leaks;
    • Whether quality on representative tasks degrades noticeably.

    At this point, the system is solving a technical feasibility problem, not a commercial delivery problem.

    Stage 2: Making the Model Run Efficiently

    Once the model executes correctly, optimization shifts to hardware utilization and service throughput. Typical work includes operator fusion, memory-access optimization, parallel strategy tuning, request batching, and cache management.

    LLM inference consists of two phases: prompt processing and step-by-step generation. Prompt processing handles the existing context and is generally characterized by strong parallel computation. Generation produces new tokens one at a time and is more often constrained by memory bandwidth, cache access, and request scheduling.

    This means simply speeding up a certain class of matrix operations does not necessarily improve the whole service proportionally. Optimization only makes sense once the real bottleneck has been identified.

    For example, at low concurrency the system may be limited by single-request execution efficiency, while at high concurrency it may be limited by cache capacity, queuing time, or communication overhead. The optimal configuration can also differ across workloads.

    Stage 3: Making the Model Run Sustainably and Controllably

    Production-grade capability is about converting performance optimization into long-term, stable delivery.

    The system must handle request surges, node failures, extremely long inputs, client cancellations, version upgrades, and resource exhaustion. Even if a benchmark run achieves very high throughput, the system is not mature if tail latency keeps deteriorating under real traffic, or if it cannot recover after a failure.

    This stage typically requires:

    • Request admission control and resource quotas;
    • Timeouts, cancellation, and resource reclamation;
    • Health checks and failure isolation;
    • Canary releases and fast rollback;
    • Metrics monitoring, log analysis, and capacity planning;
    • Rate limiting and graceful degradation under high load.

    Therefore, the value of open-sourcing production-grade inference code lies not only in providing a program that can execute a model, but in exposing engineering practices that have been validated in real operation. That said, open code is not by itself a guarantee of results—users must revalidate on their own hardware, models, and business conditions.

    3. “Highest Standard” Must Be Translated into Concrete Acceptance Metrics

    “High-standard inference service” becomes unverifiable rhetoric unless it is tied to test conditions and metrics. Enterprise evaluation should cover at least four dimensions: quality, performance, reliability, and economics.

    1. Quality: Confirm That Optimization Hasn’t Changed Task Results

    Inference optimization cannot chase speed alone. Lowering numerical precision, changing operator implementations, or introducing new generation strategies all require re-checking model quality.

    Evaluation should cover real business tasks: factual QA, information extraction, complex instruction following, long-context understanding, and tasks requiring stable formats. For structured output, also check field completeness, format validity, and parseability.

    If the model participates in business decisions, keep an independent validation pipeline. Fluent-looking output is not evidence that model quality has not regressed.

    2. Performance: Watch Both First-Response and Continuous Generation

    For streaming services, user experience is typically composed of two parts:

    • Time to first token (TTFT): the time from when a request enters the system to when the first generated token is returned;
    • Generation-phase latency: the speed of subsequent tokens, and whether there are noticeable pauses.

    You should also observe end-to-end completion time, request throughput, and token throughput. Averages describe only the overall picture; they cannot replace high-percentile latency. A small number of severely queued requests can significantly damage the interactive experience.

    When testing, the timing boundary must also be explicit. Counting only device compute time yields different conclusions from counting the complete request time that includes queuing, communication, and encoding/decoding.

    3. Reliability: Performance Tests Must Include Failure Scenarios

    Stability is not “running for a while without errors”; it is maintaining controlled behavior under abnormal conditions.

    Actively test node failures, communication interruptions, cache exhaustion, request cancellation, and duplicate retries. Watch for resource leaks, request pile-ups, or failure propagation.

    Overload behavior deserves particular attention. A mature system should reject requests beyond capacity or protect core services through explicit degradation, rather than accepting requests until total collapse.

    4. Economics: Count Qualified Output, Not Raw Output

    Cost accounting can follow this general approach:

    Unit cost of qualified output = total cost over the accounting period ÷ output volume in the same period that meets quality and service targets.

    Total cost should include hardware depreciation or rental, energy, networking, storage, operations, and necessary software adaptation. Failed requests, timed-out requests, and output that fails quality standards must not be counted as delivered results.

    If two systems differ in output quality or latency targets, comparing raw cost per token can be misleading. A fair comparison requires essentially the same service requirements.

    4. What Determines Inference Efficiency Is Not Just the Accelerator Chip

    1. Operator Implementation Determines Baseline Execution Efficiency

    A model consists of a large number of computation and data-movement operations. If operator implementations do not match the hardware’s data layout, parallel granularity, and memory hierarchy, the theoretical compute capability may remain largely unused.

    Operator fusion reduces intermediate-result reads and writes, but more fusion is not always better. Excessive fusion can increase implementation complexity and hurt efficiency at certain shapes or batch sizes. Optimization should be driven by repeatable measurements, while preserving numerical correctness checks.

    2. Attention Cache Determines Concurrency Capacity

    During step-by-step generation, the model typically caches the keys and values of previous context to avoid recomputation. This cache grows with context length and concurrent request count, making it a key object in capacity planning.

    Cache management must handle allocation, release, fragmentation, and sharing. For repeated prefixes, the cache can be reused when conditions permit, but cache matches must be correct, and access boundaries between requests must be respected.

    Testing only with short contexts can underestimate memory pressure in real business. Long-document processing and multi-turn conversations must be evaluated separately.

    3. Scheduling Strategy Affects Throughput and Tail Latency

    Continuous batching lets new requests join a running batch, improving utilization. But it introduces scheduling trade-offs: long requests may occupy a lot of cache, while short requests care mostly about fast completion.

    The scheduler must balance fairness, throughput, and latency according to business goals. For example, interactive requests and offline tasks can use separate queues so that large offline jobs do not squeeze online service resources.

    Note that scheduling cannot remove the resource ceiling. When input volume persistently exceeds processing capacity, the problem must be solved through scaling out, rate limiting, or load shifting.

    4. Multi-Card Parallelism Is Constrained by Communication Conditions

    When a model does not fit on a single card, or higher throughput is needed, multi-card cooperation is usually required. But scaling card count does not translate into linear throughput growth.

    Different parallelism strategies introduce different communication patterns. Model size, layer structure, network bandwidth, communication latency, and node topology all affect the final result.

    Therefore, analyze the communication share before scaling. If the dominant bottleneck has already shifted to cross-node data exchange, adding more compute resources may yield diminishing returns or even increase total cost.

    5. Open-Sourcing Production-Grade Code Truly Reduces Engineering Exploration Cost

    A reference-quality inference implementation helps developers understand how a model maps onto hardware, how requests are scheduled, how caches are organized, and how performance problems are localized.

    But it cannot automatically solve every migration problem. The target environment may have different operator support, communication conditions, driver versions, and operational constraints; the business may also use different models or input distributions.

    When using open-sourced code, check:

    • Whether the license permits your intended use;
    • Whether clear runtime conditions and version notes are provided;
    • Whether correctness and performance test methods are included;
    • Whether performance conclusions cover realistic business workloads;
    • Whether failure-recovery and monitoring capabilities are complete;
    • Whether the code remains maintainable after modification.

    The most important significance of open-sourcing code is to move technical discussion from abstract claims to inspectable, reproducible, and improvable engineering facts—not to make all environments automatically produce the same results.

    6. Enterprises Should Use a Staged Validation Process

    Step 1: Build a Business Workload Profile

    Collect statistics on input length, output length, peak concurrency, request arrival patterns, and the proportion of multi-turn conversations. Identify which requests are sensitive to first-token response and which tasks care most about total completion time.

    The workload profile must come from real business or representative samples—not only fixed-length requests arriving at uniform intervals.

    Step 2: Establish a Unified Quality and Service Baseline

    Pin down the model version, generation configuration, quality evaluation set, and latency targets. Different hardware solutions must be compared under identical or equivalent conditions, so that model changes are not mistaken for system performance changes.

    Step 3: Run Single-Node and Multi-Node Stress Tests

    First confirm basic execution correctness, then gradually increase context length, concurrency, and node count. Record compute, memory, communication, and queuing metrics; identify performance inflection points and the maximum sustainable load.

    Step 4: Verify Exception Handling and Upgrade Procedures

    Run fault injection, request cancellation, overload tests, and version rollback drills. Production risk rarely appears at the best-performance point; it appears at boundary conditions and during state transitions.

    Step 5: Launch with Limited Traffic and Continuously Re-Evaluate

    Use canary traffic to observe real quality, tail latency, and resource consumption. As user behavior, model versions, and traffic structure change, earlier capacity conclusions may become invalid, so continuous re-evaluation is required—do not rely indefinitely on a one-time test after launch.

    7. Conclusion: The Key Leap for Domestic Compute Is Verifiable Service Capability

    Judging whether domestic AI compute has made substantive progress should not rely only on per-card revenue, peak compute, or a single demo. What matters is: under explicit model-quality, workload, and service targets, can the system run stably, is cost controllable, can problems be localized, and can versions keep evolving?

    Moving from “the model can run” to “inference efficiency is acceptable” and then to “the service can be delivered long-term” requires hardware, software, and operations to advance together. Open-sourcing production-grade code lowers the barrier to engineering validation and adaptation, but it cannot replace testing in the specific scenario.

    For developers and enterprises, the soundest attitude is neither to dismiss progress because of a gap on a single metric, nor to accept across-the-board leadership simply because code has been open-sourced. Instead, establish a unified, transparent, reproducible evaluation methodology. Only by converting technical capability into continuously usable business capability can the value of domestic AI compute be fully demonstrated.