Skip to main content

DecodeScenario

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.

One decode step of workload on hardware (weight-streaming bound).

Notes

Equation: Compose mlsysim.solvers.DecodeBoundModel.

Assumptions: The stated fields are inputs to mlsysim.solvers.DecodeBoundModel; its documented validity regime, units, and modeling choices apply unchanged.

Excludes: This scenario adds no measurement, empirical calibration, or mechanisms beyond mlsysim.solvers.DecodeBoundModel.

References

Derivation: this scenario binds its input fields to the referenced implementation contracts: mlsysim.solvers.DecodeBoundModel. The methods below identify any additional arithmetic.

Examples

>>> from mlsysim import Scenarios
>>> case = Scenarios.Llama3_70B_DecodeH100
>>> type(case.result).__name__
'DecodeBoundResult'

Attributes

Name Description
batch_size
hardware
peak_precision
precision
result Evaluate this scenario through mlsysim.solvers.DecodeBoundModel.solve. Equation:
tp_size
workload

workload

Type: Workload.

Declared default: required.

hardware

Type: HardwareNode.

Declared default: required.

precision

Type: str.

Declared default: 'fp16'.

batch_size

Type: int.

Declared default: 1.

peak_precision

Type: Optional[str].

Declared default: None.

tp_size

Type: int.

Declared default: 1.

result

engine.scenario_types.DecodeScenario.result

Evaluate this scenario through mlsysim.solvers.DecodeBoundModel.solve. Equation: pass the stated fields to that implementation; its contract defines the calculation and feasibility tests. Units: each returned field follows the referenced result schema; no independent equation is evaluated by this wrapper.

Back to top