src/transformers/models/xlm_roberta/modeling_xlm_roberta.py/XLMRobertaPreTrainedModel/_set_gradient_checkpointing
class XLMRobertaPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, XLMRobertaEncoder):
            module.gradient_checkpointing = value