From fc71e815f6ff5fc8b743786e2146cff9644ec598 Mon Sep 17 00:00:00 2001 From: "Hz, Ji" Date: Thu, 7 Dec 2023 20:25:10 +0800 Subject: [PATCH] update version of warning notification for `get_default_device` to v4.38 (#27848) --- src/transformers/tools/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/tools/base.py b/src/transformers/tools/base.py index 42027948a6f5fa..4042b28ac64c09 100644 --- a/src/transformers/tools/base.py +++ b/src/transformers/tools/base.py @@ -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.")