Is there any way to change default model path in Callbacks?

The Learner.save() and Learner.export() methods somehow can change the model saving path by changing the Learner.path and Learner.model_dir.

Does anyone knows how to change the default model saving path in SaveModelCallback and EarlyStoppingCallback? I am using colab and the model saved by callbacks usually located in /models, is there any way to change the default path to gdrive’s folder?

Hi!

Usually, while creating the model you give it a path and everything is saved to the models path.

learn = synth_learner(n_trn=2, path="deedeldidoo/")
learn.fit(n_epoch=2, cbs=SaveModelCallback())

should create a folder called “deedeldidoo” and save your stuff in there