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

shape and size mismatch of the parameter #2

Open
chiragmathur27 opened this issue Jul 10, 2024 · 1 comment
Open

shape and size mismatch of the parameter #2

chiragmathur27 opened this issue Jul 10, 2024 · 1 comment

Comments

@chiragmathur27
Copy link

chiragmathur27 commented Jul 10, 2024

Hey,
i wanted to run directed evolution for one of my sequences, but when ran the 'run_de.sh', it gave me this error:

        size mismatch for net.esm.encoder.layer.11.output.dense.weight: copying a param with shape torch.Size([480, 1920]) from checkpoint, the shape in current model is torch.Size([1280, 5120]).
        size mismatch for net.esm.encoder.layer.11.output.dense.bias: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([1280]).
        size mismatch for net.esm.encoder.layer.11.LayerNorm.weight: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([1280]).
        size mismatch for net.esm.encoder.layer.11.LayerNorm.bias: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([1280]).
        size mismatch for net.esm.encoder.emb_layer_norm_after.weight: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([1280]).
        size mismatch for net.esm.encoder.emb_layer_norm_after.bias: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([1280]).
        size mismatch for net.esm.pooler.dense.weight: copying a param with shape torch.Size([480, 480]) from checkpoint, the shape in current model is torch.Size([1280, 1280]).
        size mismatch for net.esm.pooler.dense.bias: copying a param with shape torch.Size([480]) from checkpoint, the shape in current model is torch.Size([1280]).
        size mismatch for net.esm.contact_head.regression.weight: copying a param with shape torch.Size([1, 240]) from checkpoint, the shape in current model is torch.Size([1, 660]).
        size mismatch for net.decoder.dense_1.weight: copying a param with shape torch.Size([512, 480]) from checkpoint, the shape in current model is torch.Size([512, 1280]). 
  
and much more
PS: I have also force downloading the weights.
Looking for your insights and thank you in advance.
@thanhtvt
Copy link
Collaborator

Hi, thank you for your interest!

Did you train the model from scratch or use the previous provided checkpoints?

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