solvers.SustainabilityModel
solvers.SustainabilityModel()Calculates Datacenter-scale Sustainability metrics.
Handles Power Usage Effectiveness (PUE), Carbon Intensity, and Water Usage Effectiveness (WUE) across different regional grids. This model simulates the ‘Infrastructure Tax’ — the energy spent on cooling and power delivery rather than on neural computation.
Literature Source: 1. Patterson et al. (2021), “Carbon Emissions and Large Neural Network Training.” 2. Belkhir & Elmeligi (2018), “Assessing ICT Global Emissions Footprint.” 3. Wu et al. (2022), “Sustainable AI: Environmental Implications, Challenges and Opportunities.”
Formula contract: - per-device power = idle_fraction * TDP + dynamic_fraction * TDP * MFU. - IT energy = device power * accelerator count * duration. - facility energy applies PUE; operational carbon applies grid carbon intensity to facility energy; water applies on-site WUE to IT energy.
Methods
| Name | Description |
|---|---|
| solve | Calculate energy, carbon, and water footprint for a fleet operation. |
solve
solvers.SustainabilityModel.solve(
fleet,
duration_days,
datacenter=None,
mfu=1.0,
embodied_carbon_per_device=0.0,
)Calculate energy, carbon, and water footprint for a fleet operation.
Implements the formula contract in the class docstring: per-device power is an energy-proportionality model (idle_fraction * TDP + dynamic_fraction * TDP * MFU), scaled to the fleet, integrated over the duration, then taxed by PUE for facility energy. Operational carbon applies the regional grid’s carbon intensity to facility (post-PUE) energy, whereas water applies on-site WUE (L / kWh_IT) to pre-PUE IT equipment energy.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| fleet | Fleet | The cluster; supplies accelerator count, per-device TDP, and the default datacenter/region when datacenter is not given. |
required |
| duration_days | float | Operation duration in days. | required |
| datacenter | Datacenter | Override for the fleet’s datacenter (or a bare GridProfile); supplies PUE, carbon intensity, and WUE. Falls back to the fleet region and finally to the US average grid. | None |
| mfu | float | Model FLOPs Utilization in [0, 1]; drives the dynamic-power term. | 1.0 |
| embodied_carbon_per_device | float | Manufacturing/shipping carbon per accelerator in kg CO2e (default 0 = operational carbon only). | 0.0 |
Returns
| Name | Type | Description |
|---|---|---|
| SustainabilityResult | IT and facility energy (kWh), total carbon (kg CO2e, operational plus embodied), water usage (liters), and the PUE applied. |
Notes
Equation: P = TDP * (idle_fraction + dynamic_fraction * MFU); E_IT = P * devices * duration; E_facility = PUE * E_IT. Carbon is E_facility * grid intensity plus the full supplied embodied amount. Water is E_IT * WUE (The Green Grid standard: liters per kWh of IT equipment energy, matching WaterUseModel).
Assumptions: Constant utilization, PUE, and regional intensities over the run. Embodied carbon is charged fully rather than amortized. Excludes: Measured power traces, host power beyond the assumed accelerator-based account, off-site source-electricity water (EWIF), and lifetime allocation of embodied carbon.
References
Derivation: Integrate the assumed idle-plus-utilization power over the fleet duration, apply PUE to facility electricity/carbon, and multiply IT energy by the regional on-site WUE (L / kWh_IT).
Examples
>>> from mlsysim import Q_, Systems
>>> result = SustainabilityModel().solve(Systems.Clusters.Research_256, duration_days=1)
>>> result.total_energy_kwh >= result.it_energy_kwh
True