mlco2 / mlco2/codecarbon

Store tracking method to EmissionData

Open
#1,144 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
1.9k
Forks
323
Avg merge
1d 12h
Merged PRs (30d)
12

Description

Is your feature request related to a problem? Please describe.

We display tracking method:

                RAM Tracking Method: RAM power estimation model
                CPU Tracking Method: cpu_load
                GPU Tracking Method: Unspecified

See https://github.com/mlco2/codecarbon/blob/adea1aaf1cbadd7a3834ef0414634367c4989369/codecarbon/core/resource_tracker.py#L265

But we did not expose it to the interface.

Describe the solution you'd like

  • Store them in EmissionData
  • Send them to the API in the Experiment

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in codecarbon/core/resource_tracker.py at the referenced tracking-method display, then trace EmissionData and the Experiment API flow. Identify where RAM, CPU, and GPU tracking methods are available and how emission data is serialized. Done means all three methods are stored in EmissionData and sent to the API by the Experiment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.