Skip to main content

ML.ENERGY Benchmark data toolkit

Project description

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

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},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlenergy_data-0.3.2.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlenergy_data-0.3.2-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file mlenergy_data-0.3.2.tar.gz.

File metadata

  • Download URL: mlenergy_data-0.3.2.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for mlenergy_data-0.3.2.tar.gz
Algorithm Hash digest
SHA256 613f89c508c8a2c328962f015a3c09db8f8fd52f78356e606b4dc5ff75102365
MD5 7bc568f93f5d2f0f422183057e20b1d0
BLAKE2b-256 ac55131b85ce36e2c9ce91612aea93b5912a4730eeac5f5f157647b9040b9f4a

See more details on using hashes here.

File details

Details for the file mlenergy_data-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: mlenergy_data-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for mlenergy_data-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56d71c9e6504b8a59eda3a282ab79f68db4b19a374b3b09872b70d3778c84ebe
MD5 2d8b42c362a06655062392dfd912b6f9
BLAKE2b-256 243e52e2de434bb6603d4159f945267def38c7b6e5898d4b887226cd35bf7e60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page