Skip to content

Commit

Permalink
🤦update warning to If you want to use the new behaviour, set `legacy=… (
Browse files Browse the repository at this point in the history
#25833)

🤦update warning to If you want to use the new behaviour, set `legacy=False`. instead of True
  • Loading branch information
ArthurZucker authored Aug 29, 2023
1 parent aade754 commit 245dcc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transformers/models/llama/tokenization_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/models/t5/tokenization_t5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 245dcc4

Please sign in to comment.