AI Inference Architecture at Trillion-Parameter Scale: From Single-Chip Benchmarks to Rack-Scale Systems
As models scale to trillions of parameters and agents take on long-running tasks, peak FLOPS no longer predict real serving performance. This article explains why the delivery unit for AI infrastructure has shifted from a single chip to a rack-scale system, why high throughput does not equal low latency, and how prefill and decode stages call for different compute resources. It also covers the memory capacity, memory bandwidth, and interconnect limits that decide what you can actually run, the metrics needed to make token cost measurable (TTFT, TPOT, effective throughput, KV Cache usage, and cost per million tokens), and a reusable capacity planning workflow based on SLA baselines, workload profiling, tiered deployment, prefix caching, and full-stack observability.
1. From Single-Chip Races to System-Level Delivery
For years, the industry measured compute in a narrow way: more transistors, more memory, higher peak floating-point throughput. Once models reached trillion-parameter scale, context windows kept growing, and agents began handling long, multi-step tasks, that single-point view stopped explaining the real cost structure of production workloads.
The reason is straightforward. End-to-end latency for a user request is no longer determined by the peak compute of one chip. It is determined by compute, data movement, inter-chip interconnect, and scheduling queues together. When model weights must be sharded across multiple accelerators, when the KV Cache grows linearly with concurrency, and when a single inference pass spans dozens of nodes using tensor and pipeline parallelism, interconnect bandwidth and memory capacity usually become bottlenecks before peak compute does.
So the core change in the new generation of AI infrastructure is that the delivery unit moves up from a single chip to a rack-scale system. Chips, CPUs, memory, interconnect, power and cooling, firmware, and the runtime are co-designed as one whole. The goal is predictable effective throughput for a specific workload, especially inference, rather than a paper peak.
For developers, this means the smallest unit of capacity planning has changed. Instead of asking how many accelerators you need, you need to ask how many rack-scale units you need, how many tokens per second each unit delivers, and how much concurrency it can serve under a target P99 latency constraint.
2. Heterogeneous Inference: Why High Throughput Is Not Low Latency
Mainstream GPUs are built for massive parallelism: thousands of compute cores performing matrix multiply-accumulate at the same time. That suits the prefill stage, which consumes a long prompt in one pass, and it suits attention and other compute-intensive, parallelizable operators.
The decode stage behaves very differently. Autoregressive generation is strictly serial: token N cannot be produced until token N-1 is finished. Each step does very little compute but must read the full model weights and the growing KV Cache, so the bottleneck shifts from compute to memory bandwidth and memory access path length. When a workload requires hundreds of tokens per second per user, scheduling overhead, memory hierarchy access, and synchronization costs on general-purpose GPU clusters get amplified, and marginal returns fall off quickly.
This is what makes heterogeneous inference reasonable: use components that excel at large-scale parallelism and throughput for prefill and attention, use specialized inference components optimized for serial decoding for token generation, and connect them over high-speed interconnect as one logically unified inference engine. Three engineering points matter:
- The cost of stage decoupling: once prefill and decode are separated, the KV Cache must be transferred across components, and interconnect bandwidth and transfer protocols decide whether the gains materialize.
- The workload split is dynamic: prompts that are long with short outputs lean prefill-heavy, while long outputs and multi-turn conversations lean decode-heavy, so the ratio must be adjustable online.
- Scheduling must be global: once heterogeneous resources are introduced, a single-accelerator scheduler breaks down, and you need unified orchestration aimed at request-level SLAs.
The following pseudocode is illustrative of a routing policy, not any specific API:
# Illustrative only: dispatch by stage characteristicsdef route(request):prompt_len = len(request.prompt_tokens)expect_out = request.max_output_tokens# Long prompt, short output: prioritize throughput on parallel computeif prompt_len > LONG_PROMPT and expect_out < SHORT_OUT:return ("parallel_pool", request)# Long output, interactive: prioritize low latency on decode-optimized resourcesif expect_out >= LONG_OUT or request.streaming:return ("decode_pool", request)return ("default_pool", request)
3. Memory and Interconnect: The Underrated Ceiling
In the trillion-parameter era, three numbers decide what you can run: memory capacity, memory bandwidth, and interconnect bandwidth.
- Capacity decides whether it fits. Weights, KV Cache, activations, and communication buffers share the same memory pool, and KV Cache growth in long-context scenarios often exceeds intuition.
- Bandwidth decides how fast it runs. Every generated token in decode re-reads weights and cache, so adding compute cores yields almost nothing when bandwidth is insufficient.
- Interconnect decides whether it scales. Tensor parallelism is highly sensitive to inter-accelerator bandwidth, pipeline parallelism is sensitive to latency and bubbles, and expert parallelism creates irregular all-to-all traffic.
One engineering fact is often overlooked: bringing high-bandwidth, low-latency memory to the CPU side of the data center is fundamentally about letting the CPU take on stronger data preprocessing, tool-call orchestration, and KV Cache offloading in agent scenarios, reducing back-and-forth data movement across the hierarchy. The value of such designs does not show up in peak FLOPS; it shows up in end-to-end latency and cost per million tokens.
4. Turning Token Burn into Measurable Engineering Metrics
The bottleneck for application adoption has never been whether the model is smart enough; it is whether the cost per token is low enough. To optimize cost, you first need an observability system. At minimum, collect these metrics:
| Metric | Meaning | Common pitfall |
|---|---|---|
| TTFT | Time to first token | Looking only at the average and ignoring the long-prompt tail |
| TPOT | Interval per output token | Conflating it with throughput |
| Effective throughput | tokens/s under SLA constraints | Substituting unconstrained peaks |
| KV Cache hit/occupancy | Prefix reuse and memory pressure | Ignoring accumulation across multi-turn sessions |
| Cost per million tokens | Real billing terms | Counting compute but not idle spinning |
One key conclusion: throughput only means something when bound to a constraint. Talking about throughput without P99 latency just shifts queueing time onto users.
5. Implementation: A Reusable Capacity Planning Workflow
- Define the SLA baseline: set target values and percentiles for TTFT and TPOT, and separate online interactive traffic from offline batch jobs.
- Build a workload profile: measure prompt length distribution, output length distribution, concurrency peaks, and time-of-day variation.
- Deploy in tiers: send interactive short requests to low-latency pools, offline long jobs to throughput pools, and let a container platform handle horizontal scaling for the elastic portion.
- Use caching and prefix reuse: prefix caching for system prompts and long documents can significantly cut repeated prefill cost.
- Make the full stack observable: connect logging, monitoring and alerting, and tracing so that metric anomalies automatically trigger scaling, rate limiting, and graceful degradation.
- Close the cost loop: review weekly with cost per million tokens as the single north-star metric to avoid local optimization.
On the cloud, these capabilities are typically provided by general-purpose categories: a container platform handles elastic scheduling, object storage holds models and datasets, a message queue smooths request spikes, logging and monitoring provide observability, and heterogeneous compute instance families supply compute for different stages. Baidu AI Cloud has a complete portfolio in these general capabilities, and enterprises can combine them according to their own workload profile without being locked into a single architecture.
6. Conclusion
The real theme of this round of compute evolution is not a spec race for any one hardware generation, but the maturation of inference engineering: design the system as a whole, assign each workload to the most suitable compute component, and turn cost into a measurable, optimizable daily metric. Whoever keeps pushing down cost per token holds the real entry point to the agent era.
