Skip to content

Commit

Permalink
update version of warning notification for get_default_device to v4…
Browse files Browse the repository at this point in the history
….38 (#27848)
  • Loading branch information
statelesshz authored Dec 7, 2023
1 parent 5324bf9 commit fc71e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def fn(*args, **kwargs):
def get_default_device():
logger.warning(
"`get_default_device` is deprecated and will be replaced with `accelerate`'s `PartialState().default_device` "
"in version 4.36 of 🤗 Transformers. "
"in version 4.38 of 🤗 Transformers. "
)
if not is_torch_available():
raise ImportError("Please install torch in order to use this tool.")
Expand Down

0 comments on commit fc71e81

Please sign in to comment.