Skip to content

Commit

Permalink
longformer for seq2seq
Browse files Browse the repository at this point in the history
  • Loading branch information
flozi00 authored Jun 1, 2020
1 parent 7db02d1 commit 2bc8297
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions simpletransformers/seq2seq/seq2seq_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
ElectraConfig,
ElectraModel,
ElectraTokenizer,
LongformerConfig,
LongformerModel,
LongformerTokenizer,
PreTrainedModel,
PreTrainedTokenizer,
RobertaConfig,
Expand All @@ -60,13 +63,14 @@

MODEL_CLASSES = {
"auto": (AutoConfig, AutoModel, AutoTokenizer),
"bart": (BartConfig, BartForConditionalGeneration, BartTokenizer),
"bert": (BertConfig, BertModel, BertTokenizer),
"roberta": (RobertaConfig, RobertaModel, RobertaTokenizer),
"distilbert": (DistilBertConfig, DistilBertModel, DistilBertTokenizer),
"camembert": (CamembertConfig, CamembertModel, CamembertTokenizer),
"distilbert": (DistilBertConfig, DistilBertModel, DistilBertTokenizer),
"electra": (ElectraConfig, ElectraModel, ElectraTokenizer),
"bart": (BartConfig, BartForConditionalGeneration, BartTokenizer),
"longformer": (LongformerConfig, LongformerModel, LongformerTokenizer),
"marian": (MarianConfig, MarianMTModel, MarianTokenizer),
"roberta": (RobertaConfig, RobertaModel, RobertaTokenizer),
}


Expand Down

0 comments on commit 2bc8297

Please sign in to comment.