src/transformers/models/levit/modeling_levit.py/LevitPreTrainedModel/_set_gradient_checkpointing
class LevitPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, LevitModel):
            module.gradient_checkpointing = value