Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work with CodeCarbon ? #6

Open
benoit-cty opened this issue Oct 23, 2023 · 3 comments
Open

Work with CodeCarbon ? #6

benoit-cty opened this issue Oct 23, 2023 · 3 comments
Labels
question Further information is requested

Comments

@benoit-cty
Copy link

Hello,
Thanks for your tool !
I'm a member of CodeCarbon, do you thing we could work together to allow you tool use CodeCarbon as we already face the same problem you have ?
But I don't know if a plugin coud be in Python as our package is in Pyhon ?

PS : CodeCarbon team is also mostly based in France and I discover your tool in Jean Zay Notebook.

@mahendrapaipuri mahendrapaipuri added the question Further information is requested label Oct 23, 2023
@mahendrapaipuri
Copy link
Owner

Hello @benoit-cty, thanks for the issue.

Sure, I would be open to collaborate. What do you have in mind exactly? You would like to explore how to integrate CodeCarbon with this extension?

@benoit-cty
Copy link
Author

For example we have :

  • a worldwide database of carbon intensity
  • Fallback to guess power if RAPL is not available
  • Handle SLURM allocation
    So it could save you time but I don't know if integration is possible, and maybe you want to keep it simple.

@mahendrapaipuri
Copy link
Owner

Currently the server side extension exposes the RAPL power metrics and emissions are estimated in the browser. This is due to the fact that APIs to get emission factors are normally rate limited and so it is more logical to make those requests from user's browsers rather than servers.

I see a clear value on what you are proposing but I have following questions:

a worldwide database of carbon intensity

We can use this DB as a fallback for other countries. Currently we are using "real time" emission factor for France from RTE eCO2 mix data. Is it DB free and open source? Is it bundled along with CodeCarbon Python package?

Fallback to guess power if RAPL is not available

This would be indeed very useful as current extension works well only on bare-metals. We can still make it work in containers running on bare-metal but it is very complicated to make it work on VMs. Is it "guestimate" power exposed via CodeCarbon API? Something like:

from codecarbon import get_current_power_usage

print(get_current_power_usage())

Would an abstract API like above gives us current power consumption?

Handle SLURM allocation

This is unclear for me. Currently the extension can report metrics at process, user and system scope. So, if we want to get emissions from SLURM job, we can use user scope metrics inside that SLURM job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants