Commit 7af07779 authored by Brian Ma's avatar Brian Ma Committed by Lysandre Debut
Browse files

Update run_glue.py

add DistilBert model shortcut into ALL_MODELS
parent c1689ac3
......@@ -53,7 +53,8 @@ from transformers import glue_convert_examples_to_features as convert_examples_t
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),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment