Skip to content

Commit

Permalink
set warning level to info for special tokens have been added (hugging…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker authored and dataKim1201 committed Oct 7, 2024
1 parent e2b40c4 commit fb44ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/tokenization_utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ def _from_pretrained(
)

if added_tokens_decoder != {} and max(list(added_tokens_decoder.keys())[-1], 0) > tokenizer.vocab_size:
logger.warning_advice(
logger.info(
"Special tokens have been added in the vocabulary, make sure the associated word embeddings are"
" fine-tuned or trained."
)
Expand Down

0 comments on commit fb44ed6

Please sign in to comment.