From 245dcc49ef9862a7165aec7be9c4a3299b8d06a1 Mon Sep 17 00:00:00 2001 From: Arthur <48595927+ArthurZucker@users.noreply.github.com> Date: Tue, 29 Aug 2023 18:01:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=A6update=20warning=20to=20If=20you=20?= =?UTF-8?q?want=20to=20use=20the=20new=20behaviour,=20set=20`legacy=3D?= =?UTF-8?q?=E2=80=A6=20(#25833)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤦update warning to If you want to use the new behaviour, set `legacy=False`. instead of True --- src/transformers/models/llama/tokenization_llama.py | 2 +- src/transformers/models/t5/tokenization_t5.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transformers/models/llama/tokenization_llama.py b/src/transformers/models/llama/tokenization_llama.py index 9ef5d0c7173a..f33771995d29 100644 --- a/src/transformers/models/llama/tokenization_llama.py +++ b/src/transformers/models/llama/tokenization_llama.py @@ -141,7 +141,7 @@ def __init__( logger.warning_once( f"You are using the default legacy behaviour of the {self.__class__}. If you see this, DO NOT PANIC! This is" " expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you." - " If you want to use the new behaviour, set `legacy=True`. This should only be set if you understand what it" + " If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it" " means, and thouroughly read the reason why this was added as explained in" " https://github.com/huggingface/transformers/pull/24565" ) diff --git a/src/transformers/models/t5/tokenization_t5.py b/src/transformers/models/t5/tokenization_t5.py index 4d3a3a3d8d67..cbc305e1302e 100644 --- a/src/transformers/models/t5/tokenization_t5.py +++ b/src/transformers/models/t5/tokenization_t5.py @@ -168,7 +168,7 @@ def __init__( logger.warning_once( f"You are using the default legacy behaviour of the {self.__class__}. If you see this, DO NOT PANIC! This is" " expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you." - " If you want to use the new behaviour, set `legacy=True`. This should only be set if you understand what it" + " If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it" " means, and thouroughly read the reason why this was added as explained in" " https://github.com/huggingface/transformers/pull/24565" )