I have a BertModel (bert-base-uncased) trained with transformers==2.1.1 (using PyTorch v1.3)
However, we want to move to transformers v3. I was wondering if it would be possible to load the model weights of that model into transformers v3. Otherwise, we would have to re-train the language model and we want to avoid doing that.
Thanks, I figured what the issue was. We were pickling our models.
I had to load the model and write it out to a directory using bert_model.save_pretrained(save_dir) and then load it in v3 using BertModel.from_pretrained(save_dir)