"Cannot deserialize model" error when loading retrained transformer model

Hi, I first trained a transformer model with the following, which successfully finished training.

prodigy train prodigy/model/model_100_fulltext --ner train_set_full_text --base-model en_core_web_trf --eval-split 0.2

When I load the retrained model, I got the following error.

My spacy version is 3.1.3. prodigy version is 1.11.4.

Hi, I think this is the same issue as a known bug related to spacy-transformers: PyTorchWrapper causes error on deserializing · Issue #8319 · explosion/spaCy · GitHub

We're working on a fix in spacy-transformers. If you are very adventurous, you can try out the current dev version: pip install spacy-transformers==1.1.0.dev3. We should be pretty close to the final release, but want to do a bit more testing first. If you do try it out, let us know how it goes!