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

checkpoints don't match model #5

Open
LilianDenzler opened this issue Aug 5, 2024 · 0 comments
Open

checkpoints don't match model #5

LilianDenzler opened this issue Aug 5, 2024 · 0 comments

Comments

@LilianDenzler
Copy link

LilianDenzler commented Aug 5, 2024

The error I previously had:
RuntimeError: Error(s) in loading state_dict for TrEGNN:
size mismatch for backbone_block.transformer.encoders.0.mha_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for backbone_block.transformer.encoders.0.mha_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for backbone_block.transformer.encoders.0.ffn_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for backbone_block.transformer.encoders.0.ffn_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for backbone_block.transformer.encoders.1.mha_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for backbone_block.transformer.encoders.1.mha_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for backbone_block.transformer.encoders.1.ffn_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for backbone_block.transformer.encoders.1.ffn_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.0.mha_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.0.mha_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.0.ffn_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.0.ffn_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.1.mha_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.1.mha_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.1.ffn_norm.weight: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).
size mismatch for torsion_block.transformer.encoders.1.ffn_norm.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([128]).

Was resolved by downgrading pytorch geometric.

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