The Token-Energy Law of LLM Decode: Active Bytes and Realized Time Account for Joules per Token
Organizations: NVIDIA Corporation, USA · Texas Tech University, USA · Texas Advanced Computing Center, USA
Abstract
Energy-efficient deployment of large language models requires understanding how model architecture, hardware, and serving settings shape energy per generated token. We introduce the Token-Energy Law, a compact, interpretable model of GPU-board energy per output token for dense, full-history decoding. It relates token energy to two core dimensions: active bytes and realized decode time. Active bytes describe logical byte demand per output, separating dense weights shared within a decode iteration from private key--value (KV) histories read and updated for each request. Realized decode time is the elapsed decode duration divided by the number of output tokens produced. We combine the two byte coordinates and time in a common affine form, with coefficients calibrated for each model and hardware/runtime configuration. This formulation explains how batching amortizes shared-weight work, longer attended histories increase private KV demand, and throughput determines the time-associated cost per output. Our experiments cover three models under BF16 decoding on NVIDIA Hopper and Blackwell GPUs, including two-GPU tensor parallelism on Hopper. Using fixed coefficients and observed decode time, held-out condition-mean energy estimates differ from measurements by at most 3.73%.
Figures & tables
| Perspective and examples | Main question | Connection to this paper |
|---|---|---|
| Configuration measurement ( Samsi et al., 2023 ; Niu et al., 2026 ; Chung et al., 2025 ) | Effects of model, workload, and serving choices on energy. | Execution variables that explain configuration-dependent trends. |
| Analytical work–energy models ( Choi et al., 2013 ; Pizzini Cavagna et al., 2026 ; Vartziotis et al., 2026 ) | Energy costs of computation, data movement, and time. | Work–time foundation for shared-weight and KV accounting. |
| Deployment and operator predictors ( Palladino et al., 2026 ; Song et al., 2026 ) | Energy prediction from configurations or operators. | Complements modeling based on realized trace quantities. |
| Request-window amortization ( Vellaisamy et al., 2026 ) | Fixed and incremental energy within a request. | Explicit phase boundaries and useful-output normalization. |
| This work (Token-Energy Law) | Decode energy from shared weights, private KV history, and realized time. | Trace-derived work coordinates, independent HBM measurements, and frozen-coefficient validation under static and changing request membership. |
| Configuration | Fitting / development | Residual calibration | Held-out evaluation |
|---|---|---|---|
| GH200, Q7 | 75 runs | No independent set | 45 runs |
| GH200 / GB300 Q14 and M7 | 30 runs each | 15 runs each | 30 runs each |
| GH200, Q7 TP=2 | 30 runs | 15 runs | 30 runs |
| GB300, Q7 | 30 runs | 15 runs | 30 runs |
| Model | MAPE | Max. APE | Dense-sum gap | ||
|---|---|---|---|---|---|
| Qwen2.5-7B | 1.001189 | 1.002124 | 0.0460% | 0.1757% | 0.1714% |
| Qwen2.5-14B | 1.001661 | 1.000586 | 0.0324% | 0.0822% | 0.1494% |
| Mistral-7B | 1.001828 | 1.000494 | 0.0304% | 0.0787% | 0.1490% |
| Metric | GH200 | GB300 |
|---|---|---|
| Profiles | 45 | 27 |
| 1.001003 | 1.000784 | |
| 1.002258 | 1.004953 | |
| MAPE | 0.0444% | 0.0730% |
| Max. APE | 0.1172% | 0.2440% |
| Model | Bytes + time | Bytes only | Time only | Total bytes + time |
|---|---|---|---|---|
| Qwen2.5-7B | 2.137% | 35.458% | 29.395% | 5.721% |
| Qwen2.5-14B | 0.971% | 28.228% | 10.972% | 4.381% |
| Mistral-7B | 0.887% | 33.564% | 14.117% | 5.589% |
| Coordinates | Q7 | M7 |
|---|---|---|
| Realized | 0.404 | 0.870 |
| replaces | 9.824 | 8.258 |
| replaces | 3.578 | 6.395 |
| Platform | Model | ||||
| J/token | J/decimal-GB | J/decimal-GB | W | ||
| GH200 | Q7 | 0.000861 | 0.000861 | 0.001947 | 0.820 |
| GH200 | Q14 | 0.003848 | 0.000939 | 0.001830 | 0.986 |
| GH200 | M7 | 0.002479 | 0.000876 | 0.001865 | 0.564 |
| GB300 | Q7 | 0.001024 | 0.000431 | 0.002242 | 0.570 |
| GB300 | Q14 | 0.002096 | 0.000359 | 0.001181 | 0.369 |
| Platform | Model | Coefficients | Cells | Runs | Median | Maximum |
|---|---|---|---|---|---|---|
| GH200 | Qwen2.5-7B | Local fit | 9 | 45 | 0.409% | 2.22% |
| GH200 | Qwen2.5-14B | Local fit | 6 | 30 | 0.130% | 1.92% |
| GH200 | Mistral-7B | Local fit | 6 | 30 | 0.390% | 1.43% |
| GH200 TP=2 | Qwen2.5-7B | Local fit | 6 | 30 | 0.245% | 0.559% |
| GB300 | Qwen2.5-7B | Local fit | 6 | 30 | 0.637% | 2.137% |
| GB300 | Qwen2.5-14B | Local fit | 6 | 30 | 0.172% | 0.971% |