Green-Software-Foundation / Green-Software-Foundation/hack

Create a model plugin to calculate the energy and carbon consumed during AI model training

Open
#76 5 comments 0 reactions 1 assignee Claimed by @sann3 View on GitHub
content-project registered submitted
Dominant language
No language data
Stars
16
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Prize category

Best Plugin

### Overview

Basically it is a one implementation for the problem statement
https://github.com/Green-Software-Foundation/hack/discussions/33

I am thinking to implement this using https://mlco2.github.io/impact/. We can get the inputs Hardware type, Hours Used, Provider, Region of Compute and return the raw carbon emissions produced and the approximate offset carbon emissions. I know the data is outdated, but in future if we get a updated source we can use it.

If we need more accurate results then we can also integrate with paid services like https://www.climatiq.io/

### Questions to be answered

_No response_

### Have you got a project team yet?

I am working on this project alone

### Project team

_No response_

### Terms of Participation

- [X] I agree to the hackathon [Rules & Terms](https://github.com/Green-Software-Foundation/hack/wiki/Rules-and-Terms) and [Code of Conduct](https://github.com/Green-Software-Foundation/hack/wiki/Code-of-Conduct)

## Project Submission
### Summary

Count the amount of carbon used for creating an AI model using Impact framework and display in Hugging face
### Problem

Creating models needs a lot of resources so becoming one of the big carbon emission processes, sustainability is not integrated into AI development.

### Application

Hugging Face serves as the GitHub for datasets and models. However, the process of creating models requires significant resources, contributing to substantial carbon emissions. Currently, benchmarks are used to compare models, but I foresee a future where creators also present carbon usage as a metric when introducing new models.

To achieve this, I developed an application using existing plugins within Impct framework. In the future, plugin creators will simply need to add five configurations to the config.json file during model upload, enabling Hugging Face to automatically display carbon usage.
### Prize category

Best Content
### Judging Criteria

This solution aligns with our goal of integrating sustainability into AI development, ensuring that environmental impact is considered alongside technological advancements.
### Video

https://youtu.be/ZoPPBWSqf7Y
### Artefacts

https://github.com/sann3/AI-Carbon-Counter
### Usage

https://github.com/sann3/AI-Carbon-Counter/blob/main/README.md
### Process

Initially I have started as a plugin development, and after understanding the IF eco system realized that we don't need a new plugin, it can be achieved by chaining the existing plugins.
### Inspiration

I like sustainability, and introducing it in my day to day life. I want sustainability implemented in the AI ecosystem.
### Learnings

Learned how to develop a plugin and application using Impact framework
### What's next?

If the Impact framework is integrated into Hugging face ecosystem then we can show carbon impact in many areas like model creation, model inference, dataset creation etc..,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.