src/transformers/models/opt/modeling_opt.py/OPTPreTrainedModel/_set_gradient_checkpointing
class OPTPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (OPTDecoder)):
            module.gradient_checkpointing = value