Fix cfg issue for r1.5.0
Fix issues with config saving TypeError: __init__() missing 1 required positional argument: 'cfg' when trying to do model.load_from_checkpoint(XYZ)

related to https://github.com/NVIDIA/NeMo/pull/3058 and https://github.com/PyTorchLightning/pytorch-lightning/discussions/7525