src/transformers/models/ernie/modeling_ernie.py/ErnieForPreTraining/set_output_embeddings
class ErnieForPreTraining:    def set_output_embeddings(self, new_embeddings):
        self.cls.predictions.decoder = new_embeddings