Boosting Effective Token Throughput on Domestic AI Compute: A Practical Guide

    This article explains how to improve effective token production capacity on existing domestic AI accelerators instead of relying on new hardware purchases. It covers the shift from buying chips to buying capacity, two structural challenges in model and infrastructure cycles, how to define and measure effective token capacity, a five-layer end-to-end optimization approach, and a phased rollout plan with common pitfalls to avoid.

    1. External Pressure: From Buying Cards to Buying Capacity

    Recent tightening of overseas controls on remote compute access has expanded from physical chip exports to remote data center access, aiming to block paths that obtain advanced AI compute through overseas facilities. This creates a two-way impact on the domestic supply side: on the demand side, real workloads are forced back to domestic compute; on the supply side, tighter review of advanced manufacturing and packaging keeps hardware supply constrained.

    The conclusion is straightforward: buying more new cards will not solve the capacity problem in the short term. The engineering focus therefore shifts to optimizing existing resources—extracting higher, more stable, and more cost-efficient effective token output from the heterogeneous clusters built on domestic accelerators and earlier hardware purchases.

    2. Two Structural Challenges

    2.1 The Cycle Gap Between Model Iteration and Hardware Infrastructure

    Mainstream large model architectures evolve on a monthly or even weekly basis, while compute infrastructure typically refreshes every two to three years. Without a proper software stack, expensive hardware may fail to run new models shortly after deployment, leading to asset depreciation. The solution is to push adaptation capabilities down into a unified system software layer, so model and operator changes do not touch the hardware.

    2.2 Electricity Cost Logic and Ecosystem Fragmentation

    In the industrial era, manufacturing competitiveness largely came from low electricity prices, which were backed by a domestic energy structure dominated by coal. The same logic applies to the intelligent era: the industry expects affordable per-million-token pricing, and that depends on whether the underlying compute can be rooted in the domestic supply chain.

    The conflict is that hardware is purchased per card and per scale, while the application side demands tokens delivered per second and per concurrency. A “translator” is needed in between to organize idle, heterogeneous, and hard-to-use compute into standardized capacity. At the same time, no single chip can cover all scenarios. What is truly scarce is not chips, but a shared software-hardware ecosystem across multiple hardware types—the industry should not have to rewrite low-level operators every time a new model or chip arrives.

    3. Defining and Measuring Effective Token Capacity

    It is better to break capacity into observable metrics rather than a vague sense of “how many cards we have”:

    • Effective throughput: real output tokens per second after deducting queuing, retries, and preemption from extra-long contexts;
    • Stability: P99 latency, timeout rate, and request failure rate;
    • Economics: combined cost per million tokens (including electricity, depreciation, and human adaptation costs);
    • Adaptation cost: person-days and operator changes required to bring a new model online.

    Illustrative metric calculation:

    1. Effective token capacity = (Successfully output tokens / Window duration in seconds) × Success rate
    2. Unit cost = (Electricity + Hardware depreciation + Ops labor) / Effective output tokens

    4. Five Layers of End-to-End Optimization

    1. Hardware abstraction layer: use a unified system software stack to hide differences between accelerators, avoiding binding business code to a single hardware type.
    2. Compilation and operator layer: replace per-card hand-written operators with graph compilation, automatic operator generation, and tuned kernel libraries to shorten the adaptation cycle for new models.
    3. Serving engine layer: general techniques such as continuous batching, paged cache, prefix reuse, and speculative decoding significantly improve concurrency and memory utilization.
    4. Scheduling layer: separate queues by context length and priority, pool long and short requests separately to prevent long requests from blocking others; set up degraded routing for existing cards.
    5. Observability and cost layer: integrate general logging services, monitoring and alerting, and container platforms; produce bills by tenant, model, and card type to close the cost loop.

    5. Rollout Roadmap and Pitfall Avoidance

    Phase one: establish baselines and run stress tests to determine the effective throughput ceiling of each card type. Phase two: deploy the unified software stack and inference engine, starting with offline batch workloads to validate stability. Phase three: route by business SLA tiers, placing high-priority requests on new cards and elastic requests on existing cards. Phase four: set up weekly cost reviews, using unit token cost to drive procurement and scheduling decisions.

    Common pitfalls include: looking only at peak throughput while ignoring P99; mixing long-context and short requests; lacking per-card-type billing that creates a cost black box; and placing all adaptation work on business teams rather than the platform layer. The way to avoid them is to consolidate adaptation and measurement into platform capabilities, making model onboarding a configuration action rather than a rewriting project.