src/transformers/models/clip/modeling_clip.py/CLIPPreTrainedModel/_set_gradient_checkpointing
class CLIPPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, CLIPEncoder):
            module.gradient_checkpointing = value