TokenPowerSandbox: Evidence-Gated CPU-First Screening for Energy-Aware LLM Serving
Abstract
Energy-aware LLM serving requires comparing configurations under realistic request shapes, yet exhaustive target-GPU profiling is costly and a cheap predictor can be dangerously confident outside its measured scope. We present TokenPowerSandbox, an evidence-gated workflow that combines an interpretable CPU-resident projector, short target-GPU probes, full-workload verification, and tamper-evident freeze-before-measurement provenance. On one NVIDIA H100 80GB serving Qwen2.5-7B-Instruct with vLLM, three anchor repeats and six development workloads calibrate workload transfer. The same frozen model is evaluated on a blind holdout and a separately predeclared no-refit confirmation totaling 51 post-freeze runs. Energy MAPE is 6.23% and 7.35%, with Spearman rank correlations of 0.976 and 0.933. However, a predeclared TTFT gate passes at concurrency four (9.27% MAPE) and triggers abstention below four (64.80%), showing why energy accuracy cannot certify latency.
Figures & tables
| Holdout v2 MAPE | Corrected rank | |||
| Metric | Base | Corrected | Pairs | |
| Energy/1k output | 63.01% | 6.23% | 0.976 | 27/28 |
| Output throughput | 23.93% | 10.53% | 0.976 | 27/28 |
| P95 TTFT | 73.44% | 32.67% | 0.952 | 26/28 |
| P95 TPOT | 34.29% | 7.99% | 0.929 | 25/28 |
| No-refit scope confirmation v3 | ||||
| Metric | Expert | Pareto | Change |
|---|---|---|---|
| Energy (J/1k out.) | 371.13 | 367.27 | |
| Output tok/s | 1732.60 | 1785.63 | |
| P95 TTFT (ms) | 1343.60 | 1053.56 | |
| P95 TPOT (ms) | 17.25 | 16.76 |
| Metric | Expert median | Winner median | Paired effect |
|---|---|---|---|
| Energy (J/1k out.) | 372.21 | 367.26 | mean |
| Output tok/s | 1727.44 | 1783.71 | mean |
| P95 TTFT (ms) | 1340.92 | 1057.11 | median |
| P95 TPOT (ms) | 17.29 | 16.77 | mean |
LLM Serving
Large language model serving studies how to deliver model responses with low latency, high throughput, and efficient use of compute and memory.
See all 211 papers