src/transformers/models/lilt/modeling_lilt.py/LiltPreTrainedModel/_set_gradient_checkpointing
class LiltPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, LiltEncoder):
            module.gradient_checkpointing = value