src/transformers/models/owlvit/modeling_owlvit.py/OwlViTPreTrainedModel/_set_gradient_checkpointing
class OwlViTPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, OwlViTEncoder):
            module.gradient_checkpointing = value