Saving a Bert model

Hi, when I do the following code in google colab:

model.save_pretrained(“d:/dataset”)

it does not save anything to my local directory.

Regards

Colab is a virtual machine instance. It does not have access to your d: drive. It can only save to directories it has access to.

Define your checkpoint. The model will automatically save to the default directory it is running in. Then you can download the model from there.

1 Like

Thank you. Solved