Skip to main content

KvBlockSharingScenario

Serving scenarios · Implementation: mlsysim/engine/scenario_definitions/serving.py.

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

Requests with an output allowance in whole blocks, with and without a shared prefix, as a turn rate.

Notes

Equation: Result = mlsysim.solvers.KvBlockSharingModel.solve with the named scenario fields; no extra fitting or postprocessing is applied.

Assumptions: The supplied inputs use the units and validity regime documented by KvBlockSharingModel.solve; this class binds one reproducible configuration.

Excludes: Any behavior excluded by KvBlockSharingModel.solve, and measurement or calibration of the supplied inputs.

References

Implementation reference: mlsysim.solvers.KvBlockSharingModel.solve documents the composed equation and its sources.

Examples

The named registry scenario supplies the stated inputs; this is a modeled calculation, not a new measurement.

>>> from mlsysim import Scenarios
>>> scenario = Scenarios.RepairBlockSharingResidency
>>> round((scenario.result.block_bytes).to('B').magnitude, 6)
5242880

Attributes

Name Description
block_tokens
common
context
generation
headroom
output
pool
result Return mlsysim.solvers.KvBlockSharingModel.solve for this scenario; output fields retain the units and feasibility semantics specified by that solver.
wait

pool

Type: KvAdmissionScenario.

Declared default: required.

headroom

Type: float.

Declared default: required.

context

Type: int.

Declared default: required.

output

Type: int.

Declared default: required.

common

Type: int.

Declared default: required.

block_tokens

Type: int.

Declared default: required.

generation

Type: Quantity.

Declared default: required.

wait

Type: Quantity.

Declared default: required.

result

engine.scenario_types.KvBlockSharingScenario.result

Return mlsysim.solvers.KvBlockSharingModel.solve for this scenario; output fields retain the units and feasibility semantics specified by that solver.

Equation: mlsysim.solvers.KvBlockSharingModel.solve (scenario fields).

Back to top