|
41 | 41 | XLNetConfig, |
42 | 42 | replace_list_option_in_docstrings, |
43 | 43 | ) |
| 44 | +from .configuration_blenderbot import BlenderbotConfig |
| 45 | +from .configuration_marian import MarianConfig |
| 46 | +from .configuration_mbart import MBartConfig |
| 47 | +from .configuration_pegasus import PegasusConfig |
44 | 48 | from .configuration_utils import PretrainedConfig |
45 | 49 | from .file_utils import add_start_docstrings |
46 | 50 | from .modeling_tf_albert import ( |
|
63 | 67 | TFBertLMHeadModel, |
64 | 68 | TFBertModel, |
65 | 69 | ) |
| 70 | +from .modeling_tf_blenderbot import TFBlenderbotForConditionalGeneration |
66 | 71 | from .modeling_tf_camembert import ( |
67 | 72 | TFCamembertForMaskedLM, |
68 | 73 | TFCamembertForMultipleChoice, |
|
108 | 113 | ) |
109 | 114 | from .modeling_tf_gpt2 import TFGPT2LMHeadModel, TFGPT2Model |
110 | 115 | from .modeling_tf_longformer import TFLongformerForMaskedLM, TFLongformerForQuestionAnswering, TFLongformerModel |
| 116 | +from .modeling_tf_marian import TFMarianMTModel |
| 117 | +from .modeling_tf_mbart import TFMBartForConditionalGeneration |
111 | 118 | from .modeling_tf_mobilebert import ( |
112 | 119 | TFMobileBertForMaskedLM, |
113 | 120 | TFMobileBertForMultipleChoice, |
|
118 | 125 | TFMobileBertModel, |
119 | 126 | ) |
120 | 127 | from .modeling_tf_openai import TFOpenAIGPTLMHeadModel, TFOpenAIGPTModel |
| 128 | +from .modeling_tf_pegasus import TFPegasusForConditionalGeneration |
121 | 129 | from .modeling_tf_roberta import ( |
122 | 130 | TFRobertaForMaskedLM, |
123 | 131 | TFRobertaForMultipleChoice, |
|
210 | 218 | (T5Config, TFT5ForConditionalGeneration), |
211 | 219 | (DistilBertConfig, TFDistilBertForMaskedLM), |
212 | 220 | (AlbertConfig, TFAlbertForMaskedLM), |
| 221 | + (MarianConfig, TFMarianMTModel), |
213 | 222 | (BartConfig, TFBartForConditionalGeneration), |
214 | 223 | (CamembertConfig, TFCamembertForMaskedLM), |
215 | 224 | (XLMRobertaConfig, TFXLMRobertaForMaskedLM), |
|
261 | 270 | ] |
262 | 271 | ) |
263 | 272 |
|
| 273 | + |
264 | 274 | TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING = OrderedDict( |
265 | | - [(T5Config, TFT5ForConditionalGeneration), (BartConfig, TFBartForConditionalGeneration)] |
| 275 | + [ |
| 276 | + (T5Config, TFT5ForConditionalGeneration), |
| 277 | + (MarianConfig, TFMarianMTModel), |
| 278 | + (MBartConfig, TFMBartForConditionalGeneration), |
| 279 | + (PegasusConfig, TFPegasusForConditionalGeneration), |
| 280 | + (BlenderbotConfig, TFBlenderbotForConditionalGeneration), |
| 281 | + (BartConfig, TFBartForConditionalGeneration), |
| 282 | + ] |
266 | 283 | ) |
267 | 284 |
|
268 | 285 | TF_MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING = OrderedDict( |
|
0 commit comments