How greeninfer works
Training gets most of the attention in green AI, but a model in production is called millions of times. greeninfer measures what each prediction really costs: latency percentiles, throughput, energy per thousand predictions, CO2 and machine cost per million, across batch sizes from single-row serving to large batches.
It reads hardware energy counters (RAPL) where Linux exposes them and falls back to a clearly labelled CPU-time estimate everywhere else, including Google Colab. Every result records the method, CPU and library versions, so runs are reproducible and honest in a paper.
A Colab notebook is included that saves data, models and results to Google Drive, so a disconnect never loses work.
This package comes out of my research on energy-efficient inference for gradient-boosted trees in e-commerce and health.
Try it
pip install greeninfer
Free and open source under the MIT license. Want this done for your store, or need help with the findings? Book a call.