富春桃 2022-12-24 16:27 采纳率: 0%
浏览 15

elmo模型参数调整

RuntimeError: Error(s) in loading state_dict for ConvTokenEmbedder:
    size mismatch for word_emb_layer.embedding.weight: copying a param with shape torch.Size([140384, 100]) from checkpoint, the shape in current model is torch.Size([71222, 100]).
    size mismatch for char_emb_layer.embedding.weight: copying a param with shape torch.Size([15889, 50]) from checkpoint, the shape in current model is torch.Size([6169, 50]).

跑ELMO模型的时候,遇到了参数不匹配的问题,具体报错如上,有没有猿友知道该从哪里调参数啊,查看详细代码可私。

  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2022-12-24 18:25
    关注
    评论

报告相同问题?

问题事件

  • 创建了问题 12月24日