Cascade¶
Guide: the cascade.
Cascade ¶
Cascade(
tiers: Sequence = ("0.8b", "4b"),
floor: float = 0.75,
max_set: int = 1,
mode: str = "engine",
alpha: str = "0.1",
device: Optional[str] = None,
load_fn=None,
)
Checkpoints in cost order, each answering only what the ones before could not settle.
tiers names the checkpoints smallest first, by the same names :func:vegaml.load
takes; already-loaded models can be passed in place of names. floor and max_set
set what "settled" means (see :func:unsettled). mode defaults to "engine", the
calibrated readout the escalation rule is built on.
decide ¶
Answer every question at the cheapest tier that settles it.
The result has :meth:vegaml.Vega.decide's shape, with three additions: each answer
carries tier, escalated lists the question ids the first tier could not settle,
and unsettled lists the ids the last tier could not settle either.
unsettled ¶
Whether one answer is too uncertain to be final, by the engine's own flags.
Works on a single entry of result["answers"]. Missing fields count as settled, so a
TTT-head answer, which carries no conformal set and no abstain flag, is never escalated on
machinery it does not have.