Skip to main content

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:

  1. Visit the dataset page and request access (granted automatically).
  2. Set the HF_TOKEN environment 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

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 and Codex, install via the ML.ENERGY plugin marketplace:

# Inside Claude Code
/plugin marketplace add ml-energy/plugins
/plugin install mlenergy-data@ml-energy
$ codex plugin marketplace add ml-energy/plugins
$ codex plugin add mlenergy-data@ml-energy

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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlenergy-data 0.5.0
File Size Uploaded Provenance Actions
mlenergy_data-0.5.0.tar.gz 43.7 kB Without provenance Details for mlenergy_data-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlenergy-data 0.5.0
File Interpreter ABI Platform Actions
mlenergy_data-0.5.0-py3-none-any.whl Python 3 none any Details for mlenergy_data-0.5.0-py3-none-any.whl

Total release size: 77.5 kB

Release files / mlenergy_data-0.5.0.tar.gz

Download URL mlenergy_data-0.5.0.tar.gz
Size 43.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9e97b4b90ded19a7b7b3eb3360640733e7399bfa634ae6b5ff888dfbefe32afb
BLAKE2b-256 checksum
How to use checksums
f9312af35675e27b1091575ec56822111da8215eadb10beaa5b7713fabb59cda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.5.0-py3-none-any.whl

Download URL mlenergy_data-0.5.0-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61a1f228a02691e5173a259f3c3c4e06dba0b5b762b14214cb0c12e006ef6814
BLAKE2b-256 checksum
How to use checksums
ea5179fd35d7546fbe4b45d46a34bffad1aa52478178af9df654ddf4c7caa74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mlenergy-data 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page