mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-15 21:28:33 -05:00
15 lines
562 B
Python
15 lines
562 B
Python
import pytest
|
|
|
|
from mlsysim import Infrastructure
|
|
|
|
|
|
def test_facility_cooling_pue_profiles():
|
|
assert Infrastructure.FacilityCooling.Legacy.pue == pytest.approx(1.58)
|
|
assert Infrastructure.FacilityCooling.StateOfArt.pue == pytest.approx(1.10)
|
|
assert Infrastructure.FacilityCooling.SimpleAir.pue == pytest.approx(1.50)
|
|
|
|
|
|
def test_cloud_gpu_price_anchors():
|
|
assert Infrastructure.Pricing.Cloud.LowCostGpuPerHour.rate.magnitude == pytest.approx(0.50)
|
|
assert Infrastructure.Pricing.Cloud.A10GInferencePerHour.rate.magnitude == pytest.approx(0.75)
|