src/transformers/models/switch_transformers/modeling_switch_transformers.py/SwitchTransformersForConditionalGeneration/set_output_embeddings
class SwitchTransformersForConditionalGeneration:    def set_output_embeddings(self, new_embeddings):
        self.lm_head = new_embeddings