From e43e6f87e5e3c96f9f295cdd57d1b1c4946949ce Mon Sep 17 00:00:00 2001 From: MekkCyber Date: Thu, 28 Nov 2024 11:31:15 +0000 Subject: [PATCH] deperecate --- src/transformers/modeling_utils.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py index fe6b600a86c1cc..5d04e95593b26f 100755 --- a/src/transformers/modeling_utils.py +++ b/src/transformers/modeling_utils.py @@ -5000,18 +5000,6 @@ def warn_if_padding_and_no_attention_mask(self, input_ids, attention_mask): logger.warning_once(warn_string) - @property - def _is_quantized_training_enabled(self): - warnings.warn( - "`_is_quantized_training_enabled` is going to be deprecated in transformers 4.39.0. Please use `model.hf_quantizer.is_trainable` instead", - FutureWarning, - ) - - if not hasattr(self, "hf_quantizer"): - return False - - return self.hf_quantizer.is_trainable - @property def supports_tp_plan(self): """