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

Unfair emission comparison due to different Country. Is it possible to ask for a specific country? Colab #388

Open
NicolaCST opened this issue Apr 9, 2023 · 4 comments · May be fixed by #316

Comments

@NicolaCST
Copy link

  • CodeCarbon version: latest
  • Python version: latest
  • Operating System: Colab

Hi all,
I am trying to track the emissions of some models. However it happens that the report ends up having different Country_ISO_Code, ie. different countries. Could this issue make my report less reliable? A model in SGP (Singapore) tends to have an higher value than a similar one in NLD (Netherlands), for example.

There are any ways to ask for a specific country? Otherwise my comparison would not be fair.

Thanks in advance

@benoit-cty
Copy link
Contributor

That's what Code Carbon is made for : compare different places.
I don't know how to fix the country in Colab, but you could use the kWh measure as a comparison for model consumption.

@benoit-cty
Copy link
Contributor

You could get it with:

co2_emission_in_kg = tracker.stop()
energy_in_kwh = tracker.final_emissions_data.energy_consumed

@RafiullahOmar
Copy link
Contributor

If Code Carbon works for Colab, then it also works in a multi-user environment. For example, I have created a virtual machine on a server and when I measure the energy consumption of a model training, other people also log in to their user on the same server. Does it affect my measurement?

@benoit-cty
Copy link
Contributor

Hello, if the hardware is shared across users, yes the electric consumption of other users will be use for your emissions.

That's why we are working on #316 that allow to set tracking_mode to process and monitor only the emissions of your process.

You can test it, it should work.

@inimaz inimaz linked a pull request Aug 23, 2023 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants