Directed_Evolution icon indicating copy to clipboard operation
Directed_Evolution copied to clipboard

shape and size mismatch of the parameter

Open chiragmathur27 opened this issue 1 year ago • 1 comments

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.

chiragmathur27 avatar Jul 10 '24 09:07 chiragmathur27

Hi, thank you for your interest!

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

thanhtvt avatar Jul 13 '24 02:07 thanhtvt

We're closing this issue due to no recent activity, but please feel free to reopen it when you respond.

thanhtvt avatar Sep 10 '25 07:09 thanhtvt