src/transformers/models/blenderbot_small/modeling_blenderbot_small.py/BlenderbotSmallPreTrainedModel/_set_gradient_checkpointing
class BlenderbotSmallPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (BlenderbotSmallDecoder, BlenderbotSmallEncoder)):
            module.gradient_checkpointing = value