From Training to Inference: The Token-Based Restructuring of AI Compute Infrastructure

    Recent public technical discussions have sharply revised upward the three-year demand forecast for AI compute, from the hundreds-of-billions range to the trillions, with some arguing that actual compute demand could be even higher. Whatever the exact figure, the technical logic behind this shift deserves close attention from developers and enterprises: AI computing is moving from a training-peak-centric model toward one centered on sustained token production in inference scenarios. Training still matters, but the large-scale deployment of inference applications is becoming the main channel of compute consumption. This article explains why the demand structure is changing, how to define metrics for a "token factory," which architectural capabilities inference infrastructure needs, and how to govern cost. Infrastructure teams will learn to reframe the problem from "can we train a large model" to "can we continuously, reliably, and cheaply produce tokens under fixed power, fixed cost, and clear SLA constraints."

    From Training to Inference: The Token-Based Restructuring of AI Compute Infrastructure

    Recent public technical discussions have sharply revised upward the three-year demand forecast for AI compute, from the hundreds-of-billions range to the trillions, with some arguing that actual compute demand could be even higher. Whatever the exact figure, the technical logic behind this shift deserves close attention from developers and enterprises: AI computing is moving from a training-peak-centric model toward one centered on sustained token production in inference scenarios. Training still matters, but the large-scale deployment of inference applications is becoming the main channel of compute consumption.

    For infrastructure teams, the question is no longer “can we train a large model,” but “can we continuously, reliably, and cheaply produce tokens under fixed power, fixed cost, and clear SLA constraints.” This requires rethinking architecture design, capacity planning, scheduling strategy, and cost governance in parallel.

    1. Training vs. Inference Workloads: Why the Demand Structure Is Shifting

    Training workloads are typically long-running, throughput-first, and relatively tolerant of faults. A cluster can sustain high utilization over an extended period and complete tasks through large-scale parallelism. Inference workloads are entirely different: they serve online requests and emphasize low latency, high concurrency, multi-tenant isolation, and cost control. Requests have peaks and troughs, tail latency directly affects user experience, a model call chain may involve multiple inference passes, and long contexts and multimodal inputs further amplify the compute required per request.

    A simplified formula helps explain how inference demand scales:

    Demand ≈ request volume × tokens per request × compute per token × call-chain length

    As AI applications evolve from single-turn question answering toward multi-turn dialogue, retrieval augmentation, tool calling, and agent collaboration, request volume, context length, and call-chain length all grow at the same time. Even if per-token compute efficiency improves, overall inference compute demand can still rise quickly. The inference compute demand and AI usage growth mentioned in public discussions essentially reflect this multiplier effect.

    As a result, the core tension in infrastructure shifts from “training task queuing” to “inference services staying online continuously.” A data center is no longer just a training cluster; it increasingly resembles a “token factory”: it takes in power, models, and requests, and outputs tokens that meet SLAs.

    2. Core Metrics for the Token Factory: From Compute Scale to Output per Unit

    Under a fixed power constraint, what enterprises really need to track is not the raw number of accelerators, but the effective token output per unit of power and the total cost per token. A three-tier metric system is recommended:

    1. Energy-efficiency metrics: tokens/s/W, tokens/J, cluster power utilization.
    2. Cost metrics: cost per million tokens, cost per request, share of idle-resource cost.
    3. Service-quality metrics: P99 latency, error rate, timeout rate, queue wait time, cache hit rate.

    Note that “effective tokens” must be filtered by SLA. Only tokens that meet latency and correctness requirements should count as effective output. Otherwise, high throughput may simply come at the expense of user experience.

    Pseudocode example:

    1. function evaluate_token_factory(metrics):
    2. energy_joules = metrics.energy_kwh * 3.6e6
    3. tokens_per_joule = metrics.effective_tokens / energy_joules
    4. cost_per_million_tokens = metrics.total_cost / (metrics.effective_tokens / 1e6)
    5. utilization = metrics.busy_seconds / metrics.window_seconds
    6. return tokens_per_joule, cost_per_million_tokens, utilization

    Capacity planning should also be derived backward from the power constraint: first define the SLA, then use load testing to obtain throughput and latency curves under different batch sizes, quantization settings, and context lengths, calculate token output per unit of power, and finally estimate the request volume the system can handle by applying a redundancy factor. Do not size capacity using theoretical peaks alone; calibrate with real business distributions and tail requests.

    3. Infrastructure Architecture Essentials: Making Token Production Schedulable, Observable, and Optimizable

    Inference-oriented infrastructure usually needs to combine the following capabilities:

    • Inference gateway and model routing: route requests by tenant, SLA, model version, and cost policy, with support for canary releases and graceful degradation.
    • Dynamic and continuous batching: improve throughput while balancing queueing latency against P99 targets.
    • Prefix caching and context reuse: cache repeated system prompts and long-document contexts to reduce redundant computation.
    • Model optimization: quantization, distillation, compilation optimization, sparsification, and similar techniques lower per-token compute consumption, but accuracy loss must be validated.
    • Heterogeneous resource pools and elastic scaling: scale up and down with load peaks and troughs, load hot and cold models in tiers, and avoid long-term idle capacity.
    • Storage and observability: model files, logs, metrics, and trace data need unified management; monitoring and alerting should cover tokens/s, tokens/s/W, P99, error rate, queue length, cache hit rate, and resource utilization.

    When deploying on the cloud, you can assemble general-purpose building blocks: a container platform to host inference services, object storage to manage models and data, logging and monitoring/alerting services to build observability, and a message queue to smooth out peaks and troughs. Platforms such as Baidu AI Cloud offer corresponding general-purpose capability categories, but selection should still come back to hard metrics like SLA, token output per unit of power, and cost per token.

    4. Cost Governance: From Buying Compute to Operating Tokens

    Inference cost governance needs to be engineered, not reduced to simply cutting resources. The following areas are recommended:

    1. Tiered SLAs: different businesses have different latency sensitivities; avoid running all requests on the same high-cost configuration.
    2. Model tiering and routing: send simple requests to small models or lightweight configurations, and escalate complex requests to large models.
    3. Request admission and rate limiting: protect critical tenants and core paths, and prevent traffic spikes from dragging down overall P99.
    4. Batching windows and caching strategy: merge requests within acceptable latency to raise throughput and lower cost per token.
    5. Continuous load testing and regression: after every change to the model, quantization strategy, or scheduling parameters, re-evaluate the throughput, latency, and cost curves.

    5. Conclusion

    The upward revision of demand forecasts essentially reflects that, as AI applications enter an inference-driven phase, token production has changed from an occasional task into a routine infrastructure consumption. Enterprises should adopt a “token factory” perspective: with SLAs as the premise and token output per unit of power and cost per token as the core metrics, restructure scheduling, caching, model optimization, elastic scaling, and observability. The competitiveness of future AI infrastructure will depend not only on compute scale, but on the ability to continuously produce high-quality, low-cost tokens under fixed power constraints.