microsoft / nlp-recipes

Natural Language Processing Best Practices & Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] save optimizer and amp state into checkpoint

daden-ms opened this issue · comments

Description

Currently, in the common.py for transformer models, a checkpoint only saves model state and the optimizer and amp state info is not saved. We can consider saving this info like in
https://github.com/NVIDIA/apex#checkpointing

Expected behavior with the suggested feature

Other Comments