PagedAllocationScenario
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 under a length cap in pool’s KV pool: full-cap reservation against paged blocks.
Notes
Equation: Result = mlsysim.solvers.PagedAllocationModel.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 PagedAllocationModel.solve; this class binds one reproducible configuration.
Excludes: Any behavior excluded by PagedAllocationModel.solve, and measurement or calibration of the supplied inputs.
References
Implementation reference: mlsysim.solvers.PagedAllocationModel.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.CappedRequestsPagedAllocation
>>> round((scenario.result.reservation).to('B').magnitude, 6)
10737418240Attributes
| Name | Description |
|---|---|
| cap | |
| large_block | |
| mean_final | |
| pool | |
| result | Return mlsysim.solvers.PagedAllocationModel.solve for this scenario; output fields retain the units and feasibility semantics specified by that solver. |
| small_block |
pool
Type: KvAdmissionScenario.
Declared default: required.
cap
Type: int.
Declared default: required.
mean_final
Type: int.
Declared default: required.
small_block
Type: int.
Declared default: required.
large_block
Type: int.
Declared default: required.
result
engine.scenario_types.PagedAllocationScenario.result
Return mlsysim.solvers.PagedAllocationModel.solve for this scenario; output fields retain the units and feasibility semantics specified by that solver.
Equation: mlsysim.solvers.PagedAllocationModel.solve (scenario fields).