src/transformers/models/xmod/modeling_xmod.py/XmodForMaskedLM/set_output_embeddings
class XmodForMaskedLM:    def set_output_embeddings(self, new_embeddings):
        self.lm_head.decoder = new_embeddings