https://github.com/microsoft/DeepSpeed/blob/master/tests/model/Megatron_GPT2/run_checkpoint_test.py#L113-L115
The variable f is an undefined name in this context. This will raise a NameError which will be caught by the bare except and No old checkpoint will be printed. How should f be defined?