src/transformers/models/pegasus/modeling_pegasus.py/PegasusForCausalLM/set_output_embeddings
class PegasusForCausalLM:    def set_output_embeddings(self, new_embeddings):
        self.lm_head = new_embeddings