src/transformers/models/nezha/modeling_nezha.py/NezhaPreTrainedModel/_set_gradient_checkpointing
class NezhaPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, NezhaEncoder):
            module.gradient_checkpointing = value