Skip to content
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

ValueError: Tokenizer class BaichuanTokenizer does not exist or is not currently imported. #190

Open
lonngxiang opened this issue Sep 23, 2023 · 2 comments

Comments

@lonngxiang
Copy link

No description provided.

@lonngxiang
Copy link
Author

transformers/models/auto/tokenization_auto.py", line 733, in from_pretrained
raise ValueError(
ValueError: Tokenizer class BaichuanTokenizer does not exist or is not currently imported.

@HYZ17
Copy link

HYZ17 commented Sep 25, 2023

Use trust_remote_code=True when loading model and tokenizer. For example,tokenizer = AutoTokenizer.from_pretrained("baichuan-inc/Baichuan-7B", trust_remote_code=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants