-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Weights not initialized from pretrained model #180
Comments
Hi! Those messages are correct, the pretrained weights that have been released by Google Brain are just the ones of the core network. They did not release task specific weights. To get a model that solves a specific classification task, you would have to train one yourself or get it from someone else. @thomwolf There have been multiple issues about this specific behavior, maybe we should add some kind of text either as a print while loading the model or in the documentation. I would be happy to do it. What would you prefer? |
Oh, I see, I will train the model with my own dataset, thank you for your answer. |
Yes you are right @rodgzilla we should detail a bit the messages in modeling.py to say that |
Co-authored-by: LRL-ModelCloud <lrl@modelcloud.ai>
Thanks for your awesome work!
When I execute the following code for a named entity recognition tasks:
model = BertForTokenClassification.from_pretrained("bert-base-uncased", num_labels=num_labels)
Output the following information:
What puzzles me is that the parameters of the classifier are not initialized.
The text was updated successfully, but these errors were encountered: