Skip to main content

PowerLawScenario

Training scenarios · Implementation: mlsysim/engine/scenario_definitions/training.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

A power-law term A R^-alpha and the resource multiple that halves it.

Notes

Equation: Compose mlsysim.physics.scaling.calc_power_law_factor, mlsysim.physics.scaling.calc_halving_multiple, mlsysim.physics.scaling.calc_loss_reduction_compute_multiple.

Assumptions: The reducible term obeys a fixed positive power-law exponent; optional resource and reduction inputs must be supplied for their properties.

Excludes: Irreducible loss floors and extrapolation failure are not modeled.

References

Derivation: this scenario binds its input fields to the referenced implementation contracts: mlsysim.physics.scaling.calc_power_law_factor, mlsysim.physics.scaling.calc_halving_multiple, mlsysim.physics.scaling.calc_loss_reduction_compute_multiple. The methods below identify any additional arithmetic.

Examples

>>> from mlsysim import Scenarios
>>> case = Scenarios.KaplanTenPercentLowerLoss
>>> round(case.halving_multiple, 4)
1048576.0

Attributes

Name Description
exponent
halving_multiple Resource multiplier needed to halve the reducible power-law term. Equation:
loss_reduction
multiple_factor Remaining power-law term after increasing the resource. Equation:
multiple_reduction Fraction removed from the original power-law term. Equation: 1 - multiple_factor.
reduction_multiple Resource multiplier for the requested reduction in the power-law term. Equation:
resource_multiple

exponent

Type: float.

Declared default: required.

loss_reduction

Type: Optional[float].

Declared default: None.

resource_multiple

Type: Optional[float].

Declared default: None.

multiple_factor

engine.scenario_types.PowerLawScenario.multiple_factor

Remaining power-law term after increasing the resource. Equation: mlsysim.physics.scaling.calc_power_law_factor(resource_multiple, exponent). Units: dimensionless; the exponent and power-law regime are fixed.

multiple_reduction

engine.scenario_types.PowerLawScenario.multiple_reduction

Fraction removed from the original power-law term. Equation: 1 - multiple_factor. Units: dimensionless; any irreducible additive floor is excluded.

halving_multiple

engine.scenario_types.PowerLawScenario.halving_multiple

Resource multiplier needed to halve the reducible power-law term. Equation: mlsysim.physics.scaling.calc_halving_multiple(exponent). Units: dimensionless; requires a positive exponent.

reduction_multiple

engine.scenario_types.PowerLawScenario.reduction_multiple

Resource multiplier for the requested reduction in the power-law term. Equation: mlsysim.physics.scaling.calc_loss_reduction_compute_multiple(exponent, loss_reduction). Units: dimensionless; the reduction must remain within the helper’s valid range.

Back to top