One Simple Trick for Improving the Performance of Energy-Limited Local Inference and Training
Abstract
Energy supply and heat dissipation are two of the main challenges with modern GPU deployments. While typically discussed in the context of new datacenter constructions, the same constraints also apply to small form-factor consumer devices, such as the DGX spark. In workloads characterized by alternating compute-intensive tasks such as matmuls with memory-bound operations such as norms or cross-entropy, the compute-intensive parts might hit power and/or thermal limits and start throttling. In this short paper, we show that chunking the workload into smaller parts that alternate compute and memory in higher frequencies, these power and temperature spikes can be smoothed out, preventing throttling and resulting in considerably faster wall-clock time and reduced total energy consumption. We present several scenarios in which this effect can be exploited on a DGX Spark with up to 2% performance and energy improvements, and demonstrate that the same phenomenon also happens on less constrained systems, such as a multi-GPU server, albeit at significantly reduced effect size of 1-2%.
Create a lesson
Related papers
RAPID-LLM: Resilience-Aware Performance analysis of Infrastructure for Distributed LLM Training and Inference
Shared title terminology · George Karfakis, Lime Yao, Binglu Chen et al.
Energy-Aware Performance Characterization of Kokkos Kernels Across Precision Levels
Shared title terminology · Maria Patrou, Andrey Prokopenko, Aditya Kashi et al.
Compositional Performance Modeling of LLM Inference Clusters with Hierarchical KV Caching
Shared title terminology · Ruiyang Ma, Sheng Qi, DaiKang Kuang et al.
Energy-performance tradeoffs in server farms with batch services and setup times
Shared title terminology · Thu Le-Anh, Tuan Phung-Duc
Characterization of Request and Token Energy Costs for LLM Inference Workloads on GPU Platforms
Shared title terminology · Prabhu Vellaisamy, Vanessa Lam, Shawn Blanton et al.
The Joule Point: an Energy-Optimal Operating Point for AI Inference
Shared title terminology · Alexander Apartsin, Yehudit Aperstein