def gradient_checkpointing_disable(self):
        """
        Deactivates gradient checkpointing for the current model.

        Note that in other frameworks this feature can be referred to as "activation checkpointing" or "checkpoint
        activations".
        """
        if self.supports_gradient_checkpointing:
            self._set_gradient_checkpointing(enable=False)

        if getattr(self, "_hf_peft_config_loaded", False):
            self.disable_input_require_grads()

        Deactivates gradient checkpointing for the current model.

        Note that in other frameworks this feature can be referred to as "activation checkpointing" or "checkpoint
        activations".
        
dpkd/transformers/src/transformers/modeling_utils.py