TECHNOLOGY

TokenPowerBench: sensor scope and honest phase attribution

In this article
THE QUICK TAKE

A valid phase duration can have unavailable energy; sensor boundaries, effective settings and paper-versus-package scope must accompany every result.

The paper and the current package have different scopes

TokenPowerBench’s paper proposes configurable measurement of language-model inference energy across components and execution phases. Its reported research environment is a multi-node H100 cluster. That study should be distinguished from the current package documentation, which identifies single-node vLLM as its validated inference path and describes limitations of distributed orchestration and attribution.

This distinction is practical. Running a small example can verify that a local measurement pipeline works; it does not reproduce a published large-model figure. Matching a project name is insufficient when the hardware, engine coverage and workload differ.

Sensor availability defines the measurement boundary

The package documents selected-GPU power through NVML, CPU package and optional DRAM counters through Intel RAPL, and whole-node power through IPMI. Missing measurements remain null with reasons. Root access cannot create a hardware interface: the documented Grace platform lacks Intel RAPL even when the process has elevated access.

Whole-node energy already includes components within the BMC’s boundary. Adding GPU energy to that total would count overlapping consumption twice. Summing available component readings is another quantity and cannot silently replace an unavailable node measurement.

This is the central distinction in the existing energy-per-inference guide. An energy number needs its physical boundary as much as its unit. A selected device’s telemetry can answer a useful question without being renamed electricity consumed by the whole server.

Prefill is explicitly a host-observed proxy

The documented phase mode uses serial requests. Its prefill proxy runs from request submission to the first observed output token, including dispatch, queueing, scheduling and host overhead. Decode then runs to completion. The first generated token belongs to the prefill proxy; the decode denominator uses the remaining output tokens.

These boundaries are not exact GPU kernel boundaries. A valid duration therefore does not establish pure attention-kernel energy or exclude every host-side delay. Concurrent requests can also mix execution phases in a shared trace, which is why an ordinary batched result cannot automatically be divided into independent per-request phases.

The measurement definitions further specify trapezoidal integration with boundary coverage and interpolation, rather than extrapolating across missing measurements. They apply minimum windows and sample requirements; insufficient coverage yields unavailable energy instead of zero.

Faster polling does not create finer physical observations

The documentation warns that a sensor can return averaged or slowly refreshed values. Repeatedly requesting a reading does not prove that the hardware supplied a new independent observation. Even an accepted interval can include averaging across a phase boundary.

For a short prompt, the timing can be meaningful while phase energy remains unavailable. Lengthening the prompt to obtain a measurable interval changes the workload. It may be a useful separate experiment, but it cannot be presented as repairing the original request without that change being visible.

The power-meter alignment guide explains why timestamps and window boundaries belong together. Arithmetic integration can be correct while the physical measurement remains too coarse for the desired attribution.

Reproducing a workload requires its complete record

The package saves prompts, requested and effective engine settings, sensor capabilities, environment information and raw readings. Its reproduction guide explicitly separates functional examples from reproducing the paper’s figures. A requested setting may also differ from an engine’s effective configuration.

A useful report should therefore preserve both settings and disclose how many requests have measurable energy. Summing only available phases does not give total phase energy for all requests. Keep incomplete or failed runs distinguishable from successful measurements.

TokenPowerBench supplies a concrete measurement framework and implementation contract. Its value lies in making the boundary inspectable; neither an open repository nor a successful example independently establishes a published benchmark’s numerical reproduction or another machine’s energy efficiency.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles