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

vocab size #56

Closed
ziqi92 opened this issue May 5, 2020 · 2 comments
Closed

vocab size #56

ziqi92 opened this issue May 5, 2020 · 2 comments

Comments

@ziqi92
Copy link

ziqi92 commented May 5, 2020

Hi,
I want to run the sample file on the provided model under the fast_molvae directory. But I found that the size of vocabulary in the mose directory may not match with the provided model. And I got the error below. The size of the learned embedding in the mode is 800 which indicates that that model is built on a vocab of size 800.

I'm not sure whether the problem is because of vocabulary, but if it is, can you provide that vocab file?

Thanks.

le.py\", line 845, in load_state_dict
    self.__class__.__name__, \"\n\t\".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for JTNNVAE:
        size mismatch for jtnn.embedding.weight: copying a param with shape torch.Size([531, 450]) from checkpoint, the shape in current model is torch.Size([800, 450]).
        size mismatch for decoder.embedding.weight: copying a param with shape torch.Size([531, 450]) from checkpoint, the shape in current model is torch.Size([800, 450]).
        size mismatch for decoder.W_o.bias: copying a param with shape torch.Size([531]) from checkpoint, the shape in current model is torch.Size([800]).
        size mismatch for decoder.W_o.weight: copying a param with shape torch.Size([531, 450]) from checkpoint, the shape in current model is torch.Size([800, 450]).
@wengong-jin
Copy link
Owner

@ziqi92
Copy link
Author

ziqi92 commented Jul 24, 2020

Thanks for your reply!

@ziqi92 ziqi92 closed this as completed Jul 24, 2020
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

2 participants