0
0
Prompt Engineering / GenAIml~20 mins

Environmental impact of AI in Prompt Engineering / GenAI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AI Green Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding AI Energy Consumption
Which factor most directly increases the energy consumption of training a large AI model?
AIncreasing the number of training data samples
BUsing a simpler model architecture
CReducing the number of training epochs
DSwitching from GPU to CPU for training
Attempts:
2 left
💡 Hint
Think about what makes the computer work harder during training.
Metrics
intermediate
1:30remaining
Measuring Carbon Footprint of AI Training
If training a model uses 500 kWh of electricity and the local grid emits 0.4 kg CO2 per kWh, what is the total CO2 emission from training?
A0.8 kg CO2
B1250 kg CO2
C200 kg CO2
D500 kg CO2
Attempts:
2 left
💡 Hint
Multiply energy used by emission per unit energy.
Model Choice
advanced
2:00remaining
Choosing Models to Reduce Environmental Impact
Which model choice best reduces environmental impact while maintaining reasonable accuracy?
AA very large transformer model trained from scratch on massive data
BUsing a large model with many training epochs without early stopping
CTraining multiple large models and averaging their predictions
DA smaller pre-trained model fine-tuned on specific data
Attempts:
2 left
💡 Hint
Fine-tuning smaller models uses less energy than training large models from zero.
🔧 Debug
advanced
2:00remaining
Identifying Energy Waste in AI Training Code
What is the main issue causing unnecessary energy use in this training loop? ```python for epoch in range(100): train(model, data) if epoch % 10 == 0: evaluate(model, val_data) # No early stopping or checkpoint saving ```
ALack of early stopping causes training to continue even if performance stops improving
BThe data is not shuffled before training, causing poor model performance
CThe training loop uses too few epochs, causing inefficient learning
DThe model is evaluated too frequently, wasting energy
Attempts:
2 left
💡 Hint
Stopping training early when the model stops improving saves energy.
🧠 Conceptual
expert
2:30remaining
Evaluating Environmental Impact Trade-offs
Which strategy best balances AI model performance and environmental impact for a company deploying AI services globally?
ATrain multiple large models for each region to maximize accuracy locally
BUse smaller, optimized models deployed closer to users with edge computing
CTrain large models centrally and serve predictions globally without optimization
DContinuously retrain large models daily regardless of performance changes
Attempts:
2 left
💡 Hint
Deploying smaller models near users reduces data transfer and energy use.