From 65c9b9d9cf53a5e82759d21e4f3bb2d715677de9 Mon Sep 17 00:00:00 2001 From: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> Date: Thu, 15 Feb 2024 14:52:07 +0100 Subject: [PATCH] Update modeling_utils.py --- src/transformers/modeling_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py index a6dc313fbaa172..0d9050f5fad14c 100644 --- a/src/transformers/modeling_utils.py +++ b/src/transformers/modeling_utils.py @@ -4192,7 +4192,7 @@ def warn_if_padding_and_no_attention_mask(self, input_ids, attention_mask): @property def _is_quantized_training_enabled(self): - logger.warning( + 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, )