Note
This project is run by Vertex AI, which is only available after configuring Google Cloud environment. For other cloud provider users, please check the relevant training location services with your cloud providers.
- Set up Google Cloud account
- Initialize Vertex AI application
- Set up training environment and import libraries
- Load Electricity Map carbon intensity API
- Select a training location with lowest carbon intensity
- Method 1: Select a training location based on public carbon intensity reference page
- Method 2: Define a cleanest function to select a training location from the region list by API
- Define task.py
- Define storage bucket
- Define custom training job
- Train model
- Delete storage bucket
Quick access to notebook: Real_Time_Energy_Data_Low_Carbon_Training.ipynb
- Amount of carbon used in machine learning workload = Carbon intensity * Amount of Energy used in machine learning workload
- Hardware
- CPU, GPU, data center
- Training
- Pre-training, fine-tuning
- Inference
- Serve and interact with users in real time
- Compute in low carbon regions which have renewable energy sources (refer to notebook)
- Factors to be considered when selecting low carbon training locations
- Cost
- Security
- Performance latency
- Factors to be considered when selecting low carbon training locations
- Compute in the time with most renewable energy generated
- Choose cloud provider with low power usage effectiveness (PUE)/ internal energy consumption of data center
- e.g. Google has multiple data centers around the world showing Carbon Free Energy Percentage (CFE%) for user references
- Choose efficient hardware such as GPU and TPU
- Compute with special purposes through model pretraining/ model resizing
- Carbon intensity and power breakdown request of a training location in one step
- Electricity Map global carbon intensity: Global carbon intensity (real time)
- Electricity Map API portal: Free personal tier API
- Google Cloud region picker: Region picker
- Google Cloud global carbon intensity: Global carbon intensity (by batch)
- Google Cloud Vertex AI services: Vertex AI
- Alternative of energy data API: WattTime Data API (V3)
- Power_Hungry_Processing_Watts_Driving_the_Cost_of_AI_Deployment.pdf
- Measuring_the_Carbon_Intensity_of_AI_in_Cloud_Instances.pdf
- Making_AI_Less_Thirsty_Uncovering_and_Addressing_the_Secret_Water_Footprint_of AI_Models.pdf