Closed turmeric-blend closed 3 years ago
did you download the pre-trained and fine-tuned weights folder?
I got the same error. And I downloaded the pre-trained and fine-tuned weights folder.
I believe the error is related to the library version. The notebook was developed using pytorch-pretrained-bert==0.6.2. BTW, the model is now integrated with transformers. give it a try using the transformers interface.
when running
model.load_state_dict(torch.load(fine_tuned_weight_path, map_location=device))
fromFinBert Model Example.ipynb
from my local machine, I ran into this error: