src/transformers/models/gpt2/modeling_gpt2.py/GPT2DoubleHeadsModel/set_output_embeddings
class GPT2DoubleHeadsModel:    def set_output_embeddings(self, new_embeddings):
        self.lm_head = new_embeddings