Update run_glue.py
add DistilBert model shortcut into ALL_MODELS
This commit is contained in:
@@ -53,7 +53,8 @@ from transformers import glue_convert_examples_to_features as convert_examples_t
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
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 = {
|
MODEL_CLASSES = {
|
||||||
'bert': (BertConfig, BertForSequenceClassification, BertTokenizer),
|
'bert': (BertConfig, BertForSequenceClassification, BertTokenizer),
|
||||||
|
|||||||
Reference in New Issue
Block a user