Error with pretrained model: 'dict' object has no attribute 'to_json_string'

Simply trying to get the SetFit quickstart running:

All is well:

until I train:

Then boom


Perhaps related to this issue:

I just need a workaround/hack if anyone has one. Thank you

To rule out any issues I might be having caused by installed libraries, I tried this again with a preconfigured Paperspace Gradient notebook (setfit/notebooks at main · huggingface/setfit · GitHub).

I got the exact same error during training however

Hey, works on Collab :slight_smile: