Unverified Commit 6d1f5456 authored by Younes Belkada's avatar Younes Belkada Committed by GitHub
Browse files

FIX: Fix error with `logger.warning` + inline with recent refactor (#29039)

Update modeling_utils.py
parent 8a0ed0a9
......@@ -4192,7 +4192,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
@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,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment