SoftMaskedBert-PyTorch icon indicating copy to clipboard operation
SoftMaskedBert-PyTorch copied to clipboard

我用了softMaskedbert训练了十个epoch,当拿来用predict的时候 他报下面这个,要怎么解决?

Open Oldsport-996 opened this issue 3 years ago • 1 comments

Some weights of the model checkpoint at bert-base-chinese were not used when initializing BertForMaskedLM: ['cls.seq_relationship.weight', 'cls.seq_relationship.bias']

  • This IS expected if you are initializing BertForMaskedLM from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
  • This IS NOT expected if you are initializing BertForMaskedLM from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).

Oldsport-996 avatar Apr 24 '22 10:04 Oldsport-996

这个不会影响纠错的inference。

gitabtion avatar Apr 26 '22 16:04 gitabtion