src/transformers/models/mvp/modeling_mvp.py/MvpPreTrainedModel/_set_gradient_checkpointing
class MvpPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (MvpDecoder, MvpEncoder, MvpPrompt)):
            module.gradient_checkpointing = value