File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -427,10 +427,7 @@ def from_pretrained(
427427 f"Some weights of the model checkpoint at { pretrained_model_name_or_path } were not used when"
428428 f" initializing { model .__class__ .__name__ } : { unexpected_keys } \n - This IS expected if you are"
429429 f" initializing { model .__class__ .__name__ } from the checkpoint of a model trained on another task or"
430- " with another architecture (e.g. initializing a BertForSequenceClassification model from a"
431- " BertForPreTraining model).\n - This IS NOT expected if you are initializing"
432- f" { model .__class__ .__name__ } from the checkpoint of a model that you expect to be exactly identical"
433- " (initializing a BertForSequenceClassification model from a BertForSequenceClassification model)."
430+ " with another architecture."
434431 )
435432 else :
436433 logger .info (f"All model checkpoint weights were used when initializing { model .__class__ .__name__ } .\n " )
You can’t perform that action at this time.
0 commit comments