SpeedMonitor
- class composer.callbacks.speed_monitor.SpeedMonitor(window_size: int)[source]
Bases:
composer.core.callback.RankZeroCallback
Logs the training throughput.
It logs:
A rolling average (over the
window_size
most recent batches) of the number of samples processed per second to thethroughput/step
key.The number of samples processed per second, averaged over an entire epoch, to the
throughput/epoch
key.The total elapsed training time to the
wall_clock_train
key.
- Parameters
window_size (int) – Number of batchs to use for a rolling average of throughput.
- load_state_dict(state: composer.core.types.StateDict) None [source]
Restores the state of the object.
- Parameters
state (StateDict) – The state of the object, as previously returned by
state_dict()