Executes the orchestration order of Algorithm 1 from "Learning, Fast and Slow" without binding to a provider.
The returned context contains runtime-only prefetched data required to resume a
failed effect. Persisted training invariants remain in FastSlow.State.
FastSlow.Backend.update_slow/5 is an external weight-update handoff; this
module does not implement or verify CISPO.
Summary
Functions
Returns the digest used to bind an actual prefetched minibatch to lookahead state.
Builds a JSON-safe runtime-context checkpoint bound to the current lookahead.
Returns the digest used for exact cache matching of one problem input.
Loads and validates a runtime-context checkpoint against persisted state.
Types
@type checkpoint_fn() :: (checkpoint_snapshot() -> term())
@type checkpoint_snapshot() :: %{ state: Imp.Training.FastSlow.State.t(), runner_context: map() }
@type result() :: {:ok, Imp.Training.FastSlow.State.t(), Imp.Training.FastSlow.Runner.Context.t()} | {:error, term(), Imp.Training.FastSlow.State.t(), Imp.Training.FastSlow.Runner.Context.t()}
Functions
Returns the digest used to bind an actual prefetched minibatch to lookahead state.
@spec dump_context!( Imp.Training.FastSlow.Runner.Context.t(), Imp.Training.FastSlow.State.t() ) :: map()
Builds a JSON-safe runtime-context checkpoint bound to the current lookahead.
Returns the digest used for exact cache matching of one problem input.
@spec load_context!(map(), Imp.Training.FastSlow.State.t()) :: Imp.Training.FastSlow.Runner.Context.t()
Loads and validates a runtime-context checkpoint against persisted state.
@spec run(Imp.Training.FastSlow.State.t(), module(), term(), keyword()) :: result()