Skip to content

Resources to calculate how to become a carbon neutral lab.

License

Notifications You must be signed in to change notification settings

TimDettmers/carbonneutral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carbon Neutral Calculator for Academic Labs

This calculator estimates your carbon footprint by looking at the two largest factors: (1) flights, (2) GPU computing. It adds a multiplicative factor on top of this for other emissions (default 20%). This repository is inspired by the NYU ML^2 Lab going carbon neutral.

How to Use This Carbon Free Calculator

  1. First install the requirements: pip install -r requirements.txt
  2. Create a txt file that lists all the publications in your lab in the format: PAPER COUNT, CONFERENCE NAME. Look at xlab.txt for a valid example.
  3. Add missing conferences and their location to conferences.txt
  4. Call the script to calculate your carbon footprint (see below for details).
  5. If there were missing conferences that you needed to add, please consider submitting a pull request so that the next person doing this does not have to add the conferences.

Script parameters

  • hq, default='Seattle', type=str, help='The city name where your lab is based. This is for travel to conferences.')
  • pubs, default='./xlab.txt', type=str, help='The text file which contains the list of conferences.')
  • avg_people_per_conference, default=2.0, type=float, help='How many people do on average travelt to conferences.')
  • num_gpus, default=10, type=int, help='The number of GPUs in the lab.')
  • avg_gpu_watt, default=250, type=int, help='The average wattage of all GPUs in the lab')
  • avg_gpu_util, default=0.75, type=float, help='The average utilization of all GPUs in the lab')
  • other_emissions_fraction, type=float, default=0.2, help='This is the fraction of all other emissions of your lab that are not from GPUs or conferences. This can be food, paper for printing, and others. The default value of 0.2 is quite conservative.')

Since Seattle's electricity is carbon neutral, the xlab only source of emission is from conferences + others. Thus we call the script like this in our case:

python calc.py --hq Seattle --pubs xlab.txt --num_gpus 0
>>> Your lab emitted 54.92 tons of CO2 equivalent for your conferences travels.
>>> Your lab emitted 0.00 tons of CO2 equivalent by using GPUs
>>> If GPU and conference emissions make up 80.0% of your carbon footprint
>>> then the lab emitted a total of 65.91 tons of CO2 equivalent.


What to Offset The Calculated Emissions?

  1. Register with the UN Carbon offset platform.
  2. Choose a specific project which you want to buy carbon offsets from.
  3. Specify the amount produced by this calculator.
  4. Congratulations — your lab is now carbon neutral!

About

Resources to calculate how to become a carbon neutral lab.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages