def get_encoder_decoder_model(self, config, decoder_config):
     encoder_model = BertModel(config)
     decoder_model = BartForCausalLM(decoder_config)
     return encoder_model, decoder_model
 def get_encoder_decoder_model(self, config, decoder_config):
     encoder_model = SwinModel(config).eval()
     decoder_model = BartForCausalLM(decoder_config).eval()
     return encoder_model, decoder_model