Evaluating Domestic AI Compute for Production LLM Inference: A Practical Guide

    This guide explains how to evaluate domestic AI compute for large language model inference in production settings. It covers why the key question has shifted from feasibility to unit economics, which test conditions must be fixed before comparing results, and four metrics that matter for capacity and budget decisions: time to first token, single-stream output speed, per-card decode throughput, and revenue per card-hour. It also shows how to weight these metrics across interactive, near-real-time, and offline manufacturing workloads, how prefix cache hit rate acts as an underused lever, and a four-step path from validation to full production rollout. Common evaluation pitfalls and final recommendations are included.

    1. The Focus Has Shifted: From “Can It Run” to “Is It Worth Running”

    For the past two years, discussions of domestic AI compute mostly centered on whether a large model could be run at all. In most general-purpose scenarios, that question is now settled. The question that actually matters is closer to the business: for tasks that manufacturing companies run at high frequency every day—quality inspection re-review, equipment Q&A, and 8D report generation—does running them on domestic compute work both reliably and economically?

    These are two different kinds of judgment. The first is a capability question: can the model produce stable output at the target accuracy and context length? The second is an economic question, which has to be reduced to four measurable metrics. Mixing the two usually distorts the assessment—proven capability does not mean optimized cost, and high cost does not mean the scenario is a poor fit.

    More importantly, pushing the capability boundary changes the evaluation paradigm. As domestic compute moves from lab validation to handling real production traffic, the enterprise question shifts from “is there a usable option” to “how do we choose among multiple options.” This is a clear dividing line: once it is crossed, the dominant variable in technology selection changes from feasibility to unit economics.

    2. Fix the Test Conditions First: Why the Same Hardware Produces Different Conclusions

    Before any performance comparison, you have to confirm that the test conditions are identical. LLM inference performance is extremely sensitive to input and output structure, and numbers taken out of context are meaningless. At minimum, lock down these variables:

    • Input context length: long contexts significantly amplify attention computation and memory usage;
    • Cache hit rate: whether the prefix cache hits directly determines time to first token and compute consumption;
    • Concurrency and stream count: single-stream latency and multi-stream throughput usually move in opposite directions;
    • Precision and quantization strategy: different precisions affect both memory capacity and compute efficiency;
    • Batching and scheduling strategy: mechanisms such as continuous batching and chunked prefill change the actual throughput curve.

    A common comparison setup pairs very long input with a high cache hit rate—for example, input length approaching the order of one hundred thousand tokens with a cache hit rate close to 97%. Under these conditions, most of the prefill work is reused from cache, so the metrics mainly reflect decode and scheduling efficiency. In low-hit, short-input scenarios, prefill becomes the bottleneck and the conclusion can reverse entirely. For this reason, any comparison data should be labeled a “single-point result under specific conditions,” not a universal performance promise.

    3. Four Metrics to Watch and What They Mean for the Business

    When evaluating inference compute, manufacturing companies should build a dashboard around four metrics rather than looking at a single composite benchmark score.

    1. Time to First Token (P50 / P90)
      Time to first token determines the interactive experience. P50 reflects the average experience, while P90 reflects the worst-case wait. Scenarios like equipment Q&A and on-site work assistance are more sensitive to P90, because once frontline staff hit a long wait, they fall back to the old process. As a rule of thumb, interactive Q&A should keep P90 in the hundreds of milliseconds, while offline report generation can relax to seconds.

    2. Single-Stream Output Speed
      Single-stream speed determines the actual time to generate long text. Outputs like 8D reports and process documents often run to thousands of tokens; if single-stream speed is low, the time per task scales linearly, directly affecting how many tasks can be completed within a shift.

    3. Per-Card Decode Throughput
      This is the core variable for capacity planning. It determines how many accelerator cards are needed to hit a given concurrency target, which in turn drives the knock-on investment in data center space, power, and cooling. When per-card throughput is low, the number of cards needed to reach the same total throughput rises sharply, and this amplification effect is often underestimated at the budgeting stage.

    4. Revenue per Card-Hour
      Converting throughput into the business output it can support, then dividing by the hourly resource cost, yields the unit-economics metric. It answers “is it worth it” and is the only number that speaks directly to the business budget. It depends heavily on scenario parameters, so talking about returns without the input and output structure is meaningless.

    In public single-point comparisons, domestic platforms and external reference platforms show a real gap under identical test conditions. The gap in per-card throughput means reaching the same total throughput takes roughly 2.4 times the card count. This conclusion has two sides: one is the cost pressure from resource amplification; the other is that domestic platforms are already capable of handling real production traffic, so availability is no longer a blocker.

    4. Layer by Scenario: Different Workloads Weight the Four Metrics Differently

    A single uniform standard is a major reason assessments fail. It is better to split manufacturing scenarios into three layers and set metric weights and acceptance thresholds for each.

    • Interactive layer: equipment Q&A, work guidance, initial anomaly triage. Weight concentrates on time-to-first-token P90 and single-stream speed, with throughput as a secondary item. Acceptance is based on the usability rate of answers from manual spot checks and average wait time.
    • Near-real-time layer: quality inspection re-review, joint image and text judgment. Weight balances per-card throughput and time-to-first-token P50, and it must ensure no queue buildup under peak concurrency.
    • Offline layer: 8D reports, batch quality analysis, knowledge base rebuilding. Weight falls almost entirely on per-card throughput and revenue per card-hour; it can run on off-peak nighttime compute and is insensitive to latency.

    Once layered, capacity planning has a basis: reserve for the interactive layer by peak concurrency, fill the trough for the offline layer by average daily task volume, with both layers sharing the same resource pool but using different scheduling priorities.

    5. Cache Hit Rate Is an Undervalued Lever

    In long-context, multi-turn Q&A, and fixed-template scenarios, prefix caching is highly valuable. Content such as system prompts, process specifications, and quality inspection standards repeats heavily across requests, and a stable hit rate can sharply cut prefill overhead. Engineering can improve the hit rate in three ways:

    • Stable prefix: put invariant content first and keep it byte-for-byte fixed, avoiding variables like timestamps and random IDs that pollute the prefix;
    • Segmented reuse: split long documents into semantically stable blocks and build reusable prefixes per block;
    • Request routing: schedule requests with the same template to the same instance to reduce cache invalidation.

    An illustrative way to organize requests is shown below (pseudocode, expressing structure only, with no specific interface involved):

    1. system_prompt = fixed process spec + quality inspection standard (version pinned, content byte-for-byte unchanged)
    2. context_block = equipment manual segments (split by chapter, unchanged within a block)
    3. user_turn = current re-review record + question
    4. request = concat(system_prompt, context_block, user_turn)
    5. # Goal: keep system_prompt and context_block byte-for-byte identical across requests

    Note that the cache hit rate must be measured against the business context. If the measurement window includes many one-off long documents, the hit rate is diluted and the capacity conclusion becomes overly optimistic.

    6. From Validation to Production in Four Steps

    1. Establish a baseline: collect the four metrics under the target precision and the real input/output distribution to form a reproducible baseline report with test conditions clearly stated.
    2. Shadow run: run the new platform in parallel with the existing process, recording only and not deciding, comparing answer consistency and manual review workload.
    3. Small-traffic canary: split traffic by production line or shift, watch P90 latency, queue length, and error rate, and set automatic rollback thresholds.
    4. Full off-peak fill: migrate offline tasks to trough periods, use throughput metrics for scaling decisions, and use revenue per card-hour for budget review.

    Supporting engineering capabilities should be organized with generic categories—for example, a container platform for elastic scaling, object storage for models and corpora, a message queue for peak shaving, and logging plus monitoring and alerting for observability. The benefit of describing it this way is that the solution is not tied to any specific implementation, keeping replacement costs low.

    7. Common Pitfalls

    • Looking only at peak benchmark scores: ignoring P90 and long-run stability, so the experience collapses after launch;
    • Ignoring the input distribution: using short-input data to estimate capacity for long-document scenarios, leading to severe under-provisioning;
    • Treating revenue per card-hour as a constant: this metric varies with scenario parameters and must be calculated per scenario;
    • Overlooking operations cost: card amplification also amplifies power, cooling, and fault domains, and operational complexity rises non-linearly;
    • Migrating everything at once: without canary and rollback mechanisms, problems are hard to isolate.

    8. Conclusion

    On the inference side, domestic compute has already crossed the availability threshold, and the evaluation focus should shift to unit economics and scenario fit. In practice, stick to three things: fix the test conditions before comparing data, set metric weights by scenario layer, and use caching and scheduling optimizations to turn the throughput gap into controllable resource investment. With these three points in place, manufacturing companies can deliver cost conclusions that are auditable, reproducible, and sustainable in real production environments.