GPU Inference Optimization on New Architecture Cards: A Practical Guide to Compatibility and Tuning
This article walks through a practical troubleshooting and optimization workflow for running large language model inference on next-generation Blackwell architecture compute cards (internally designated SM120). It explains why new GPUs often appear "unsupported," covering operator kernel coverage, toolchain and binary compatibility, memory capacity versus parallelism strategy, PCIe-only interconnect without NVLink, and cooling and power configuration. It then shows how to establish an environment baseline, define fixed workloads for comparable benchmarks, and apply a single-variable iteration loop that improved Prefill throughput by about 33% and Decode throughput by about 31% on a four-card TP4 setup while meeting TTFT and TPOT targets. Readers will also find guidance on accuracy gating, AI agent workloads, cross-hardware comparison, and a deployment checklist.
1. Where the Problem Started: The Service Runs, but the Numbers Don’t Match
During a large language model inference deployment on a next-generation Blackwell architecture compute card (internally designated SM120, represented here by a server-class professional card with 96GB of memory, roughly 1.6TB/s bandwidth, PCIe 5.0 x16 interconnect, and no NVLink), the first problem was not that the service failed to start. It was that the service ran but did not match the reference data. The service started normally and returned results, yet once input and output lengths, concurrency, and parallelism settings were aligned to comparable conditions, throughput and latency showed a systematic gap against the reference baseline.
This kind of “runs but misses the target” behavior is rarely a single point of failure. It is usually several layers of factors stacking up. This article abstracts the troubleshooting process into one main line: first confirm the hardware identity and runtime environment, then verify operators and the compilation chain layer by layer, and only then discuss parallelism strategy and workload migration. In the original practice, under a four-card tensor parallelism (TP4) configuration, an iterative inference system tuning framework was used to validate changes repeatedly. In an independent re-verification, Prefill input throughput improved by about 33% and Decode output throughput by about 31%, while meeting the thresholds of average time to first token (TTFT) under 2 seconds and average time per output token (TPOT) under 30 milliseconds. Note that these numbers come from specific hardware, a specific model recipe, and fixed input and output conditions, and do not constitute any general promise.
2. Why New Architecture GPUs Are Often “Unsupported”
In engineering terms, the statement “a given inference stack does not support a certain new GPU generation” almost never means “it cannot be used at all.” It means at least one link in the chain has no implementation generated or validated for that architecture. The common root causes fall into five categories.
2.1 Operator Library and Kernel Coverage Lag
High-performance inference relies on a large number of hand-written or automatically generated GPU kernels: attention, normalization, linear layers, quantization and dequantization, sampling, and more. A new architecture changes compute tiers, register and shared memory layout, and asynchronous copy and pipelining capabilities. Existing kernels may compile but still fail to capture the new hardware’s benefits, and in extreme cases may be unusable due to instruction or memory model mismatches. The community’s usual response is to wait for operator libraries to catch up, or to use a generic backend first (such as a tensor-core-based general matrix multiply, or compiler-generated kernels) and replace it gradually.
2.2 Toolchain and Binary Compatibility
A new architecture requires a sufficiently new compilation toolchain and runtime to recognize its compute capability identifier. If the driver, runtime, math libraries, or communication libraries are too old, you get “the device is detected but kernel loading fails” or a fallback to a very slow generic path. The practical order is: unify the driver and runtime baseline first, then pin the operator library version, and finally lock the framework version, so the three do not constrain each other.
2.3 Memory Capacity and Parallelism Strategy Mismatch
A large 96GB per-card memory changes the cost-benefit of parallelism decisions. Models that previously required multi-card sharding to fit may now fit with a smaller parallelism degree, reducing communication overhead. Conversely, reusing a sharding scheme tuned for 80GB-class hardware can lead to shards that are too fine and a communication share that is too high.
2.4 Interconnect Topology: What No NVLink Means
This class of server-class professional card typically has no high-speed inter-card interconnect. Inter-card communication relies entirely on PCIe 5.0 x16 and passes through the CPU and memory domains. This makes every tensor parallelism synchronization more expensive, and makes NUMA affinity a first-class concern: which CPU’s PCIe root complex a card hangs under, and which NUMA node memory is allocated on, directly determine whether a cross-card reduction takes a short path or a long detour.
2.5 Cooling and Power Configuration Differences
Similar model names do not mean similar cooling. Server-class cards are mostly passively cooled and rely entirely on chassis airflow and system fans. Reusing the placement and thermal assumptions of a desktop actively cooled card can, at best, cause throttling and, at worst, trigger protection. When performance does not match the reference, the first thing to check is the frequency and temperature curves, not the code.
3. Environment Baseline: Establish What the Machine Actually Is
Before optimizing, fix the facts and create a reusable baseline record:
- Hardware identity: specific version (server / workstation / low-power), memory capacity and type, theoretical bandwidth, interconnect capability.
- Topology: which CPU and which root complex each card hangs under, whether cards share a NUMA node, and cross-node bandwidth.
- Software versions: driver, runtime, math libraries, communication libraries, inference framework, and operator library versions, all pinned and recorded.
- Cooling and power: passive or active cooling, intake temperature, chassis fan policy, steady-state frequency and temperature.
An illustrative check script (it only expresses the check items and does not depend on specific tool names):
# 1) Device and memorynvidia-smi --query-gpu=name,memory.total,clocks.sm,temperature.gpu --format=csv# 2) Topology and NUMA affinitynvidia-smi topo -mnumactl --hardware# 3) Software version consistencynvidia-smi | head -n 4 # driver and runtimepython -c "import torch;print(torch.__version__, torch.version.cuda)"
4. Workload Definition: Optimization Must Rest on Comparable Conditions
A fixed workload is the anchor for aligned experiments. Two formal workloads were used in practice:
- Prefill type: 8192 input / 1 output, measuring input-side throughput and time to first token;
- Decode type: 8192 input / 1024 output, measuring per-token interval and steady throughput during long-sequence generation.
Also make the version terminology explicit: the “baseline recipe,” “release recipe,” and “release recipe v2” that appear here all refer to the inference system configuration combinations used in this experiment, and are unrelated to the model’s own official version numbers. This is easy to confuse when reproducing across teams, and must be stated clearly on the first page of the report.
5. Optimization Path: From “Runs” to “Meets Target”
Step 1: Fix the Environment Before Touching Algorithms
Unifying version baselines, correcting NUMA affinity, and binding the inference process to the CPU and memory on the same node as the GPU usually recovers some “thrown away” performance. The gains at this stage are not exciting, but they determine the signal-to-noise ratio of later optimization.
Step 2: Operator-Level Replacement and Fallback
For a new architecture, first get the generic backend working as a fallback, then replace hot operators one by one with new-architecture implementations, using numerical consistency tests to guard accuracy. It is recommended to build an “operator-accuracy-performance” three-column table, where any replacement reports both the error bound and the throughput change.
Step 3: Reassess the Parallelism Strategy
With 96GB memory and PCIe interconnect, the communication share of four-card tensor parallelism is higher. Directions worth evaluating include: reducing the tensor parallelism degree, converting some layers to pipeline parallelism, fusing operators in hot layers to reduce synchronization, and adjusting the KV cache layout to a form more favorable to coalesced access.
Step 4: Make Iteration a Framework
Turn the above steps into a repeatable iteration loop: baseline collection -> single-variable change -> fixed-workload re-test -> independent environment re-verification. The original practice used exactly such an iterative framework to achieve +33.17% Prefill throughput and +30.81% Decode throughput on four-card TP4, crossing both the TTFT and TPOT thresholds.
# Pseudocode: single-variable iteration loopfor change in candidate_changes:cfg = load_baseline()cfg.apply(change) # change only one variable at a timem = run_fixed_workload(cfg) # 8192/1 and 8192/1024log(m, cfg) # throughput, TTFT, TPOT, accuracy errorif m.tpot > 0.030 or m.ttft > 2.0:continue # roll back if thresholds are not metpromote(cfg)
6. Accuracy, Agent Workloads, and Cross-Hardware Comparison
Whether the gains under fixed input and output transfer to real AI agent workloads was a key focus of this observation. Agent workloads are characterized by multiple turns, tool calls, frequent context rewriting, and a long-tailed distribution of input lengths. They rely more on TTFT and long-context stability than on single long-output throughput. Therefore, the following is recommended:
- Accuracy gating: after any optimization, run task-level evaluation, not just perplexity;
- Profile alignment: replay with the length distribution of real requests instead of a single fixed length;
- Cross-hardware comparison: migrate the same recipe to 80GB-class hardware or hardware with a different interconnect topology, and observe whether the gains reproduce, to determine whether the optimization is an “architecture dividend” or a “general improvement.”
7. Troubleshooting Checklist (Ready to Use)
- Is frequency throttled due to insufficient cooling? Are temperature and fan curves steady?
- Are driver / runtime / operator library / framework versions locked as a set?
- Are cards on the same NUMA node? Are processes and memory allocated nearby?
- Does the parallelism degree match memory capacity, and is the communication share too high?
- Are operators taking the generic fallback path? Is the accuracy error within threshold?
- Was the re-test done with a real length distribution, rather than only a single fixed workload?
8. Conclusion
The essence of a new architecture GPU being “unsupported” is that four chains, operators, toolchain, topology, and cooling, are not yet aligned. Establishing the environment facts, fixing the workload conditions, and making optimization a single-variable, re-verifiable loop is the reliable path to getting new-generation hardware to meet targets steadily. For large-scale deployment in such heterogeneous environments, general cloud capabilities such as container platforms, image registries, log services, and monitoring and alerting can be combined to make version baselines and environment reproduction part of the infrastructure. For example, the general container and monitoring capabilities offered by Baidu AI Cloud can be used to carry such baselines and re-verification workflows.
