src/transformers/models/qdqbert/modeling_qdqbert.py/QDQBertPreTrainedModel/_set_gradient_checkpointing
class QDQBertPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, QDQBertEncoder):
            module.gradient_checkpointing = value