LLenergyMeasure
📖 Documentation site: https://henrycgbaker.github.io/llenergymeasure/
Measure the energy efficiency of LLM inference across different implementation configurations.
LLenergyMeasure is a Python framework for measuring the energy consumption, throughput, and computational cost (FLOPs) of LLM inference across different deployment configurations. It helps researchers compare the energy efficiency of different models, inference engines, and a wide range of implementation decisions - reproducibly and at publication quality.
Key Features
- Multi-engine inference - Transformers, vLLM, TensorRT-LLM, SGLang (planned)
- GPU energy measurement - NVML, Zeus, CodeCarbon, others
- Smart sweep system - define parameter grids, run Cartesian product experiments automatically; intelligently managed sweep hierarchy scopes available config fields to appropriate engine/component, and ensures invalid combinations are removed
- Docker isolation - launches per-experiment containers with full GPU passthrough; latest docker images for each engine in registry with full runner configurability and process (host) mode also available. Every study pre-flight now verifies that each image's
ExperimentConfigschema fingerprint matches the host's, aborting with an actionable rebuild hint on drift (llem doctorfor a one-shot check). - Reproducibility - fixed seeds, cycle ordering, thermal management, environment snapshots, effective config recorded
- Built-in datasets - AI Energy Score benchmark prompts included; custom JSONL datasets also supported
Quick Install
pip install llenergymeasure
Engine code (Transformers, vLLM, TensorRT-LLM) runs inside per-engine Docker images; the host package is the orchestrator. See docs/contributing/development.md for the build/run pattern.
Run your first measurement (host dispatches the appropriate engine container):
llem study init -m gpt2 --defaults # author a runnable study.yaml
llem run study.yaml
See the documentation site for the full guide - tutorials, how-to recipes, reference (CLI, study config, library API, engines), conceptual explanation (methodology, energy measurement, architecture), and a contributing guide for internals.
Contributing
Contributions welcome. See the development install instructions to set up a local environment, plus the contributing guide.
License
Metadata
Release files for llenergymeasure 0.7.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 | Provenance | Actions |
|---|---|---|---|---|
| llenergymeasure-0.7.0.tar.gz | 2.6 MB | With provenance | Details for llenergymeasure-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llenergymeasure-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for llenergymeasure-0.7.0-py3-none-any.whl |
Total release size: 3.8 MB
Release files / llenergymeasure-0.7.0.tar.gz
| Download URL | llenergymeasure-0.7.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12d7c70ac3ca7df68b4e7db1cf5956f32aa344ed7b44b9ae24acc9927e764167
|
|
BLAKE2b-256 checksum How to use checksums |
eacbff0dff4b3c080daa3a216d564ce6d9de8754f930c5fce4390981610d39bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logRelease files / llenergymeasure-0.7.0-py3-none-any.whl
| Download URL | llenergymeasure-0.7.0-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1222c82557ef14497faa484c08a9baf3fc6287a94eb06996435eda0cf23e8df3
|
|
BLAKE2b-256 checksum How to use checksums |
77aa05e2102a7f3009ee74e730e086d58ff383ec129288211128c5cc47a7f37e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logSecurity for llenergymeasure 0.7.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for llenergymeasure-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logA 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.