Skip to content

raphischer/imagenet-energy-efficiency

Repository files navigation

Assessing Energy Efficiency of Machine Learning - MLEE

Code and results for assesing energy efficiency of machine learning tasks at the example of ImageNet. The associated research paper will be published in the proceedings of the 7th Workshop on Data Science for Social Good @ ECML-PKDD 2022.

Installation

All code was executed with Python 3.8, please refer to requirements for all dependencies. Depending on how you intend to use this software, only some packages are required.

Usage

To start ELEx locally, simply call python elex.py and open the given URL in any webbrowser. Call python -m mlee.label_generator to generate an energy label either for a given task / model / environment, or any of the merged logs (provided via command line). The results (plots and tables) in the paper were generated with the corresponding script.

Currently our publicly available Energy Label Exploration tool lists results for another paper (under review), but ImageNet results will be merged to this public instance soon.

New experiments can also be executed, available tasks are inference and training. You can pass the chosen model, software backend and more configuration options via command line. For --data-path pass the directory with full ImageNet data for the chose software --backend, refer to the respective implementations for TensorFlow and PyTorch. For each experiment a folder is created, which can be merged into more compact .json format. Note that due to monitoring of power draw, we mainly tested on limited hardware architectures and systems (Linux systems with Intel CPUs and NVIDIA GPUs). You can also inspect the scripts used to run all esxperiments.

Road Ahead

We intend to extend and improve our software framework:

  • polish the ELEx tool, allow to execute expeirments locally from GUI
  • support more implementations, monitoring options, models, metrics, and tasks.
  • move beyond sustainability and incorporate other important aspects of trustworthiness
  • more improvements based on reviewer feedback

Reference & Term of Use

Please refer to the license for terms of use. If you use this code or the data, please cite our paper and link back to https://github.com/raphischer/imagenet-energy-efficiency.

Copyright (c) 2022 Raphael Fischer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published