Course contentsShow
← Machine Learning and Deep Learning
Lesson 3472 of 3,53876. Ethics and Societal ImpactFree lesson

Carbon-Aware Training and Scheduling

Learn to schedule training jobs based on grid carbon intensity and renewable energy availability.

Carbon-Aware Training and Scheduling

You'll learn how to strategically schedule ML training jobs to minimize carbon emissions by leveraging real-time grid data and renewable energy patterns.

The Core Idea

Not all electricity is created equal. The carbon intensity of your power grid varies dramatically throughout the day based on which energy sources are active—solar during sunny afternoons, wind when it's breezy, coal or gas during peak demand. Carbon-aware scheduling means timing your model training to run when the grid is cleanest.

Think of it like charging your phone: you could plug it in anytime, or you could wait until midday when solar panels are producing abundant clean energy. For multi-day training runs consuming thousands of GPU-hours, this timing choice can reduce carbon emissions by 30-80%.

How It Works in Practice

Grid Carbon Intensity APIs (like ElectricityMap, WattTime, or Carbon Intensity API) provide real-time and forecasted data about grams of CO₂ per kilowatt-hour for specific regions. Your training orchestrator can:

  1. Query current and forecasted carbon intensity
  2. Pause non-urgent training during high-carbon periods (typically 6-9 PM when demand peaks)
  3. Resume automatically when renewable energy is abundant (often 10 AM - 3 PM with solar)
  4. Migrate workloads across data centers in different time zones to "chase the sun"

For urgent deadlines, you might accept higher emissions. For batch jobs, hyperparameter sweeps, or overnight runs, flexible scheduling costs nothing but saves substantial carbon.

Some cloud providers now offer carbon-aware VM scheduling built into their platforms, automatically shifting workloads geographically and temporally based on renewable availability.

Key Takeaway: By scheduling training during low-carbon-intensity periods using grid data APIs, you can reduce emissions by 30-80% with minimal code changes—treating energy source as an optimization variable alongside cost and speed.