src/transformers/models/blip/modeling_blip.py/BlipPreTrainedModel/_set_gradient_checkpointing
class BlipPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, BlipEncoder):
            module.gradient_checkpointing = value