-
Notifications
You must be signed in to change notification settings - Fork 341
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
BertForMultiLabelSequenceClassification not initialized #132
Comments
I believe the labels should be binarized. |
Getting the same issue about initializations.any update? |
Where do you put the pretrained model config file in the package? Thanks~ |
It is because the weights which are specific for fine-tuning do not(and of course can not) come from pertained model. Also, the weights specific for pre-training are not used in fine-tuning. Refer to this issue |
11/28/2019 20:03:03 - INFO - transformers.modeling_utils - loading weights file chinese_L-12_H-768_A-12\pytorch_model.bin
11/28/2019 20:03:05 - INFO - transformers.modeling_utils - Weights of BertForMultiLabelSequenceClassification not initialized from pretrained model: ['classifier.weight', 'classifier.bias']
11/28/2019 20:03:05 - INFO - transformers.modeling_utils - Weights from pretrained model not used in BertForMultiLabelSequenceClassification: ['cls.predictions.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.decoder.weight', 'cls.seq_relationship.weight', 'cls.seq_relationship.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.transform.LayerNorm.bias'
When I use MultiLabels, I got the message above.
First, I have downloaded the pytorch_model.bin, vocab.txt and config.json.
Second, Should the label value be only 0 or 1? Because each of my label has four values [-2, -1, 0 ,1].
The text was updated successfully, but these errors were encountered: