src/transformers/models/marian/modeling_marian.py/MarianMTModel/set_output_embeddings
class MarianMTModel:    def set_output_embeddings(self, new_embeddings: nn.Embedding):
        self.lm_head = new_embeddings