Unverified Commit 245dcc49 authored by Arthur's avatar Arthur Committed by GitHub
Browse files

🤦update warning to If you want to use the new behaviour, set `legacy=… (#25833)

🤦update warning to If you want to use the new behaviour, set `legacy=False`. instead of True
parent aade754b
...@@ -141,7 +141,7 @@ class LlamaTokenizer(PreTrainedTokenizer): ...@@ -141,7 +141,7 @@ class LlamaTokenizer(PreTrainedTokenizer):
logger.warning_once( logger.warning_once(
f"You are using the default legacy behaviour of the {self.__class__}. If you see this, DO NOT PANIC! This is" 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." " 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" " means, and thouroughly read the reason why this was added as explained in"
" https://github.com/huggingface/transformers/pull/24565" " https://github.com/huggingface/transformers/pull/24565"
) )
......
...@@ -168,7 +168,7 @@ class T5Tokenizer(PreTrainedTokenizer): ...@@ -168,7 +168,7 @@ class T5Tokenizer(PreTrainedTokenizer):
logger.warning_once( logger.warning_once(
f"You are using the default legacy behaviour of the {self.__class__}. If you see this, DO NOT PANIC! This is" 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." " 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" " means, and thouroughly read the reason why this was added as explained in"
" https://github.com/huggingface/transformers/pull/24565" " https://github.com/huggingface/transformers/pull/24565"
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment