Logging changes tested for gpt_pretraining
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. This PR was closed because it has been inactive for 7 days since being marked as stale. Created a PR to release branch: https://github.com/NVIDIA/NeMo/pull/8354/files
# What does this PR do ?

Enables use of megatron timers in NeMo GPT pretraining and megatron_base based models.

**Collection**: collections/nlp/models/language_modeling

# Usage

```
 model.enable_megatron_timers=True
 model.megatron_timer_kwargs.log_every_n_steps= 10
 model.megatron_timer_kwargs.log_mode=minmax
 model.megatron_timer_kwargs.barrier= False 
```

```python
torchrun --nnodes=1 --nproc-per-node=8 \
    /gsw/code/NeMo/examples/nlp/language_modeling/megatron_gpt_pretraining.py  \
    --config-path=/gsw/code/NeMo/examples/nlp/language_modeling/conf \
    --config-name=megatron_gpt_config \
    trainer.devices=8 \
    trainer.num_nodes=1 \
    model.enable_megatron_timers=True \
    ++model.megatron_timer_kwargs.log_option=max \

```

# Jenkins CI
To run Jenkins, a NeMo User with write access must comment `jenkins` on the PR.

# Before your PR is "Ready for review"
**Pre checks**:
- [x] Make sure you read and followed [Contributor guidelines](https://github.com/NVIDIA/NeMo/blob/main/CONTRIBUTING.md)
- [ ] Did you write any new necessary tests?
- [ ] Did you add or update any necessary documentation?
- [ ] Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
  - [ ] Reviewer: Does the PR have correct import guards for all optional libraries?
  
**PR Type**:
- [x] New Feature
- [ ] Bugfix
- [ ] Documentation

If you haven't finished some of the above items you can still open "Draft" PR.


## Who can review?

Anyone in the community is free to review the PR once the checks have passed. 
[Contributor guidelines](https://github.com/NVIDIA/NeMo/blob/main/CONTRIBUTING.md) contains specific people who can review PRs to various areas.

# Additional Information
* Related to # (issue)
