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
Whenever I try to load the previously saved model encountered the following error:
RuntimeError: Error(s) in loading state_dict for TextClassifier:
Unexpected key(s) in state_dict: "embeddings.embeddings.list_embedding_0.list_embedding_0.model.embeddings.position_ids", "embeddings.embeddings.list_embedding_0.list_embedding_1.model.embeddings.position_ids".
How to solve the issue?
The text was updated successfully, but these errors were encountered:
So far I understand, the reason for getting this error is that I saved the model using flair 0.12. Later I tried to load the model using the updated flair version 0.12.2. To resolve this issue, I've installed Flair version 0.12 instead of the latest one.
Question
Whenever I try to load the previously saved model encountered the following error:
How to solve the issue?
The text was updated successfully, but these errors were encountered: