src/transformers/models/mobilevit/modeling_mobilevit.py/MobileViTPreTrainedModel/_set_gradient_checkpointing
class MobileViTPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, MobileViTEncoder):
            module.gradient_checkpointing = value