GPU Inference Adaptation and Performance Tuning on New-Architecture Cards

    This article walks through a practical workflow for adapting LLM inference to a new-generation Blackwell-architecture GPU with 96GB of memory, roughly 1.6TB/s bandwidth, PCIe 5.0 x16 only, and passive cooling. It explains why such cards are often reported as "unsupported," how to verify the environment before benchmarking, how to handle communication constraints without a high-speed interconnect, and how a four-card tensor-parallel setup was tuned in three stages: locate, replace, verify. The reported gains were about 33% higher prefill input throughput and 31% higher decode output throughput under fixed input and output lengths, with first-token latency under 2 seconds and under 30 ms between generated tokens. The article also covers precision validation, agent-style workloads, and cross-hardware comparison.

    1. Where the Problem Started: It Runs, but the Numbers Don’t Match

    During an inference deployment on a next-generation Blackwell-architecture compute card with large memory (96GB per card, roughly 1.6TB/s memory bandwidth, no high-speed bridge between cards so all inter-card traffic goes over PCIe 5.0 x16, and a passively cooled server variant), the first problem was not that the service failed to start. It was that the service started but did not match the reference numbers. This kind of issue is easily misdiagnosed as a model or framework defect, when it is usually the combined result of a mismatch among the hardware form factor, the software stack, and the operator implementations.

    One point deserves emphasis: a similar model number does not mean identical conditions. A single product generation often ships in several forms — server, workstation, low-power — that can differ substantially in cooling method (passive vs. active), power limits, memory capacity and bandwidth, and inter-card interconnect capability. Applying experience from a desktop card with active cooling to a passively cooled card that depends on chassis airflow is one of the most common sources of error.

    Work through the checks in this order, so you don’t get lost in operator details from the start:

    1. Confirm the card’s form factor and specifications; record memory capacity, bandwidth, interconnect method, and cooling dependency.
    2. Confirm the topology: card-to-CPU affinity, NUMA layout, and whether PCIe lanes are correctly allocated.
    3. Confirm the software stack: whether the driver, runtime, operator library, and framework versions are mutually compatible.
    4. Only then move on to operator-level analysis and graph-level optimization.

    2. Why New-Architecture GPUs Are Often Reported as “Unsupported”

    In most cases, “unsupported” does not mean the workload cannot run at all. It means there is no operator implementation for the new compute capabilities (new precision formats, new memory hierarchy, new asynchronous copy and transaction mechanisms), so execution falls back to a generic path. The common causes fall into four groups:

    • Operator coverage lag: the low-precision matrix capabilities and asynchronous pipeline primitives added in the new architecture require the operator library to be reimplemented before they can be used. When they are missing, the framework takes a compatibility branch, and neither bandwidth nor compute is fully used.
    • Compile target mismatch: if the binary does not include a code generation target for the new architecture, it can only run at a lower compatibility level, losing all register and scheduling advantages.
    • Invalidated memory and capacity assumptions: large per-card memory changes the optimal parallel partitioning strategy. Keeping the old partitioning and cache configuration introduces unnecessary communication and redundant computation.
    • Precision path differences: if low-precision accumulation, scaling factors, and the timing of dequantization differ from the reference implementation, both numerical results and throughput are affected.

    The diagnostic method is straightforward: first run small-scale operator benchmarks that measure the achieved bandwidth utilization of matrix multiplication, normalization, attention, and quantization/dequantization separately, then compare against theoretical peak. If the generic operators fall clearly short of expectations while the specialized paths are absent, the problem is coverage, not hardware.

    3. Environment Verification Checklist: Fix the Variables

    Failed performance comparisons usually come down to variables that were never pinned down. Fix the following before the experiment begins:

    1. # Illustrative only: the categories of variables that need to be fixed
    2. - Card form factor and cooling dependency: passive cooling requires confirming chassis airflow and fan policy
    3. - Frequency and power policy: whether it is locked, and whether thermal throttling occurs
    4. - Interconnect topology: inter-card communication path, NUMA affinity, CPU node bound to each card
    5. - Software stack versions: driver, runtime, operator library, inference framework
    6. - Workload definition: input length, output length, concurrency, sampling parameters

    Thermal throttling is the easiest to overlook. A passively cooled card under sustained heavy load will start dropping frequency first if airflow is insufficient, which shows up as “fine for the first few minutes, throughput drops under sustained load testing.” So every test round should record temperature and frequency curves, not just throughput numbers.

    4. Communication and Topology: The Key Constraint Without a High-Speed Interconnect

    When there is no high-speed interconnect between cards and everything goes over PCIe, the communication cost of tensor parallelism becomes the main bottleneck. The optimization focus shifts from “reduce compute time” to “reduce communication volume and the number of communication events”:

    • Keep each card affine with its NUMA node and the topologically closer CPUs, avoiding cross-node access.
    • Prefer parallel partitioning schemes with lower communication volume, and move high-frequency synchronization points earlier or merge them.
    • Separate one-time costs such as weight loading and cache warm-up from the steady-state inference phase when measuring, so they don’t pollute the throughput metric.
    • For fixed-length workloads, use graph capture and execution plan reuse to reduce scheduling overhead.

    5. An Iterative Tuning Path for Four-Card Tensor Parallelism

    With a four-card tensor-parallel configuration, tuning can proceed in three stages: locate, replace, verify.

    1. Locate: use layered timing to split prefill from decode, and separately measure the share of compute, communication, memory copies, and scheduling waits.
    2. Replace: swap the highest-share generic operators for specialized implementations targeting the new architecture, and adjust the timing of quantization and dequantization.
    3. Verify: re-validate independently after each round of changes to confirm the gain is not measurement noise.

    After one full iteration, independent re-validation showed roughly 33% higher input throughput in the prefill phase and roughly 31% higher output throughput in the decode phase, while meeting the thresholds of average first-token latency no greater than 2 seconds and average inter-token generation interval no greater than 30 milliseconds. The significance of these numbers is not the absolute values but the fact that they demonstrate the gains stack when three things are done at once: operator coverage, topology affinity, and a fixed workload.

    Note in particular that these gains were measured under fixed input and output lengths. They are controlled-experiment results and should not be taken as equivalent to real business performance.

    6. Precision, Agent Workloads, and Cross-Hardware Comparison

    Whether the gains from a fixed-length workload carry over to real agent workloads is a question that has to be answered. Agent scenarios are characterized by large variance in input length, many short requests from tool calls, and repeated context rebuilding. Therefore:

    • Precision validation: compare output consistency on general evaluation sets before and after optimization to confirm the low-precision path has not introduced unacceptable deviation.
    • Agent workloads: replay the real request length distribution and look at percentiles of first-token latency rather than the average; the long tail is often what determines the experience.
    • Cross-hardware comparison: move the same configuration to hardware with different memory capacity and interconnect capability to check whether the optimizations are portable, and avoid conclusions that hold for only one form factor.

    7. Conclusion

    Adapting inference to a new-architecture, large-memory compute card is fundamentally an engineering loop of spec confirmation, topology alignment, operator coverage, and workload fixing. Most phenomena described as “unsupported” can ultimately be traced to insufficient operator coverage or a missing compile target, while mismatched performance numbers more often come from thermal throttling and unoptimized NUMA and PCIe paths. Fixing the variables, layering the bottlenecks, and keeping validation independent are tuning principles that hold on any hardware form factor. In practice at Baidu AI Cloud, this same approach of quantifying the bottleneck first and then making targeted replacements also applies to the continuous optimization of inference services under container platforms and monitoring and alerting systems.