Saving model per some step when using Trainer

This is explained in the documentation.

You can change the argument “save_steps”, which defaults to 500.