src/transformers/modeling_utils.py/PreTrainedModel/disable_input_require_grads
class PreTrainedModel:    def disable_input_require_grads(self):
        """
        Removes the `_require_grads_hook`.
        """
        self._require_grads_hook.remove()