yangjianxin1 / LEBERT-NER-Chinese

基于词汇信息融合的中文NER模型
159 stars 18 forks source link

bert的init_weights初始赋权重出错了 #10

Open GTyingzi opened 1 year ago

GTyingzi commented 1 year ago

RuntimeError: Error(s) in loading state_dict for LEBertSoftmaxForNer: size mismatch for bert.embeddings.word_embeddings.weight: copying a param with shape torch.Size([21128, 768]) from checkpoint, the shape in current model is torch.Size([2162, 768]).