src/transformers/models/roberta/modeling_roberta.py/RobertaPreTrainedModel/_set_gradient_checkpointing
class RobertaPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, RobertaEncoder):
            module.gradient_checkpointing = value