SpeedMonitor
- class composer.callbacks.speed_monitor.SpeedMonitor(window_size: int)[source]
Bases:
composer.core.callback.RankZeroCallbackLogs the training throughput.
It logs:
A rolling average (over the
window_sizemost recent batches) of the number of samples processed per second to thethroughput/stepkey.The number of samples processed per second, averaged over an entire epoch, to the
throughput/epochkey.The total elapsed training time to the
wall_clock_trainkey.
- 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()