src/transformers/models/blenderbot/modeling_blenderbot.py/BlenderbotPreTrainedModel/_set_gradient_checkpointing
class BlenderbotPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (BlenderbotDecoder, BlenderbotEncoder)):
            module.gradient_checkpointing = value