src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py/RobertaPreLayerNormPreTrainedModel/_set_gradient_checkpointing
class RobertaPreLayerNormPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, RobertaPreLayerNormEncoder):
            module.gradient_checkpointing = value