src/transformers/models/van/modeling_van.py/VanPreTrainedModel/_set_gradient_checkpointing
class VanPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, VanModel):
            module.gradient_checkpointing = value