TokenPowerBench: Benchmarking the Power Consumption of LLM Inference

Chenxu Niu, Wei Zhang, Jie Li, Yongjian Zhao, Tongyang Wang, Xi Wang, Yong ChenarXiv 2025 · DOI

Introduction

As Large Language Models (LLMs) transition from research environments to large-scale production, the focus on energy efficiency has shifted. While training costs are significant, inference now accounts for over 90% of the total energy footprint of these models. TokenPowerBench is an open-source benchmarking framework designed to provide a fine-grained breakdown of this consumption, analyzing power usage across hardware components and inference phases without the need for external power meters.

Methodology

TokenPowerBench utilizes a three-layer architecture to achieve high-resolution, operator-centric measurements. The Configuration Layer allows users to select from a diverse range of models (1B to 405B parameters) and inference engines. The Execution & Measurement Layer leverages vendor-native telemetry, such as NVIDIA’s NVML and Intel’s RAPL, to sample power in real-time. This data is synchronized with the inference engine's internal state to provide both a temporal view (prefill vs. decode) and a spatial view (GPU vs. CPU vs. RAM). Finally, the Report Generation layer normalizes these findings into actionable metrics like Joules per Token (J/t).

The TokenPowerBench framework architecture, showing the progression from configuration through execution and measurement to final report generation.

Experimental Setup

The benchmark was evaluated using two primary datasets: Alpaca for short, conversational prompts and LongBench for extended contexts up to 10,000 tokens. The study encompassed over 15 popular open-source models, including the Llama series, Falcon, Qwen, and Mistral/Mixtral, across various inference engines like vLLM and TensorRT-LLM.

Results and Analysis

The Impact of Model Scale and Architecture

The study reveals a super-linear relationship between model size and energy consumption. For the Llama-3 family, a 70x increase in parameter count (from 1B to 70B) resulted in a 7.3x increase in energy per token, largely due to increased memory-traffic overhead. Conversely, Mixture-of-Experts (MoE) models like Mixtral-8x7B proved highly efficient, offering the performance of much larger dense models with the energy profile of an 8B model.

Optimization Strategies: Batching and Quantization

Batch size is a critical factor in energy efficiency. As shown in the benchmarking results, increasing batch sizes from 32 to 256 provides the most significant reduction in energy per token by spreading fixed computational overhead across more tokens.

Energy per token (J/t) as a function of batch size for various model families. Increasing batch size significantly improves energy efficiency until reaching a point of diminishing returns.

Quantization also offers substantial savings. Transitioning from FP16 to FP8 for the Llama-3 405B model reduced energy per token by approximately 30%.

Parallelism and Context Length

For frontier-scale models, parallelism strategy is vital. Pure Tensor Parallelism (TP) was found to be more energy-efficient than hybrid Pipeline Parallelism (PP) for the 405B model because it minimizes GPU idle time. Additionally, context length has a dramatic impact; for a 70B model, increasing prompt length from 2,000 to 10,000 tokens tripled the energy cost per generated token due to the intensive prefill phase.

Conclusion

TokenPowerBench provides the necessary transparency for engineers to optimize LLM deployments for sustainability and cost. Future work will expand the framework to include AMD accelerators and specialized AI chips, while also investigating the trade-off between model accuracy and energy consumption.

Summary updated

BibTeX
@misc{niu2025tokenpowerbench,
  author = {Chenxu Niu and Wei Zhang and Jie Li and Yongjian Zhao and Tongyang Wang and Xi Wang and Yong Chen},
  title = {{TokenPowerBench: Benchmarking the Power Consumption of LLM Inference}},
  year = {2025},
  eprint = {2512.03024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.03024},
}
Figure