Skip to main content

OffloadEnergyScenario

Sustainability scenarios · Implementation: mlsysim/engine/scenario_definitions/sustainability.py.

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

Energy to send payload by radio against running the model locally.

Notes

Equation: Use the dimensional products, ratios, or selection rules documented on the calculated properties below.

Assumptions: A constant radio energy-per-byte coefficient prices the payload; accelerator-only and whole-device local energy remain separate comparisons.

Excludes: Radio setup, codec energy, and model-quality differences are absent unless already included in inputs.

References

Derivation: the calculated properties below state their defining arithmetic and units. They are scenario accounting or input-selection rules, not independently measured relationships.

Examples

>>> from mlsysim import Scenarios
>>> case = Scenarios.RadioUploadVsMobileNetV2
>>> str(case.transmit_energy)
'100.0 mJ'

Attributes

Name Description
accelerator_energy Workload’s registered accelerator-only inference energy. Equation: read
device_energy Energy from the local inference solver profile. Equation: local_run.result.energy.
local_run
payload
ratio_accelerator Transmission energy relative to the accelerator-only anchor. Equation: transmit_energy | | [ratio_device](#mlsysim.engine.scenario_types.OffloadEnergyScenario.ratio_device) | Transmission energy relative to modeled whole-device inference energy. Equation: | | [transmit_energy](#mlsysim.engine.scenario_types.OffloadEnergyScenario.transmit_energy) | Radio energy allocated to transmitting the payload. Equation:payload *
transmit_energy_per_byte

payload

Type: Quantity.

Declared default: required.

transmit_energy_per_byte

Type: Quantity.

Declared default: required.

local_run

Type: SingleNodeInferenceScenario.

Declared default: required.

transmit_energy

engine.scenario_types.OffloadEnergyScenario.transmit_energy

Radio energy allocated to transmitting the payload. Equation: payload * transmit_energy_per_byte. Units: mJ; radio setup and idle energy are excluded unless built into the coefficient.

accelerator_energy

engine.scenario_types.OffloadEnergyScenario.accelerator_energy

Workload’s registered accelerator-only inference energy. Equation: read local_run.workload.inference_energy. Units: energy; this anchor need not equal modeled whole-device energy.

device_energy

engine.scenario_types.OffloadEnergyScenario.device_energy

Energy from the local inference solver profile. Equation: local_run.result.energy. Units: joules; it inherits the solver’s power and duration assumptions.

ratio_accelerator

engine.scenario_types.OffloadEnergyScenario.ratio_accelerator

Transmission energy relative to the accelerator-only anchor. Equation: transmit_energy / accelerator_energy. Units: dimensionless; system boundaries differ from the whole- device comparison.

ratio_device

engine.scenario_types.OffloadEnergyScenario.ratio_device

Transmission energy relative to modeled whole-device inference energy. Equation: transmit_energy / device_energy. Units: dimensionless; codec energy is not added.

Back to top