src/transformers/models/flaubert/modeling_flaubert.py/FlaubertWithLMHeadModel/set_output_embeddings
class FlaubertWithLMHeadModel:    def set_output_embeddings(self, new_embeddings):
        self.pred_layer.proj = new_embeddings