LLM Inference Hardware Selection: Throughput Gaps and Real-World Scenarios
This article examines how accelerator generation, model size, and numerical precision shape large language model inference throughput, and why single-card benchmarks fail to guide procurement. Using a reproducible evaluation setup, it compares previous- and current-generation 8-card nodes across small and ultra-large models, breaks down the sources of the nearly 8x gap in low-bit scenarios, and presents a tiered selection workflow based on workload profiling, memory sizing, precision strategy, and cost per million tokens. It also includes a total cost of ownership calculation, an engineering deployment checklist, and common pitfalls to avoid.
1. The Starting Problem: Why Single-Card Benchmarks Cannot Guide Procurement
Once ultra-large models entered commercial online inference, the central challenge of compute selection shifted from “can it run at all” to “how many tokens can it stably produce per unit of cost.” With the same model generation and the same inference framework, swapping only the accelerator can produce several-fold differences in end-to-end throughput. That difference does not scale proportionally across parameter sizes or numerical precisions. Any comparison that ignores the deployment scenario is therefore of limited practical value.
This article uses a reproducible evaluation methodology: an ultra-large dense model as the baseline workload, a commercial online inference mode (continuous batching, a fixed input/output length distribution, speculative decoding and paged attention caching enabled), electricity priced at a common industry level of CNY 0.45 per kWh, a data center power usage effectiveness (PUE) of 1.2, and 8 cards per inference node.
2. Test Methodology and Key Results
Comparing an 8-card previous-generation node against an 8-card current-generation node reveals two conclusions that differ by an order of magnitude:
- Small and mid-size model scenarios: roughly 3,250 tokens/s on the previous generation versus roughly 7,480 tokens/s on the current generation, a ratio of about 2.3x.
- Ultra-large parameter, low-bit quantization scenarios (dense or mixture-of-experts architectures above 400B): about 4,120 tokens/s for the previous-generation INT4 approach versus about 32,800 tokens/s for the current-generation native low-precision floating-point approach, a ratio close to 8x.
These figures are not peak numbers from a hardware specification sheet. They are steady-state output rates measured under real queuing, real context lengths, and real concurrency. Their value lies in revealing the trend: the gains from current-generation accelerators are not linear or universal, but strongly correlated with model size and numerical format.
3. Why the Gap Widens to 8x for Ultra-Large Models
The gap can be broken down into three layers.
The first layer is the generational difference in numerical formats. Previous-generation hardware typically follows a “quantize then dequantize” path for low-bit inference: weights are stored as integers and must be converted back to floating point before computation. The extra conversion and scheduling overhead is repeatedly amplified across ultra-large weight matrices. Current-generation hardware supports native low-precision floating-point computation, so weights participate in matrix multiplication directly in that format, eliminating a conversion pass and reducing memory bandwidth pressure.
The second layer is the coupling of bandwidth and capacity. For ultra-large models, the bottleneck is often not compute but memory bandwidth and capacity: weights must reside fully in memory, and batch size is constrained by the remaining memory. Native low-precision formats fit more weights and longer key-value caches into the same memory, allowing larger concurrent batches, with throughput rising roughly linearly with batch size.
The third layer is communication and parallelism efficiency. Tensor parallelism across 8 cards is standard within a node, and fewer format conversions mean fewer synchronization points and narrower pipeline bubbles. Small and mid-size models have modest compute requirements and a low share of parallel overhead, so they capture only around 2x gains.
4. A Tiered Selection Method: Turning Conclusions into a Process
Decide in the following order rather than looking at the card first and the model second:
- Define the workload profile: input/output length distribution, peak concurrency, and constraints on time to first token and per-token latency.
- Estimate memory requirements: weight bytes + key-value cache + activations and temporary buffers. The key-value cache can be roughly estimated as “layers × 2 × hidden dimension × sequence length × concurrency.”
- Identify the bottleneck type: if single-request latency is sensitive and concurrency is low, prioritize memory capacity and latency; if throughput-oriented with high concurrency, prioritize bandwidth and low-precision support.
- Choose a precision strategy: conventional low-bit quantization for small and mid-size models; native low-precision floating point for ultra-large parameters and mixture-of-experts architectures.
- Procure based on capacity rather than single-card metrics: use “effective tokens/s per rack” and “cost per million tokens” as unified measures.
A sample capacity calculation can be written as:
def nodes_needed(target_tps, per_node_tps, headroom=0.75):# headroom reserves margin for jitter and failure redundancy, avoiding sustained full loadreturn -(-target_tps // int(per_node_tps * headroom))# Small and mid-size models: about 7480 tokens/s per node# Ultra-large parameters, low precision: about 32800 tokens/s per nodeprint(nodes_needed(200_000, 7480))print(nodes_needed(200_000, 32800))
For the same throughput target, the two tiers require a several-fold difference in node count, which directly determines the total tally for racks, power supply, and cooling.
5. Calculating Total Cost of Ownership
Factoring in electricity and data center overhead yields a metric closer to financial reality. Assuming 10 kW per node, electricity at CNY 0.45 per kWh, and a PUE of 1.2, the hourly electricity cost is about 10 × 1.2 × 0.45 = CNY 5.4. Dividing that cost by steady-state throughput gives the electricity cost per million tokens: about CNY 0.72 for the small and mid-size tier and about CNY 0.16 for the ultra-large low-precision tier. The gap exceeds 4x and is not in step with the throughput ratio, because power consumption does not drop proportionally across the two tiers.
This highlights a commonly overlooked fact: electricity cost cannot be assessed from the card alone; it depends on the number of whole machines and the runtime required to complete the same amount of work.
6. Engineering Deployment Checklist
- The inference framework must support continuous batching, paged key-value caching, and prefix reuse; otherwise the hardware advantage cannot be realized.
- Enable cache reuse for long-context workloads to significantly reduce computation for repeated prefixes.
- Establish a load-test baseline: fix the random seed and length distribution, and record steady-state throughput, time to first token, and per-token latency.
- Collect GPU utilization, memory usage, and queue time through logging and monitoring/alerting systems to build a capacity dashboard.
- Store model weights and evaluation data in object storage, and use a container platform for elastic scaling and canary releases.
- Use a message queue to smooth peaks and prevent burst traffic from breaking up the batching strategy.
7. Common Pitfalls
One is treating peak compute as throughput. Another is ignoring how the key-value cache squeezes memory, leaving concurrency unable to scale. A third is blindly chasing the lowest bit width, where accuracy regression drives retries and manual fallback that raise total cost. A fourth is looking only at unit price rather than cost per million tokens. A fifth is lacking redundancy headroom, so sustained full-load operation worsens tail latency.
8. Conclusion
The value of current-generation accelerators is not wholesale replacement but a strong binding to workload structure: small and mid-size model scenarios gain around 2x, while ultra-large parameter and mixture-of-experts architectures can stretch to nearly 8x with native low-precision support. Basing selection on workload profiling, memory sizing, precision strategy, and cost per million tokens is the sustainable way to make compute decisions. For quick validation, you can build a reproducible load-testing environment on Baidu AI Cloud using a general-purpose container platform and object storage, then compare the real output of different hardware tiers horizontally under the same methodology.
