-
Notifications
You must be signed in to change notification settings - Fork 28.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T5 Tokenzier not load with AttributeError: add_special_tokens conflicts with the method add_special_tokens in T5Tokenizer
#36032
Comments
AttributeError: add_special_tokens conflicts with the method add_special_tokens in T5Tokenizer
AttributeError: add_special_tokens conflicts with the method add_special_tokens in T5Tokenizer
AttributeError: add_special_tokens conflicts with the method add_special_tokens in T5Tokenizer
AttributeError: add_special_tokens conflicts with the method add_special_tokens in T5Tokenizer
AttributeError: add_special_tokens conflicts with the method add_special_tokens in T5Tokenizer
Hi @QuantumStaticFR, I believe this is because of a key in the |
I'll tell them their config is no longer supported by huggingface and request them to update it? |
Yeah, I think that's the right strategy. It's also possible that this is caused by the tokenizer needing to pop that kwarg correctly - cc @ArthurZucker ? |
Yeah, but I think we should support serializing and de-serializing this argument. It's a little bit annoying because we have to check the arg all the time, but let me open a PR (not the first time this happens) |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
transformers
version: 4.48.2Who can help?
@ArthurZucker
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Running this script should reproduce the error
It fails with
Expected behavior
I expected the tokenizer to load. Two similar issues were raised before but they did not solve my problem.
The text was updated successfully, but these errors were encountered: