Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
6d1f5456
Unverified
Commit
6d1f5456
authored
Feb 15, 2024
by
Younes Belkada
Committed by
GitHub
Feb 15, 2024
Browse files
FIX: Fix error with `logger.warning` + inline with recent refactor (#29039)
Update modeling_utils.py
parent
8a0ed0a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+1
-1
No files found.
src/transformers/modeling_utils.py
View file @
6d1f5456
...
...
@@ -4192,7 +4192,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
@
property
def
_is_quantized_training_enabled
(
self
):
logger
.
warning
(
warning
s
.
warn
(
"`_is_quantized_training_enabled` is going to be deprecated in transformers 4.39.0. Please use `model.hf_quantizer.is_trainable` instead"
,
FutureWarning
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment