test_flops
ipw.tests.compute.test_flops
¶
Tests for compute/flops.py — FLOPs estimation.
TestNormalizeModelName
¶
Test normalize_model_name with various input formats.
Source code in intelligence-per-watt/src/ipw/tests/compute/test_flops.py
TestLookupParams
¶
Test lookup_params for known models.
Source code in intelligence-per-watt/src/ipw/tests/compute/test_flops.py
TestEstimateFlopssFallback
¶
Test the 2PT fallback formula.
Source code in intelligence-per-watt/src/ipw/tests/compute/test_flops.py
TestEstimateFlops
¶
Test the main estimate_flops function.
Source code in intelligence-per-watt/src/ipw/tests/compute/test_flops.py
TestModelParams
¶
Test MODEL_PARAMS dictionary.