src/transformers/models/mt5/modeling_mt5.py/MT5ForConditionalGeneration/set_input_embeddings
class MT5ForConditionalGeneration:    def set_input_embeddings(self, new_embeddings):
        self.shared = new_embeddings
        self.encoder.set_input_embeddings(new_embeddings)
        self.decoder.set_input_embeddings(new_embeddings)