A WandB Water & Carbon Metering Plug-in
A wandb and codecarbon wrapper that logs on cloud the water and carbon consumption of your experiments.
Installation
pip install wandc
Usage
Basic usage
from wandc.emissions_logger import log_emissions
@log_emissions()
def your_function_to_track(project_name='your project name'):
# your code
For other useful parameters see codecarbon documentation here.
Tracking emissions of transformers trainer
from wandc.emissions_logger import log_emissions
from transformers import Trainer
class WandcTrainer(Trainer):
@log_emissions()
def train(
self,
...,
**kwargs,
):
super().train(..., **kwargs)
trainer = WandcTrainer(...)
trainer.train()
Metadata
Release files for wandc 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wandc-0.0.2.tar.gz | 6.9 kB | Details |
Release files / wandc-0.0.2.tar.gz
| Download URL | wandc-0.0.2.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78fe1fbcc2e9f9e8ed8d31c85377397a93455ff71204c58edd931e52df977ae1
|
|
BLAKE2b-256 checksum How to use checksums |
e43cee67e7aa66f2793708ce819bf7316fe181d5864b52721e5ff0827786dc66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|