You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gpt2模型config里面n_positions=513,会报
size mismatch for transformer.h.0.attn.bias: copying a param with shape torch.Size([1, 1, 512, 512]) from checkpoint, the shape in current model is torch.Size([1, 1, 513, 513]).
改成512后,如果use_gpt2=True,会报
size mismatch for transformer.wpe.weight: copying a param with shape torch.Size([513, 768]) from checkpoint, the shape in current model is torch.Size([512, 768]).
Activity
pppihf commentedon Aug 9, 2022
我也遇到这种情况了,请问怎么解决
terminator123 commentedon Aug 9, 2022
zhaojunGUO commentedon Jan 29, 2023
我也是,怎么解决哇
YuChuXi commentedon May 13, 2023
两句中加入参数
ignore_mismatched_sizes=True然后忽略报错就好YuChuXi commentedon May 13, 2023
不用动模型的配置文件