The ML.ENERGY Data Toolkit
A Python toolkit for ML.ENERGY datasets: loading raw results, filtering and analyzing runs, fitting models, and building data packages.
We currently have The ML.ENERGY Benchmark v3.0 dataset, which includes LLM and diffusion inference runs on NVIDIA H100 and B200 GPUs.
Actual data are stored in Hugging Face Hub: ml-energy/benchmark-v3.
This repository contains the toolkit code, not the data itself.
What the toolkit does
- Load and filter benchmark runs with typed, immutable collection classes (
LLMRuns,DiffusionRuns). - Extract bulk data (power timelines, ITL samples, output lengths) as DataFrames.
- Fit models: logistic power/latency curves, ITL latency distributions.
- Build data packages for publishing to Hugging Face Hub.
Installation
pip install mlenergy-data
Dataset access
The benchmark dataset (ml-energy/benchmark-v3) is gated on Hugging Face Hub.
Before using the toolkit to load data from HF, you need to:
- Visit the dataset page and request access (granted automatically).
- Set the
HF_TOKENenvironment variable to a Hugging Face access token.
Quick example
from mlenergy.data.records import LLMRuns
runs = LLMRuns.from_hf()
# Find the minimum-energy model on GPQA
best = min(runs.task("gpqa"), key=lambda r: r.energy_per_token_joules)
print(f"{best.nickname}: {best.energy_per_token_joules:.3f} J/tok on {best.gpu_model}")
energies = [r.energy_per_token_joules for r in runs]
Filter, group, and compare across GPU generations and model architectures:
# Compare GPU generations: best energy efficiency per model on GPQA
for gpu, group in runs.task("gpqa").group_by("gpu_model").items():
best = min(group, key=lambda r: r.energy_per_token_joules)
print(f"{gpu}: {best.nickname} @ {best.energy_per_token_joules:.3f} J/tok, "
f"{best.output_throughput_tokens_per_sec:.0f} tok/s")
# MoE, Dense, Hybrid: who's more energy-efficient?
for arch, group in runs.task("gpqa").gpu_model("B200").group_by("architecture").items():
best = min(group, key=lambda r: r.energy_per_token_joules)
print(f"{arch}: {best.nickname} @ {best.energy_per_token_joules:.3f} J/tok")
Who uses it
- The ML.ENERGY Leaderboard v3.0: Benchmark results are loaded and compiled into the leaderboard web app data format.
- OpenG2G: Datacenter-grid coordination simulation framework; loads benchmark data and fits models.
- The ML.ENERGY blog: Analysis scripts for blog posts.
Agent skill
skills/mlenergy-data/ is a portable Agent Skill that teaches AI coding agents (Claude Code, Cursor, Goose, OpenCode, Gemini CLI, GitHub Copilot, etc.) to answer natural-language questions about the benchmark using this toolkit.
For Claude Code, install via the bundled plugin marketplace:
# Inside Claude Code
/plugin marketplace add ml-energy/data
/plugin install skill@ml-energy-data
Gemini CLI also supports gemini skills install https://github.com/ml-energy/data --path skills.
For other tools, you can download the skills/ directory and place it in the appropriate skills directory.
Documentation
See the full documentation site for:
- Usage guide: progressive walkthrough from loading data to fitting models.
- API reference: auto-generated from docstrings.
Citation
@inproceedings{mlenergy-neuripsdb25,
title={The {ML.ENERGY Benchmark}: Toward Automated Inference Energy Measurement and Optimization},
author={Jae-Won Chung and Jeff J. Ma and Ruofan Wu and Jiachen Liu and Oh Jun Kweon and Yuxuan Xia and Zhiyu Wu and Mosharaf Chowdhury},
year={2025},
booktitle={NeurIPS Datasets and Benchmarks},
}
Metadata
Release files for mlenergy-data 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mlenergy_data-0.4.0.tar.gz | 37.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mlenergy_data-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.9 kB
Release files / mlenergy_data-0.4.0.tar.gz
| Download URL | mlenergy_data-0.4.0.tar.gz |
|---|---|
| Size | 37.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94119d4884d19348af340ecb8d36e75270e37b72ea1d606e9976aa6a3293ce4c
|
|
BLAKE2b-256 checksum How to use checksums |
37d61958e8445023dfdc748018af1bf349d4f8a3c09d1c61316accc8fdacc12d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mlenergy_data-0.4.0-py3-none-any.whl
| Download URL | mlenergy_data-0.4.0-py3-none-any.whl |
|---|---|
| Size | 28.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c793a9b625091ffcd2c6a071458e3bdf76d2461913868d2d8a48bb45907a71f
|
|
BLAKE2b-256 checksum How to use checksums |
dad84396dcb42dbfc9018f4c397df9e3304c7cbbc62f67afd6f6fe956cc1f889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|