Commit 852e032c authored by VictorSanh's avatar VictorSanh
Browse files

include roberta in run_squad_w_distillation - cc @graviraja

parent b5509abb
......@@ -45,6 +45,9 @@ from transformers import (
XLNetConfig,
XLNetForQuestionAnswering,
XLNetTokenizer,
RobertaConfig,
RobertaForQuestionAnswering,
RobertaTokenizer,
get_linear_schedule_with_warmup,
squad_convert_examples_to_features,
)
......@@ -73,6 +76,7 @@ MODEL_CLASSES = {
"xlnet": (XLNetConfig, XLNetForQuestionAnswering, XLNetTokenizer),
"xlm": (XLMConfig, XLMForQuestionAnswering, XLMTokenizer),
"distilbert": (DistilBertConfig, DistilBertForQuestionAnswering, DistilBertTokenizer),
"roberta": (RobertaConfig, RobertaForQuestionAnswering, RobertaTokenizer),
}
......
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