src/transformers/models/m2m_100/modeling_m2m_100.py/M2M100Model/set_input_embeddings
class M2M100Model:    def set_input_embeddings(self, value):
        self.shared = value
        self.encoder.embed_tokens = self.shared
        self.decoder.embed_tokens = self.shared