How to save the best model during learning

Hello guys!
I am using fastai library for my project and I need to save the best model during training. Is there any convient way to save the best model?

when you call fit(), use the “best_save_name” argument.

e.g.
fit(…, best_save_name = “my_best_model”)

2 Likes

it works, thank you so much