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

why vocab.txt and tokenizer.json not in pretrained model in huggingface ?? #117

Open
XuJianzhi opened this issue Nov 28, 2022 · 1 comment

Comments

@XuJianzhi
Copy link

XuJianzhi commented Nov 28, 2022

https://huggingface.co/microsoft/deberta-v2-xlarge/tree/main

If I run :
tokenizer = AutoTokenizer.from_pretrained('microsoft/deberta-v2-xlarge')

get bug:
ValueError: Couldn't instantiate the backend tokenizer from one of:
(1) a tokenizers library serialization file,
(2) a slow tokenizer instance to convert or
(3) an equivalent slow tokenizer class to instantiate and convert.
You need to have sentencepiece installed to convert a slow tokenizer to a fast one.

@XuJianzhi
Copy link
Author

how to trans spm.model to tokenizer.json ??

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

1 participant