NeMo
NeMo copied to clipboard
Added memory logger
This PR adds an env variable to be set when you want to log peak memory usage at the end of each training step. This env variable "NEMO_LOG_MEMORY_USAGE" should be set to 1 for the logging to be enabled, this prints the memory usage of rank 0 only. This env variable will be added to perf CI for NeMo.