src/transformers/models/codegen/modeling_codegen.py/CodeGenPreTrainedModel/_set_gradient_checkpointing
class CodeGenPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, CodeGenModel):
            module.gradient_checkpointing = value