Skip to content

Commit

Permalink
Add mobilebert next sentence prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
jplu committed Nov 10, 2020
1 parent 54b2a87 commit 90bd294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/transformers/modeling_tf_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
from .modeling_tf_mobilebert import (
TFMobileBertForMaskedLM,
TFMobileBertForMultipleChoice,
TFMobileBertForNextSentencePrediction,
TFMobileBertForPreTraining,
TFMobileBertForQuestionAnswering,
TFMobileBertForSequenceClassification,
Expand Down Expand Up @@ -359,6 +360,7 @@
TF_MODEL_FOR_NEXT_SENTENCE_PREDICTION_MAPPING = OrderedDict(
[
(BertConfig, TFBertForNextSentencePrediction),
(MobileBertConfig, TFMobileBertForNextSentencePrediction),
]
)

Expand Down
2 changes: 0 additions & 2 deletions utils/check_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@
"RagSequenceForGeneration",
"RagTokenForGeneration",
"T5Stack",
"TFBertForNextSentencePrediction",
"TFFunnelBaseModel",
"TFGPT2DoubleHeadsModel",
"TFMobileBertForNextSentencePrediction",
"TFOpenAIGPTDoubleHeadsModel",
"XLMForQuestionAnswering",
"XLMProphetNetDecoder",
Expand Down

0 comments on commit 90bd294

Please sign in to comment.