src/transformers/models/pegasus/modeling_pegasus.py/PegasusForConditionalGeneration/get_encoder
class PegasusForConditionalGeneration:    def get_encoder(self):
        return self.model.get_encoder()