How to log the eval metrics every `eval_steps` to a file?
I am using Trainer to train a model, and I seteval_strategy='steps'andeval_steps=1000, then I can see the metrics in the terminal:image904×872 52.1 KBMy question is, how can I log these information into a local file? Cause I’m using a remote server to run my code, when my connection is broken, all the information during the training gets lost, I can only get the final results.
2022-05-16T15:37:42Z
@sguggercould you please help me?