src/transformers/models/imagegpt/modeling_imagegpt.py/ImageGPTForCausalImageModeling/set_output_embeddings
class ImageGPTForCausalImageModeling:    def set_output_embeddings(self, new_embeddings):
        self.lm_head = new_embeddings