SustainML is a framework and an associated toolkit that fosters energy efficiency throughout the life-cycle of ML applications. Starting from a description of the user's problem and constraints, it proposes a machine learning model, estimates the resources that model needs on the chosen hardware, and the energy and carbon footprint of running it, so that different model and hardware choices can be compared.
AI developers from all experience levels can make use of the framework through its emphasis on human-centric interactive transparent design and functional knowledge cores, instead of the common blackbox and fully automated optimization approaches in AutoML.
The SustainML Framework is composed of six module nodes, each one specialized in one part of the problem, starting from the user's problem description:
- App Requirements and ML Model Metadata: encode the problem and constraints defined by the user, and find the ML goal.
- ML Model Provider: propose a machine learning model, or take the one chosen by the user.
- HW Constraints and HW Resources Provider: evaluate the model on the hardware chosen by the user (latency, power and memory).
- Carbon Footprint: estimate the energy and carbon footprint of each inference of the model on that hardware.
Each node is a Python program built on the Python API of this library, which hides the DDS communications.
This repository contains the library and the module nodes. It is normally used through the SustainML Framework, which uses the library API to deploy the SustainML modules, and it can also be installed on its own (see the stand-alone library installation in the documentation). Information exchanged between modules is transmitted over DDS.
The SustainML Framework includes a Graphical User Interface (GUI) through which the user defines the ML problem and explores the results. The GUI talks through a REST API to the backend node of this repository, which hosts the Orchestrator: it feeds the module nodes with the information provided by the user and collects their results.
This process can be iterative. So, based on a previous solution and the user's feedback, the framework provides new ML solutions.
This repository is divided in sub-packages with different targets:
sustainml_cpp: Main definition and implementation of the project logic library. C++ API provided.sustainml_docs: ReadTheDocs documentation project (available here)sustainml_modules: The module nodes and the backend node, written in Python on the Python API. The nodes of work packages 1, 2 and 3 are thesustainml-wp1,sustainml-wp2andsustainml-wp3Git submodules.sustainml_py: Python API of the library: Python classes that wrap thesustainml_swigbindings.sustainml_swig: SWIG bindings of the C++ APIsustainml_cpp, built as thesustainml_swigPython module.
If you need support you can reach us by mail at sustainml@eprosima.com or by phone at +34 91 804 34 48.
This project has received funding from the European Union’s Horizon Europe research and innovation programme (HORIZON-CL4-2021-HUMAN-01) under grant agreement No 101070408.
