SustainML Framework - Geo Location and Carbon Footprint Optimization

SustainML Framework - Geo Location and Carbon Footprint Optimization

The carbon footprint of a model depends on where it runs. The SustainML Framework now takes the country of deployment into account, and it can look for a model that meets a carbon footprint target, step by step or automatically. All the examples below use Hugging Face models on the PIM-AI-1chip.

Step 1: Choose where the model runs

In the Sustainability targets card of the Problem definition, pick the continent and the country where the model will run. The framework turns the energy of each inference into CO2 with the carbon intensity of that country's power grid.

 01 Geo location

Step 2: Same model, different country

The same translation model, BlackKakapo/opus-mt-en-ro, ran twice on the same hardware. In Norway (28.11 gCO2/kWh), one inference emits 7.05e-08 gCO2e. In Poland (588.6 gCO2/kWh), it emits 1.48e-06 gCO2e, about 21 times more. With no country set, the framework detects the country from the IP address, and if that fails, it uses the world average (458.29 gCO2/kWh).

 02 Norway Poland

Step 3: Set a target and choose how to reach it

Set the desired carbon footprint per inference and choose the Carbon footprint optimization: Manual or Auto. The Results then rank the iterations against the target and against the Max memory footprint if one is set, and name the best model.

 03 Target

Step 4: Manual, you decide when to reiterate

Open an iteration with its info icon and click Reiterate. The new iteration of the same problem suggests a model that was not tried yet.

 04 Reiterate

In this news summarization example, the target is 0.000002 gCO2e. ELiRF/NASES (5.84e-06) and RUCAIBox/mvp (2.24e-06) miss it, and the third model, JordiAb/BART_news_summarizer (1.74e-06), meets it and moves to the top of the ranking.

 05 Manual ranked

Step 5: Auto, the framework reiterates for you

With Auto, the framework discards a model that misses the target or the memory limit and searches for another one on its own, up to three models per output model. With a target of 0.000003 gCO2e, it discarded ELiRF/NASES and stopped at RUCAIBox/mvp (2.24e-06 gCO2e), the first model within the target.

 06 Auto

More details are in the documentation (https://sustainml.readthedocs.io/en/latest) and in the SustainML Framework repository (https://github.com/eProsima/SustainML-Framework).

Logo ALMA

SustainML is among these nine innovative projects dedicated to creating a sustainable ML framework for Green AI.

Coordinator Office Address

Plaza de la Encina 10-11, Núcleo 4, 2ª Pl.
28760 Tres cantos - Madrid (España)

  • X
  • LinkedIn

EN-Funded_by_the_EU-POSThis project has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement No 101070408.