fix #1789
This commit is contained in:
@@ -171,8 +171,7 @@ for model_class, tokenizer_class, pretrained_weights in MODELS:
|
|||||||
|
|
||||||
# Each architecture is provided with several class for fine-tuning on down-stream tasks, e.g.
|
# Each architecture is provided with several class for fine-tuning on down-stream tasks, e.g.
|
||||||
BERT_MODEL_CLASSES = [BertModel, BertForPreTraining, BertForMaskedLM, BertForNextSentencePrediction,
|
BERT_MODEL_CLASSES = [BertModel, BertForPreTraining, BertForMaskedLM, BertForNextSentencePrediction,
|
||||||
BertForSequenceClassification, BertForMultipleChoice, BertForTokenClassification,
|
BertForSequenceClassification, BertForTokenClassification, BertForQuestionAnswering]
|
||||||
BertForQuestionAnswering]
|
|
||||||
|
|
||||||
# All the classes for an architecture can be initiated from pretrained weights for this architecture
|
# All the classes for an architecture can be initiated from pretrained weights for this architecture
|
||||||
# Note that additional weights added for fine-tuning are only initialized
|
# Note that additional weights added for fine-tuning are only initialized
|
||||||
|
|||||||
Reference in New Issue
Block a user