~/talk

Track your code's CO2 emissions with Code Carbon

Talkat PyData Paris 2024 · 2024-09-25..09-26· [web-performance, machine-learning]
links:none on file
links:none on file
slides:none on file

CodeCarbon is an open source Python package that measures CPU GPU and RAM energy use and multiplies it by regional carbon intensity (via CO2 Signal / electricity maps), offers a CLI plus a Python decorator, writes CSV or logs or sends runs to a password‑protected dashboard, and requires platform power tools (powermetrics/sudo). Demo runs a small LLM (Gemma 2B), shows download+inference emissions are tiny but training is large, and one example compares ~0.11 kg CO2 in France to ~0.4 kg in India (~3×).

AI-written summary · about

  1. 0:00Code Carbon introduction
  2. 1:10Why track code CO2 emissions
  3. 5:53What is Code Carbon
  4. 8:32Code Carbon CLI basics
  5. 11:03Code Carbon in Python
  6. 14:46Emissions by region
  7. 20:52Dashboard and privacy
  8. 22:19Reducing code footprint
  9. 24:46Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.