Training Options #
Datasets, probes, runtime flag parsing, and per-training options for the trainer API.
Supervised dataset that can be materialized at the trainer's selected scalar type.
- build {α : Type} [Context α] [Runtime.FromFloat α] : IO (Runtime.Autograd.Train.Dataset (SupervisedSample α σ τ))
Materialize the dataset at the runtime-selected scalar type.
Instances For
Runtime and optimizer settings stored with a trainer.
Instances For
Override the scalar dtype for this run configuration.
Instances For
Override the execution backend for this run configuration.
Instances For
Override the execution device using a maintained backend profile.
Instances For
Select a complete backend contract profile.
The profile carries the device, provider preference, assurance policy, VJP ownership, and capsule registry together. It can select, for example, LibTorch forward execution with a TorchLean-owned backward pass.
Instances For
Use the eager runtime backend.
Instances For
Use the proof-compiled runtime backend.
Instances For
Apply parsed runtime/device options to a persistent trainer run configuration.
Instances For
Convert a run configuration to the runtime Options record.
Instances For
CLI spelling for a Float32 runtime mode.
Instances For
CLI arguments that reproduce a dtype choice.
Instances For
CLI arguments that reproduce a backend choice.
Instances For
CLI arguments that reproduce a device choice.
Instances For
Lower this persistent run configuration to the standard runtime CLI flags.
Instances For
Build trainer options from an already parsed runtime configuration.
Instances For
Run a callback under a runtime dtype that can also be read back to host Float tensors.
Trainer methods return ordinary Float predictions for display and downstream scripts, even
when the model itself runs under an executable scalar such as IEEE32Exec. This dispatcher carries
the extra scalar-readback evidence that DType.withRuntime intentionally does not require.
Instances For
Runtime configuration carried by this trainer.
Instances For
Runtime configuration carried by this trainer.
Instances For
Runtime configuration carried by this trainer.
Instances For
Per-training-call options for the trainer API.
- steps : ℕ
Number of optimizer updates.
- batchSize : ℕ
Number of dataset items included in one optimizer update.
For an ordinary sample dataset, each item is one example. A dataset made by
Data.batchDatasetalready stores fixed-size tensor minibatches as its items; the usual vectorized path therefore keeps this option at1. Values above one accumulate gradients from several such items before updating. - scheduler : Option Scheduler.Config
Optional learning-rate schedule, indexed by completed optimizer updates.
- logEvery : ℕ
Print step losses every
logEveryupdates;0disables stdout step logging. - cudaMemWatch : ℕ
Sample CUDA allocator state every this many completed updates;
0disables sampling. - log : Training.LogDestination
Optional TrainLog artifact destination. Use
.disabledfor stdout-only runs. - title : String
Title used when writing a TrainLog artifact.
Free-form notes attached to the TrainLog artifact.
- loadParams? : Option System.FilePath
Optional exact-bits parameter checkpoint loaded before training.
- saveParams? : Option System.FilePath
Optional exact-bits parameter checkpoint written after training.
Instances For
Start training options with a fixed number of optimizer steps.
Instances For
Override stdout step logging cadence.
Instances For
Override the CUDA allocator sampling cadence.
Instances For
Override the requested minibatch size.
Instances For
Apply a learning-rate schedule during this training call.
Instances For
Run with the optimizer's fixed learning rate.
Instances For
Override the training-log destination.
Instances For
Disable TrainLog artifact writing for a training call that will write a richer custom artifact later.
Instances For
Override the training-log title.
Instances For
Override the training-log notes.
Instances For
Load an exact-bits parameter checkpoint before training.
Instances For
Save an exact-bits parameter checkpoint after training.
Instances For
Lower the public training options to the manual runtime training config.
Instances For
Convert a single-example class probe into the batched tensor probe used by trainer.train.