src/transformers/models/biogpt/modeling_biogpt.py/BioGptPreTrainedModel/_set_gradient_checkpointing
class BioGptPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, BioGptModel):
            module.gradient_checkpointing = value