Skip to content

Commit

Permalink
update version of warning notification for get_default_device to v4.38
Browse files Browse the repository at this point in the history
  • Loading branch information
statelesshz committed Dec 7, 2023
1 parent 5274692 commit 14ecfdd
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 14ecfdd

Please sign in to comment.