WorksComputer Science
TokenJoule: Energy Modeling for Distributed Training and Inference of LLMs
Abstract
As large language models (LLMs) scale, energy dictates operating cost, cooling, and cluster capacity across training and inference. Early hardware design-space exploration (DSE) requires predicting energy before silicon exists, yet performance models miss hidden component work while prior energy predictors calibrate to deployed GPUs. We present TokenJoule, an open-source analytical tool that derives device kernel sequences, tiled compute, shared-memory staging, cache residency, and collective traffic, pricing activity directly with component energies. With zero workload fitting, TokenJoule achieves 3.3-6.6% activity error (151 A100/H100 runs) and 3.0-6.8% A100 energy error, guiding parallelism, memory packaging, and 3D-DRAM chip co-design.