src/transformers/models/plbart/modeling_plbart.py/PLBartPreTrainedModel/_set_gradient_checkpointing
class PLBartPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (PLBartDecoder, PLBartEncoder)):
            module.gradient_checkpointing = value