src/transformers/models/camembert/modeling_camembert.py/CamembertPreTrainedModel/_set_gradient_checkpointing
class CamembertPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, CamembertEncoder):
            module.gradient_checkpointing = value