NVIDIAAnoushka BhutaniBenchmark
Unlocking Tensor Core Performance for Machine Learning Interatomic Potentials
Summary
Machine learning interatomic potentials (MLIPs) like the Point Edge Transformer (PET) bridge quantum and classical methods but often run in FP32, leaving Tensor Core throughput unused. Tensor Core FP32 methods decompose FP32 operands into lower-precision components, compute cross-products on Tensor Cores, and recombine with FP32 accumulation. On NVIDIA Blackwell GPUs, the BF16x9 path accelerated PET’s large GEMMs by up to 2.5x and the MD step by up to 1.7x, with force errors below model non-determinism. On Ampere GPUs, TF32x3 achieved up to 1.9x GEMM and 1.5x MD step speedup while preserving energy conservation and structural relaxation convergence. Neither strategy requires retraining, architecture changes, or custom kernels, allowing evaluation as independent performance layers across scientific workloads.
Context
Atomistic simulations use quantum-mechanical methods (e.g., DFT) for accuracy but at high computational cost, while classical interatomic potentials are fast but limited in accuracy. Machine learning interatomic potentials (MLIPs), such as the Point Edge Transformer (PET), offer a middle ground but often run inference in FP32, leaving Tensor Core throughput unused. Tensor Core FP32 methods address this precision-performance trade-off by decomposing FP32 operands into lower-precision components and recombining results with FP32 accumulation.
Approach / What changed
BF16x9 on NVIDIA Blackwell GPUs is enabled via the cuBLAS environment variable CUBLAS_EMULATE_SINGLE_PRECISION=1, requiring no model code changes. TF32x3 on Ampere GPUs is implemented by replacing nn.Linear layers with a custom TF32Linear layer that calls a CUTLASS C++ kernel using the OpMultiplyAddFastF32 operator.
Takeaways
BF16x9 on Blackwell GPUs delivered up to 2.5x GEMM speedup and 1.7x MD step speedup for PET, with force errors below the model’s own non-determinism.
TF32x3 on Ampere GPUs achieved up to 1.9x GEMM speedup and 1.5x MD step speedup while preserving energy conservation and structural relaxation convergence.
End-to-end speedups depend on system size and GEMM fraction; large systems benefit most, and neither method requires retraining or architecture changes.
FAQ
How are Tensor Core FP32 methods enabled for different GPU architectures?
BF16x9 on Blackwell is enabled via cuBLAS environment variable CUBLAS_EMULATE_SINGLE_PRECISION=1 with no code changes. TF32x3 on Ampere requires replacing nn.Linear layers with a custom TF32Linear layer that uses a CUTLASS kernel.
Do Tensor Core FP32 methods affect physical simulation stability?
BF16x9 errors were below model non-determinism. TF32x3 preserved energy conservation in NVE simulations and matched FP32 convergence in structural relaxation, while one-pass TF32 failed to converge.
What speedups were observed for the PET model on tested systems?
On a 17,280-atom system, BF16x9 achieved up to 1.7x MD step speedup. TF32x3 achieved up to 1.5x MD step speedup on a 192-atom system, with larger systems benefiting more.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.