Adapting LLM Inference to Next-Gen GPU Compute Architectures
New flagship GPUs with compute capability 12.0 (sm_120) often fail to deliver expected LLM inference results: frameworks may reject the architecture, or services run but lag far behind reference throughput and TTFT. This article separates software-stack lag from system-level optimization issues and outlines a practical bring-up path from drivers and kernels through PCIe, NUMA, and capacity tuning.
The symptom: the new GPU is installed, but inference is not “as advertised”
In open-source LLM communities and self-hosted inference platforms, a recurring pattern appears when teams deploy the latest flagship GPUs—consumer/workstation or datacenter parts whose unified architecture is sm_120 (compute capability 12.0). Two typical blockers show up with large open models:
- No framework support. Initialization fails with “unsupported compute capability,” kernels are missing because the target architecture was not compiled in, or the runtime falls back to inefficient paths and may crash.
- It runs, but performance is far behind. Tokens are produced, yet throughput and time-to-first-token miss the reference environment, and ordinary parameter tuning does not close the gap.
These are different root causes and should be diagnosed separately.
Root cause 1: software stack vs. hardware architecture
Every CUDA kernel is compiled to SASS for a specific compute capability. Frameworks and operator libraries typically ship binaries only for architectures that existed at release time. The dependency chain is:
- Driver. New cards need a recent driver; older drivers cannot even recognize the PCI ID.
- Runtime and compiler. JIT operators use the local toolchain. An outdated toolchain does not recognize sm_120 and compilation fails.
- Prebuilt operator libraries. If there is no sm_120 kernel, the stack falls back to PTX JIT. First-start latency is high, and sources that use features not yet implemented (or already changed) on the new architecture can fail.
- Framework wheels. Official prebuilt packages usually cover only mainstream architectures at ship time. Support for a new SM often lags a full release cycle—upstream merge, numerical and crash fixes, then a new version.
“Unsupported” is usually an adaptation lag, not a mysterious hardware incompatibility.
Root cause 2: it runs but is slow—the optimization path
Once compile and run succeed, performance issues are more subtle. In datacenter deployments of large MoE models, common factors (check in dependency order) include:
1. Thermal and power walls
Server cards are typically passive and depend on chassis airflow. Poor airflow hits a temperature wall and clocks drop. During load tests, watch core clocks and temperature together; if clocks fall as temperature hits the threshold, fix airflow and fan curves before changing software.
2. PCIe topology and communication
Tensor parallelism generates heavy inter-GPU traffic. Extra PCIe switch hops or missing optimized paths (P2P, fast interconnect) make communication dominate latency. Check:
- Draw the PCIe topology and distances between GPUs.
- Confirm P2P modules are loaded; in views such as
nvidia-smi topo -m, same-link GPUs should show the expected link type. - Align TP and expert-parallel grouping with topology so the hottest communication stays on the nearest GPUs.
3. NUMA and CPU affinity
If the inference process is bound to a CPU node that is not the NUMA domain of the GPU’s PCIe root complex, tensor copies and KV-cache paging cross the interconnect. Suggested checks:
# GPU to NUMA mappingnvidia-smi topo -mcat /sys/bus/pci/devices/<device>/numa_node# Bind the process to the matching nodenumactl --cpunodebind=0 --membind=0 ./serve.sh
4. Operators missing native sm_120 kernels
A frequent cause of underperformance: libraries silently fall back to generic or older kernels. Locate this by:
- Enabling verbose logs to see which kernel version each hot operator actually hits.
- Comparing single-op microbenchmarks, normalized, on new vs. older GPUs.
- For hot operators, building the library from source with
-gencode arch=compute_120,code=sm_120so the new architecture takes the native path.
5. Unused HBM headroom
Large memory is a main selling point. Keeping max batch size and KV-cache length as if on smaller cards wastes capacity. Scale batch and concurrency against remaining memory until utilization is in a sensible band (typically 85%–95%, leaving fragmentation headroom).
Recommended adaptation and production flow
- Baseline environment. Upgrade driver and runtime to vendor-recommended versions so the toolchain targets the architecture.
- Build from source. During the adaptation window, compile framework and operator libraries with an explicit sm_120 target to avoid silent fallbacks in prebuilt packages.
- Single-GPU smoke test. Run a small model, verify numerical correctness (watch precision regressions on the new architecture).
- Path health check. Thermal, PCIe topology, and NUMA binding.
- Operator audit. Confirm hot operators hit native kernels; optimize fallbacks separately.
- Capacity load test. Multi-GPU tests against real traffic; iterate parallel strategy and scheduling.
- Freeze the baseline. Pin driver version, compile flags, and launch args in deployment scripts and version control.
Closing
Lack of support for a new GPU architecture is mostly the gap between software cadence and hardware launch. Rather than waiting solely for official framework releases, teams can own the full path from driver and compilation through operators and system topology. Engineering and scripting that process turns each new card into reliable LLM inference capacity as quickly as possible.
