Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some weights of the model checkpoint at/ BERT-NER-Pytorch-master/prev_trained_model/bert-base-chinese were not used when initializing BertCrfForNe #84

Open
zacharykzhao opened this issue Jun 13, 2022 · 1 comment

Comments

@zacharykzhao
Copy link

在自己数据集上运行script/run_ner_crf.sh, 运行之后就卡在这里了,求大佬建议

Some weights of the model checkpoint at ./BERT-NER-Pytorch-master/prev_trained_model/bert-base-chinese were not used when initializing BertCrfForNer: ['cls.seq_relationship.weight', 'cls.seq_relationship.bias', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.bias', 'cls.predictions.decoder.weight', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.transform.LayerNorm.weight']

  • This IS expected if you are initializing BertCrfForNer 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 BertCrfForNer from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
    Some weights of BertCrfForNer were not initialized from the model checkpoint at ./BERT-NER-Pytorch-master/prev_trained_model/bert-base-chinese and are newly initialized: ['crf.transitions', 'crf.end_transitions', 'crf.start_transitions', 'classifier.bias', 'classifier.weight']
    You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
@jiazhicai
Copy link

我也遇到了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants