src/transformers/models/tvlt/modeling_tvlt.py/TvltPreTrainedModel/_set_gradient_checkpointing
class TvltPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, TvltEncoder):
            module.gradient_checkpointing = value