You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Breaking: train asks for Agentica 0.40.0 (ml#302).
train keeps its modules in src/; pkg/train/NAME imports are unchanged (ml#302).
Loop.checkpoint(dir, every:, keep:) writes the weights, the optimizer state and the position of a run to a new folder, whole or not at all, and keeps the last few; Loop.checkpoints and Loop.read_checkpoint read them, and Loop.Info carries the state and the seed (ml#402).
Loop.resume(trainer, dir) goes on from the last checkpoint of dir, at its epoch and batch, with the same shuffle; Train.fit and Train.fit_batches take skip: for it (ml#402).
A run emits telemetry events for handlers that an app attaches: train.step (loss, learning rate, step), train.epoch (mean loss) and train.metric (each Loop.metric value), with the run name from the new run argument of Train.fit, Train.fit_batches and Loop.trainer; train depends on the telemetry package (ml#400).
Optim.save and Optim.load write and read the step count and the moments of an optimizer state, Train.fit and fit_batches take a start state that the schedule goes on from, and Train.Epoch and StepInfo carry the run's state (ml#402).
Loop.handle(event, f, every:) calls a function at Started, StepCompleted or EpochCompleted, and Loop.stop(info) ends a run early with its Fit, and Train.fit takes an optional on_step. Breaking:on_epoch and on_step answer a Result[Train.Control] (Continue, Stop or an error), and a failed metric stops the run at the end of its epoch (ml#397).
Loop.trainer and Loop.run (Loop.run_batches for a batch function) run a training as a pipe over Train.fit, and Optim.sgd, Optim.adam and Optim.adamw are short optimizer constructors (ml#397).
Loop.metric measures a Loop.Metric at the end of every epoch into Fit.metrics; Loop.mean and Loop.spearman reduce its rows, and Train.Epoch carries the epoch's params; finetune_stsb.agc moves to Loop.spearman in a later step (ml#397).
Table.read(path) reads a CSV file (the csv package) into named columns, and Data.from_table(table, inputs, target, backend, target_dtype) makes a Dataset of its numeric columns for a Loader (ml#318).
Table.read reads a .parquet file too (the parquet package), and Data.from_table makes a Dataset of its columns (ml#318).
A Parquet column with a NaN or an infinity is an error that names the column and the row, as a CSV cell that is not finite keeps its column text; train/examples/ has a CSV and a Parquet example with goldens, and train/data.md the text-column path with Train.fit_batches (ml#318).
Breaking: train, transformers, vision and tools/skills ask for Agentica 0.40.0-beta.2 (the parquet package needs it); CI already ran on it (ml#318).
Table.read reads a CSV or Parquet file over 1 MiB, in chunks (ml#378).