Skip to content

Commit

Permalink
FIX: Fix error with logger.warning + inline with recent refactor (#…
Browse files Browse the repository at this point in the history
…29039)

Update modeling_utils.py
  • Loading branch information
younesbelkada authored Feb 15, 2024
1 parent 8a0ed0a commit 6d1f545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 6d1f545

Please sign in to comment.