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

Runtime error found #2

Open
IgoiuS opened this issue Apr 1, 2024 · 0 comments
Open

Runtime error found #2

IgoiuS opened this issue Apr 1, 2024 · 0 comments

Comments

@IgoiuS
Copy link

IgoiuS commented Apr 1, 2024

Tried to run the 'example_search_library.py' code but got this error:

RuntimeError: Error(s) in loading state_dict for ChemClipModel:
Unexpected key(s) in state_dict: "smiles_model.smiles_model.embeddings.position_ids", "smiles_model.model.embeddings.position_ids".
size mismatch for smiles_model.smiles_model.embeddings.word_embeddings.weight: copying a param with shape torch.Size([181, 768]) from checkpoint, the shape in current model is torch.Size([30522, 768]).
size mismatch for smiles_model.model.embeddings.word_embeddings.weight: copying a param with shape torch.Size([181, 768]) from checkpoint, the shape in current model is torch.Size([30522, 768]).

I couldn't fix it so I'd like to know what should I change to make it run.

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