src/transformers/models/roformer/modeling_roformer.py/RoFormerPreTrainedModel/_set_gradient_checkpointing
class RoFormerPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, RoFormerEncoder):
            module.gradient_checkpointing = value