MCPcopy Create free account
hub / github.com/mlco2/codecarbon / transformers_smollm2.py

File transformers_smollm2.py

examples/transformers_smollm2.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2This example demonstrates how to use the CodeCarbon library to track the carbon emissions of a transformer model.
3
4We will use the model from https://huggingface.co/HuggingFaceTB/SmolLM2-360M-Instruct

Callers

nothing calls this directly

Calls 4

EmissionsTrackerClass · 0.90
print_gpu_usageFunction · 0.85
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected