Skip to main content

AllocationAxesScenario

Agents scenarios · Implementation: mlsysim/engine/scenario_definitions/agents.py.

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

One output ceiling spent as one chain, candidates streams, or rounds of feedback.

Notes

Equation: result = AllocationAxesModel.solve(…) with the declared floors, prompt, ceiling inputs.

Assumptions: The inputs instantiate the assumptions documented by mlsysim.solvers.AllocationAxesModel.solve; accessing result evaluates that solver again.

Excludes: Any extra mechanism beyond AllocationAxesModel; this record supplies configuration and does not collect performance measurements.

References

Derivation: This configuration forwards its stored inputs to mlsysim.solvers.AllocationAxesModel.solve. The solver contract records the equations and their provenance.

Examples

The named scenario supplies illustrative inputs; the output is calculated.

>>> from mlsysim import Scenarios
>>> case = Scenarios.OutputCeilingThreeAllocations
>>> round(float(case.result.token_time.to('s').magnitude), 3)
0.021

Attributes

Name Description
candidate_tokens
candidates
ceiling
check_time
context_growth
floors
input_price
output_price
prompt
report_tokens
result Modeled result from mlsysim.solvers.AllocationAxesModel.solve using this
rounds

floors

Type: DecodeScenario.

Declared default: required.

prompt

Type: int.

Declared default: required.

ceiling

Type: int.

Declared default: required.

candidates

Type: int.

Declared default: required.

candidate_tokens

Type: int.

Declared default: required.

rounds

Type: int.

Declared default: required.

report_tokens

Type: int.

Declared default: required.

check_time

Type: Quantity.

Declared default: required.

input_price

Type: Quantity.

Declared default: required.

output_price

Type: Quantity.

Declared default: required.

context_growth

Type: Optional[int].

Declared default: None.

result

engine.scenario_types.AllocationAxesScenario.result

Modeled result from mlsysim.solvers.AllocationAxesModel.solve using this scenario’s declared inputs; see that method for units, limits, and feasibility.

Equation: Delegates the declared fields to mlsysim.solvers.AllocationAxesModel.solve; returned quantities and feasibility follow that contract.

Back to top