src/transformers/models/speech_to_text_2/modeling_speech_to_text_2.py/Speech2Text2PreTrainedModel/_set_gradient_checkpointing
class Speech2Text2PreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, Speech2Text2Decoder):
            module.gradient_checkpointing = value