Closed ericzhou571 closed 10 months ago
Does any body face the same problem?
You can set legacy = False, as shown below, when loading the tokenizer to ignore this warning. Our testing shows no difference in effect.
tokenizer = AutoTokenizer.from_pretrained(
"skywork-tokenizer-path", legacy=False, use_fast=False
)
When loading tokenizer with transformers.AutoTokenizer we receive a warning: You are using the legacy behaviour of the <class 'transformers_modules.Skywork.Skywork-13B-base.98a59dec44df3a8fd8fcd4bac07e94db35219eb1.tokenization_skywork.SkyworkTokenizer'> This means that tokens that come after special tokens will not be properly handled.
We already update transformers from 4.31.0 to 4.34.0, but we face the same warning in both version.