src/transformers/models/data2vec/modeling_data2vec_text.py/Data2VecTextPreTrainedModel/_set_gradient_checkpointing
class Data2VecTextPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, Data2VecTextEncoder):
            module.gradient_checkpointing = value