Skip to content

Commit

Permalink
Update run_glue.py
Browse files Browse the repository at this point in the history
add DistilBert model shortcut into ALL_MODELS
  • Loading branch information
brian41005 authored and LysandreJik committed Oct 3, 2019
1 parent c1689ac commit 7af0777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/run_glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@

logger = logging.getLogger(__name__)

ALL_MODELS = sum((tuple(conf.pretrained_config_archive_map.keys()) for conf in (BertConfig, XLNetConfig, XLMConfig, RobertaConfig)), ())
ALL_MODELS = sum((tuple(conf.pretrained_config_archive_map.keys()) for conf in (BertConfig, XLNetConfig, XLMConfig,
RobertaConfig, DistilBertConfig)), ())

MODEL_CLASSES = {
'bert': (BertConfig, BertForSequenceClassification, BertTokenizer),
Expand Down

0 comments on commit 7af0777

Please sign in to comment.