composer.callbacks#

Callbacks that run at each training loop Event.

Each callback inherits from the Callback base class. See detailed description and examples for writing your own callbacks at the Callback base class.

Classes

CheckpointSaver

Callback to save checkpoints.

EarlyStopper

Track a metric and halt training if it does not improve within a given interval.

ExportForInferenceCallback

Callback to export model for inference.

HealthChecker

Checks for GPU health.

ImageVisualizer

Logs image inputs and optionally outputs.

LRMonitor

Logs the learning rate.

MLPerfCallback

Create compliant results file for MLPerf Training benchmark.

MemoryMonitor

Logs the memory usage of the model.

OptimizerMonitor

Computes and logs the L2 norm of gradients as well as any optimizer-specific metrics implemented in the optimizer's report_per_parameter_metrics method.

RuntimeEstimator

Estimates total training time.

SpeedMonitor

Logs the training throughput and utilization.

ThresholdStopper

Halt training when a metric value reaches a certain threshold.