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

OSError: Unable to load vocabulary from file. Please check that the provided vocabulary is accessible and not corrupted. #106

Open
SalatDressingOil opened this issue Apr 16, 2024 · 1 comment

Comments

@SalatDressingOil
Copy link

SalatDressingOil commented Apr 16, 2024

I've been trying to set it up for several hours.
I don't understand what's going on. I need a model that can work in Russian, of the ones presented here it is only "multilingual" and as by the law of meanness, it is she who does not work for me.
2024-04-16_18-08-14
2024-04-16_18-12-19
Thought that the problem might be in the broken loading of the model file.
Rebooted it, both with a direct link taken from the source code, and by simple deletion and automatic download.
Also deleted all the contents .cache\huggingface
As you can see, this did not help in any way.

@jamt9000
Copy link
Collaborator

jamt9000 commented May 11, 2024

It seems to be working for me. Could you try with a newer "transformers" version, such as transformers==4.40.2?

Jamess-MacBook-Pro-4:detoxify jamesthewlis$ python run_prediction.py --input 'example' --model multilingual
         toxicity  severe_toxicity  obscene  identity_attack   insult  threat  sexual_explicit
example   0.00029          0.00013  0.00099           0.0002  0.00076  0.0001          0.00007
Jamess-MacBook-Pro-4:detoxify jamesthewlis$ python run_prediction.py --input 'Иди на хуй' --model multilingual
            toxicity  severe_toxicity  obscene  identity_attack   insult   threat  sexual_explicit
Иди на хуй   0.99291          0.02102  0.21478          0.00607  0.15455  0.00785           0.7315

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