Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnpicklingError: invalid load key, 'v'. #1

Open
OfficerChul opened this issue Nov 16, 2024 · 0 comments
Open

UnpicklingError: invalid load key, 'v'. #1

OfficerChul opened this issue Nov 16, 2024 · 0 comments

Comments

@OfficerChul
Copy link

Hi, when I load the checkpoint file using the model class, it returns the UnpicklingError.
The code for loading the model is below.

model = EmpathicSimilarityModel(model="BART", pooling="MEAN", bin=False)

checkpoint = torch.load(model_path, map_location=torch.device("cuda"))

The error looks like this.

UnpicklingError: invalid load key, 'v'.

When I searched for the error, it seems like the checkpoint file has some issues.

It would be appreciated if you let me know how to figure out this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant