-
Notifications
You must be signed in to change notification settings - Fork 476
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
Tokenizer class YiTokenizer does not exist or is not currently imported. #23
Comments
Unfortunately I can't reproduce this problem, maybe you can have a try with our Docker image (will be released soon: #3) |
I did a deep dive into the code ---- I think this problem might be caused by loading errors in this code: [https://github.com/huggingface/transformers/blob/eef7ea98c31a333bacdc7ae7a2372bde772be8e4/src/transformers/models/auto/tokenization_auto.py] . I downloaded the Yi-34b tar file, decompressed it, and used that dir as the pretrained path. In tokenizer_config.json:
Perhaps it failed to find the YiTokenizer class? |
Run with "trust_remote_code" being set to True |
@mallorbc Thanks for your reply! I already set it to True (I even tried hard-coding "True" for "trust_remote_code" |
Hello! i'm receiving the same error, i also tried trust_remote_code to True and receive same error. |
I had the same problem as you guys, so I reasoned reedcli meant with https://huggingface.co/01-ai/Yi-6B/discussions/6 they expected us to apply "trust_remote_code" to both instantiations. from transformers import AutoTokenizer, AutoModelForCausalLM |
Is there any way to fix this in text-generation-webui-main for ExLlama_HF? What and where should I edit and add? |
You need to launch the web UI with the |
Thank you for your contributions to the community.
I tried loading Yi for inference, but I got the following error:
I am using transformers 4.34.0 and I set trust_remote_code=True.
I am aware that since this is a "custom" model, files like "configuration_yi.py", "tokenization_yi.py", and "modeling_yi.py" will be executed.
In addition, I am ware that AutoTokenizer does NOT have YiTokenizer pre-registered [https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/tokenization_auto.py](The source code of AutoTokenizer)
Can you please provide your valuable insights? Thank you very much!
The text was updated successfully, but these errors were encountered: