You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running model.load_state_dict(torch.load(fine_tuned_weight_path, map_location=device)) from FinBert Model Example.ipynb from my local machine, I ran into this error:
RuntimeError: Error(s) in loading state_dict for BertClassification:
Missing key(s) in state_dict: "bert.embeddings.position_ids".
The text was updated successfully, but these errors were encountered:
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:The text was updated successfully, but these errors were encountered: