src/transformers/models/gpt_neox/modeling_gpt_neox.py/GPTNeoXPreTrainedModel/_set_gradient_checkpointing
class GPTNeoXPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, GPTNeoXModel):
            module.gradient_checkpointing = value