TorchLean Trainer Runtime Options #
Datasets, probes, runtime flag parsing, and per-training options for the public trainer facade.
Runtime-polymorphic supervised dataset used by public trainer objects.
- build {α : Type} [Runtime.SemanticScalar α] [Runtime.Scalar α] : IO (Training.Dataset (SupervisedSample α σ τ))
Materialize the dataset at the runtime-selected scalar type.
Instances For
Persistent runtime/training settings attached to a public trainer handle.
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 for this run configuration.
Instances For
Override CUDA matmul precision for fast kernels.
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
Lower a public run configuration to the runtime Options record.
Instances For
CLI spelling for a Float32 runtime mode.
Instances For
CLI arguments that reproduce a public dtype choice.
Instances For
CLI arguments that reproduce a public backend choice.
Instances For
CLI arguments that reproduce a public device choice.
Instances For
CLI arguments that reproduce the CUDA matmul precision setting.
Instances For
Lower this persistent run configuration to the standard runtime CLI flags.
Instances For
Build unified trainer construction options from an already parsed runtime configuration.
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 public trainer facade.
- steps : ℕ
Number of optimizer updates.
- batchSize : ℕ
Requested minibatch size for public training calls.
Fixed-shape model-zoo trainers may already carry their batch axis in the model type. This field is still part of the public API so ordinary scripts can write the same record shape across simple tensor datasets, loader-backed examples, and future batched trainer paths.
- logEvery : ℕ
Print step losses every
logEveryupdates;0disables stdout step logging. - 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 requested minibatch size.
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 advanced runtime training config.
Instances For
Convert a single-example class probe into the batched tensor probe used by trainer.train.