src/transformers/models/led/modeling_led.py/LEDPreTrainedModel/_set_gradient_checkpointing
class LEDPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (LEDDecoder, LEDEncoder)):
            module.gradient_checkpointing = value