Skip to main content

Alternates

Type Alias Alternates 

Source
pub type Alternates = HashMap<ModelRef, Arc<dyn InferBackend>>;
Expand description

Backends for models other than the job’s own, keyed by the model that names them.

Named alternates rather than backends on purpose: run_job already takes the job’s own backend, and a field called backends sitting beside a parameter called backend is a trap. Everything here is something the job reaches only by explicit instruction — an on_fail = [ reroute ... ] rung, or a Judge that names its own model.

Resolved once at daemon startup, so a model this build cannot serve fails as the daemon comes up rather than three hours into a campaign, at the exact moment something has already gone wrong.

Aliased Type§

pub struct Alternates { /* private fields */ }