Inference Trade-offs Explained

Chapter 11

Power and energy

Where the joules per token go, and what power caps and clock scaling trade. Below, the mechanism as the simulator ran it, step by step; then what it measured, why it behaves that way, and the papers.

Check yourself ↓ three questions and what to remember, at the end

Loading the power animation…

What the simulator recorded

The sweep reports energy per token for every lever (the matrix's J/token column); power caps and clock scaling are recorded separately (results.md sections 3 and 6), in the matrix's colours against the uncapped disaggregated cluster.

ConfigurationTTFT p99TPOT p99SLO metAvg powerJ / token
Disaggregated 1P1D854.2 ms 15.2 ms 99.7% 2,687 W 2.77
... --dvfs854.2 ms 15.2 ms 99.7% 2,570 W 2.65
... --dvfs --decode-power-cap 250854.2 ms 17.2 ms 99.7% 2,503 W 2.59
... --dvfs --decode-power-cap 200854.2 ms 27.2 ms 12.6% 2,284 W 2.43
1P1D --power-cap 400 --dvfs1,240 ms 15.2 ms 95.3% 2,190 W 2.26
1P1D --power-cap 300 --dvfs1,651 ms 15.2 ms 83.3% 2,013 W 2.08
Llama-3-70B, four H100s per instance, four requests per second: DVFS and power caps on one pool or both. Power coefficients are illustrative.
Offered loadAvg powerJ / output tokenStatic share of energy
0.5 req/s1,472 W 11.8 54%
1 req/s1,729 W 7.0 46%
2 req/s2,066 W 4.2 39%
4 req/s2,687 W 2.8 30%
6 req/s3,254 W 2.3 25%
Energy proportionality of the 1P1D cluster as the load falls.

Where the joules go

The simulator's power model gives each pass a static part (the GPU idling) and a dynamic part, its compute and memory energy over its time. A compute-bound prefill draws far more than a memory-bound decode, so a cap clips the prefills: in the animation a cap of 300 W per GPU cuts energy per output token from 6.962 J to 5.183 J, and stretches TTFT p99 from 181.9 ms to 368.7 ms. DVFS lowers the clock on memory-bound passes, where compute waits for memory anyway, and saves a little energy at no cost in time (6.844 J).

Why the cheapest joule is the busy one

Static power is paid whether or not tokens flow, so energy per token is lowest when the GPUs are busy: as the load falls the static share grows (results.md section 6, from 30% at four requests per second to 54% at one every two seconds). That is why the levers that raise capacity also cut joules per token in the sweep: FP8 weights and matmuls -50% on chat, prefix caching -50%, while disaggregating at the same eight GPUs costs energy there (+4%). Narrower formats also move fewer bytes and do cheaper arithmetic per operation; what each format costs in silicon and energy per operation is Numerics Explained's hardware chapter. Energy-aware cluster managers (DynamoLLM) reconfigure instances and clocks as the load moves.

Check yourself

Commit to an answer before you reveal it: a wrong guess you can explain teaches more than a right one you skimmed. Every number in the answers comes from the same tested model as the chapter’s.

Q1In the animation, a power cap per GPU: what is the energy per output token, in joules?
Reveal the answer

Answer: 5.183 (counted right within 5%)

5.183 J against 6.962 J uncapped, at the price of a longer TTFT p99: 368.7 ms.

Where the joules go →

Commit to a number, then reveal.

Q2Why is energy per token lowest when the GPUs are busy?
Reveal the answer

Answer: Static power is paid whether or not tokens flow, so idle time adds joules to every token

The static share of energy grows as the load falls: 54% at the lowest load recorded.

Why the cheapest joule is the busy one →

Pick one, then reveal.

Q3What does DVFS (lower clocks on memory-bound passes) cost?
Reveal the answer

Answer: Almost nothing in time: compute waits for memory there anyway

It saves a little energy at no cost in time: 6.844 J per token.

Where the joules go →

Pick one, then reveal.

Papers and sources