EcoCoder reports energy savings in Watt-hours (Wh) saved and Joules per passing test by comparing EcoCoder’s serving GPU energy against a task-adjusted counterfactual model for closed frontier models such as Claude Opus 5.5. Because closed API providers publish token counts rather than GPU watts, every savings claim depends on four explicit choices: the hardware boundary, how EcoCoder’s own energy is recorded, how the closed-model counterfactual is estimated, and how we correct for differences in token volume and batching. This page documents each step and cites the underlying arXiv and ML.ENERGY research.
1. System Boundary & Plain-English Units
Every headline number on LeanLM uses the GPU energy boundary: the electrical energy drawn by the NVIDIA GPU accelerator card itself during inference. One kilowatt-hour (1 kWh) equals 1,000 Wh or 3,600 kJ (3,600,000 Joules)—roughly running a 1,500-watt space heater for 40 minutes. On our 7 held-out brownfield Python repositories (Ledger v5.0), EcoCoder averaged 293 J of GPU energy per passing test, which is roughly the electricity a 10-watt LED light bulb uses in 29 seconds.
GPU energy deliberately excludes host CPU, system DRAM, networking switches, idle standby servers, and datacenter cooling (Power Usage Effectiveness, or PUE). Published full-stack studies show why keeping both sides on the exact same boundary is critical:
- Google’s full-stack production study (arXiv:2508.15734) measured a median Gemini text prompt at 0.24 Wh full-stack versus 0.10 Wh for active accelerator compute alone—a 2.4× full-stack multiplier once host CPU/RAM, idle reserve capacity, and facility PUE are included.
- The ML.ENERGY Benchmark (arXiv:2505.06371; Leaderboard v3.0) measures GPU power via NVML alongside CPU/DRAM power via RAPL, showing GPU cards represent ~91%–92% of server power under saturated batching but drop to ~79% under low concurrency before facility PUE (typically 1.10–1.20).
In our portal, the default view compares GPU energy to GPU energy (PUE = 1.00×) so an asymmetric boundary never inflates savings. Users who want facility-level estimates can toggle PUE (1.10×, 1.14×, or 1.20×), which scales both EcoCoder and the counterfactual symmetrically.
2. How EcoCoder’s Energy Is Recorded
EcoCoder routes requests across contracted US NVIDIA GPU servers. On each completed inference turn, the gateway reads the per-request consumed GPU energy fields directly from the inference response—never discounted, promotional, or free-tier billed kWh from billing APIs.
Across all 93 EcoCoder episodes in Ledger v5.0, per-turn energy comes from supplier-reported GPU host telemetry rather than an independently audited third-party hardware meter. Under the GHG Protocol Scope 3 Standard data-quality hierarchy, EcoCoder’s telemetry is supplier-specific primary data, whereas closed-model baselines (Claude Opus 5.5, Sonnet 5.5, Haiku 5.5) are secondary modeled estimates. Exact per-turn schema fields are preserved in /data/benchmark-v5.0.json.
3. Modeling Closed Frontier Baselines (Method A & Method B)
Because Anthropic does not publish per-request GPU watts or exact parameter counts for Claude 5.5, we estimate counterfactual GPU energy using two independent methods documented in our open source physics engine (energy_physics.ts / eco_physics.py):
Method A: NVML-Fitted Token Physics (Primary)
Token counts alone hide real hardware work because prefilling fresh tokens, reading a warm KV cache, and decoding new output tokens stress different parts of a GPU. Method A decomposes each turn into four physical terms fitted (within ±3.5%) to 1,526 NVML-metered GPU turns across open-weight dense and sparse decoders spanning small to frontier parameter scales:
e_cached(P_act) = 0.0029 + 0.0000455 × P_act^κ [J / cached input token, κ = 2/3]
e_output(P_act, P_tot) = 0.6825 + 0.0528 × P_act + 0.00082 × P_tot [J / output token]
E_KV = 2.366×10^-6 × (P_act / 3)^κ × (context_tokens × output_tokens) [J KV-bandwidth term]
E_GPU = e_uncached × N_unc + e_cached × N_cac + e_output × N_out + E_KV
Because exact active and total parameter counts for closed 2026 models are undisclosed, every counterfactual is evaluated across an [optimistic, central, conservative] parameter bracket multiplied by a [0.65×, 1.00×, 1.45×] hardware-efficiency uncertainty band:
| Counterfactual Model | Active Params [Opt / Cen / Con] | Total Params [Opt / Cen / Con] | Task Token Ratio (Ledger v5.0) |
|---|---|---|---|
| Claude Haiku 5.5 | 20B / 30B / 45B | 120B / 200B / 320B | 0.95× (0.88× OSS, 1.33× brownfield) |
| Claude Sonnet 5.5 | 80B / 110B / 150B | 800B / 1,200B / 1,600B | 0.50× (0.50× OSS) |
| Claude Opus 5.5 | 180B / 250B / 350B | 1,800B / 2,400B / 3,000B | 0.46× (0.475× OSS, 0.439× brownfield) |
| 3T Frontier MoE | 240B / 300B / 360B | 3,000B | 0.46× (configurable in portal) |
For Claude Opus 5.5 at the central prior (250B active / 2.4T total), decode energy is ~15.85 J/output token (~19.5–20.6 J/output token end-to-end including long-context prefill and KV bandwidth). That sits squarely within 2025–2026 published estimates for long-context frontier reasoning models (Jegham et al., arXiv:2505.09598, report 29–39 Wh per long reasoning prompt; Epoch AI reports 2.5–40 Wh for long-context/reasoning queries vs. 0.3 Wh for short median chat prompts).
Method B: EcoLogits 0.11.x Cross-Check
The portal’s advanced physics drawer also displays EcoLogits 0.11.x output-token estimates for independent cross-checking. Because EcoLogits fixes batch = 64 while scaling per-GPU active energy across every weight-holding GPU, models above 1.5T parameters (>16 GPUs) extrapolate beyond its empirical fit and are explicitly marked with *.
4. Why Naive Same-Token Multiples Overstate Savings (and How We Fix It)
Two statistical artifacts can cause a naive live energy dashboard to print inflated numbers like 50× or 130×:
- Token-volume asymmetry (why we apply a
0.46×task adjustment): Comparing Opus 5.5 on 100% of EcoCoder’s tokens ignores that a flagship model often finishes a coding task in fewer turns and tokens. Across Ledger v5.0 (351 held-out episodes), Opus 5.5 used 47.5% as many tokens as EcoCoder on 24 unseen Java/JS commits and 43.9% on 7 brownfield Python repos (mean0.46×). Applying that empirical0.46×task-token ratio brings our live counterfactual right back in line with the real per-task benchmarks: on the OSS trace,50.2× × 0.46 = 23.1×(matching Ledger v5.0’s23.4×); on brownfield Python,23.0× × 0.46 = 10.6×(matching Ledger v5.0’s10.4×). - Batch-concurrency & small-sample variance: Research on continuous batching (StepSplit, arXiv:2411.05244; Splitwise, arXiv:2311.18677; ML.ENERGY Leaderboard v3.0) shows that saturated multi-tenant batching amortizes GPU idle power (
150–350 W) and HBM weight reads across co-running requests. On heavily batched short turns, EcoCoder can log~0.12 J/output token, while a 1-turn cold test can log0.003–0.006 Wh. Dividing a large counterfactual numerator by a tiny denominator causes ratio explosions on small samples. That is why our portal leads with cumulative Wh saved (an additive metric immune to small-denominator division blowups) and pairs every live multiple with its full[optimistic–conservative]range.
5. Quality-Adjusted Efficiency & Wall-Clock Latency Tradeoffs
Raw energy savings mean nothing if a model breaks tests or forces endless retries. Following ML.ENERGY’s Energy–Accuracy–Latency Pareto methodology and Zeus (arXiv:2208.06102), we evaluate energy alongside pass rate and wall time across strictly separated held-out suites (Ledger v5.0, k=3 seeds):
Held-Out Suite (k=3) |
EcoCoder vs. Opus 5.5 Quality | EcoCoder vs. Opus 5.5 GPU Energy | Quality-Adjusted Unit | Median Wall Time |
|---|---|---|---|---|
| 7 Brownfield Python Repos 5,775 pooled tests |
97.75% vs. 98.91% (−1.16 pp; 98.66% regressions kept) |
1,653.9 kJ vs. 17,269.4 kJ* ~10.4× less [5.1×–20.4×] |
293 J / passing test vs. ~3,023 J* Opus (~10.3×) |
767.7s vs. 436.5s (+331s longer) |
| 24 Unseen Java/JS OSS 72 runs/arm |
81.94% (59/72; 91.7% Java) vs. 87.50% (−5.56 pp; +5.56 pp vs. Haiku) |
310.4 kJ vs. 7,268.2 kJ* ~23.4× less [11.3×–46.1×] |
5.26 kJ / solve vs. ~115.4 kJ* Opus (~21.9×) |
84.6s vs. 40.9s (+44s longer) |
Does longer wall time erase the GPU savings? Energy is power integrated over time (E = P × T). On brownfield Python, EcoCoder’s extra 331 seconds of median wall time keeps a 50-watt developer laptop awake for an extra 16.6 kJ (4.6 Wh) per repo. Compared against Opus 5.5’s modeled ~822 kJ (228 Wh) per repo vs. EcoCoder’s 78.8 kJ (21.9 Wh), the client-side latency penalty is roughly 2% of the server GPU savings—real enough to disclose, but far too small to overturn the net win.
Why dollars and Joules diverge (Haiku 5.5 example): Commercial API prices reflect vendor pricing strategy, not hardware physics. On short <100k-context OSS commits, Haiku 5.5 is cheaper in dollars ($1.19 CLI vs. $3.55 EcoCoder) yet still draws an estimated 7.9× more GPU energy (2,451.5 kJ* vs. 310.4 kJ) and resolves 5.56 pp fewer commits. Once context crosses Anthropic’s >100k tier on brownfield Python, EcoCoder beats Haiku 5.5 in both dollars ($7.87 vs. $10.60 CLI billed) and GPU energy (~6.2× less).
6. Known Limitations & Ongoing Improvements
- Prefill vs. decode nuance: Applying a uniform
0.46×task-token ratio to a single short turn slightly underestimates Opus’s prompt-prefill energy (which is1.0×on an identical single prompt). On multi-turn coding sessions where decode and repeated context dominate, the empirical0.46×ratio tracks Ledger v5.0 within 1.5%. - Supplier-reported GPU telemetry: Across Ledger v5.0, EcoCoder’s serving GPU energy comes from GPU host telemetry reported by our contracted infrastructure provider rather than an independent third-party wattmeter audit (field-level provenance is published in /data/benchmark-v5.0.json).
- Modeled closed baselines: Until commercial frontier providers publish per-request hardware energy headers, every comparison against Claude 5.5 remains a bounded counterfactual range—which is why we publish the full
[optimistic–conservative]band alongside every central figure.
7. Cited Research & Standards
- Chung, J.-W., et al. (NeurIPS 2025 Datasets & Benchmarks): The ML.ENERGY Benchmark: Toward Automated Inference Energy Measurement and Optimization — arXiv:2505.06371 · ML.ENERGY Leaderboard v3.0
- You, J., Chung, J.-W., & Chowdhury, M. (USENIX NSDI 2023): Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Training — arXiv:2208.06102
- Google (Aug 2025): Measuring the environmental impact of delivering AI at Google Scale (0.24 Wh full-stack vs. 0.10 Wh active accelerator boundary decomposition) — arXiv:2508.15734
- Jegham, N., et al. (2025): How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inference — arXiv:2505.09598
- StepSplit (2024/2026): Scaling Shapley Energy Attribution to Large LLM Batches (shared weight-read vs. request-specific batch attribution) — arXiv:2411.05244
- Patel, P., et al. (ISCA 2024): Splitwise: Efficient Generative LLM Inference Using Phase Splitting (prefill compute-bound vs. decode memory-bandwidth-bound separation) — arXiv:2311.18677
- GenAI Impact / CodeCarbon (2025–2026): EcoLogits LLM Inference Energy Methodology — ecologits.ai/latest/methodology/llm_inference
- Epoch AI (2025): How much energy does ChatGPT use? (short chat vs. long-context reasoning energy scaling) — epochai.org/blog/how-much-energy-does-chatgpt-use
- GHG Protocol: Corporate Value Chain (Scope 3) Accounting and Reporting Standard (supplier primary telemetry vs. secondary modeled proxy tiers) — ghgprotocol.org/scope-3-standard