Why LLM Inference Underperforms on New GPU Architectures

    This article explains why large language model inference services often start successfully yet miss throughput and latency baselines on new data center accelerators. It walks through six common root causes—lagging operator library and toolchain coverage, misaligned quantization and low-precision paths, conservative memory and batching configuration, multi-GPU communication and topology issues, silent throttling from thermal and power limits, and inconsistent benchmarking methodology—and closes with a recommended troubleshooting order.

    1. Background: The Service Runs, but Performance Does Not Match

    When deploying large-parameter inference services on new data center accelerators, the most common first symptom is not a complete failure to start. It is that the service starts and returns results, but throughput and latency show a clear gap against the reference baseline. This kind of problem is deceptive because it mixes three factors at once: incomplete software stack support, misaligned hardware topology, and inconsistent benchmarking methodology. The sections below follow a troubleshooting order.

    2. Root Cause 1: Operator Libraries and Compilation Toolchains Lag Behind

    Compute capability on a new generation of accelerators is identified by a major version number. A change in the major version often means new instructions, a new form of matrix multiply-accumulate unit, and a new memory hierarchy. Deep learning frameworks and operator libraries usually need to recompile kernels for the new major version. Otherwise, two typical situations occur:

    • Kernels are missing, so the framework falls back to generic or element-wise composite implementations. Functionality is correct, but efficiency drops sharply.
    • Some fused operators (attention, normalization, activation fusion) cannot take the fused path, multiplying memory reads and writes.

    The first step is to confirm whether the entire stack is natively supported rather than merely running in a compatibility mode:

    1. import torch
    2. print(torch.__version__)
    3. print(torch.version.cuda)
    4. print(torch.cuda.get_device_capability(0)) # major.minor version
    5. print(torch.cuda.get_device_name(0))

    If the major version is higher than the precompiled coverage of the operator libraries, upgrade the framework and operator libraries to versions that explicitly declare support for that major version, instead of forcing it through with environment variables.

    3. Root Cause 2: Quantization and Low-Precision Paths Are Not Aligned

    LLM inference generally relies on low precision and weight quantization to gain memory and bandwidth benefits. A common problem on new architectures is that some low-precision matrix multiplication kernels are not yet covered, so quantized weights are dequantized back to a higher precision for computation. Memory usage drops, but the compute benefit disappears. To detect this, check whether actual memory usage matches the theoretical weight size, and whether unexpected dequantization operators appear during the compute phase.

    4. Root Cause 3: Memory Capacity, Bandwidth, and Batching Strategy

    After per-card memory capacity increases, a common issue is that the configuration still follows the small-memory assumptions of older cards: batch size, context length, and the number of cache blocks all stay conservative, keeping compute utilization low over time. A capacity plan with memory as the constraint is recommended:

    1. available memory ≈ weight size + total cache blocks × bytes per block + activations and temporary buffers + safety margin
    2. total cache blocks = floor((available memory - weights - buffers - margin) / bytes per block)

    When capacity allows, increasing the concurrent batch and the number of cache blocks usually improves throughput more directly than tuning operators.

    5. Root Cause 4: Multi-GPU Communication Paths and Topology Layout

    In multi-GPU deployments, inter-card interconnect bandwidth, host-side memory distribution, and device affinity together determine scaling efficiency. Common problems include: unreasonable process-to-device binding that causes cross-node access, memory allocations landing on remote nodes, and communication taking inefficient paths. The general approach is:

    1. Measure actual inter-card and cross-node bandwidth first, and confirm it reaches the hardware’s rated level.
    2. Explicitly bind processes to the corresponding devices and local memory nodes.
    3. Prefer placing tensor parallelism within the high-bandwidth domain and pipeline parallelism across domains.
    4. Fix thread and affinity settings to avoid frequent context migration.

    6. Root Cause 5: Silent Throttling from Thermal and Power Walls

    High-power accelerators under sustained full load will throttle if airflow or cooling design is insufficient. The symptom is “normal for the first few minutes, then throughput keeps declining.” This kind of problem is easily misjudged as a software issue during stress testing. It is recommended to collect card temperature, power, and frequency curves, and run a sustained stress test of at least thirty minutes to observe the trend.

    7. Root Cause 6: Inconsistent Benchmarking Methodology

    When comparing against reference results, you must align the input and output length distribution, batch size, concurrency, warmup strategy, sampling parameters, and the percentile definitions used for statistics. When the methodology is inconsistent, performance differences often reach several times over, far exceeding the real difference in the software stack.

    1. Verify the compute capability major version and version declarations across the entire stack.
    2. Run a minimal model on a single card and check memory usage.
    3. Enable the operator-level timing view to locate fallback kernels.
    4. Do a memory capacity plan and adjust batch and cache settings.
    5. Measure communication bandwidth and fix affinity.
    6. Run a long-duration stress test to observe throttling.
    7. Align the methodology before comparing against the baseline.

    9. Conclusion

    Adapting to a new architecture comes down to the product of three things: software stack coverage, topology alignment, and benchmarking rigor. A shortfall in any one of them masks real performance. To shorten the tuning cycle for a self-built cluster, you can also evaluate building a standardized stress-testing and observability pipeline on general cloud capabilities such as the container platform, monitoring and alerting, and log services offered by Baidu AI Cloud, turning the troubleshooting steps above into a repeatable automated process.