Runtime Supervised Training #
Supervised tasks, runners, steppers, optimizer configs, trainer aliases, and the low-level session exports that back executable examples.
Stateful training steps #
Stateful training loop object: a Runner plus an optimizer state and a step counter. It packages
the model runner with the state needed to step on successive batches.
- runner : Runner α task
Underlying task runner (module + compiled forward artifacts/losses).
- stepSample : Runtime.Autograd.Torch.TList α [σ, τ] → IO α
Run a single optimization step on one supervised sample, returning the loss value.
Run an epoch over an explicit list of samples, returning the per-step loss values.
Read the total number of
stepSamplecalls performed so far.
Instances For
Construct a Stepper for a runner, optimizer config, and optional scheduler.
This is the recommended way to build custom training loops without reimplementing the optimizer
logic: call stepper, then choose stepSample for single batches or epochSamples for explicit
sample lists.
Instances For
Run one optimization step on a single supervised sample.
Instances For
Run one epoch over a list of supervised samples, returning the per-step losses.