xnn.common.train.callbacks#
Trainer callbacks: hooks into the training loop (checkpointing, early stopping, progress bar or your own).
Every rank runs the callbacks, and the epoch metrics they see are the all-reduced, dataset-level values, so decisions agree across ranks.
Functions
|
The value of |
Classes
|
Base class of the trainer callbacks; override any of the hooks. |
|
Stops training when a monitored value stops improving, reaches a threshold, or is not finite. |
|
Saves the best model by a monitored value, the last model, and optional periodic snapshots. |
A |