Error when using the model from the model card

#1
by mustapha - opened

Hello there, I hope you are fine.
When using the model directly from the model card, it yields the following error :

You need to install sacremoses to use XLMTokenizer. See https://pypi.org/project/sacremoses/ for installation.

image.png

Any ideas why ?
Thank you

Inokufu org

Hi mustafa,
The sacremoses lib used by the XMLTokenizer does not seem included when you install the latest version of the transformers library.
Using pip install transformers==4.11.3 should fix this problem in order to use the model locally.
I will try to find a better solution to be able to use the model on the hugging face hub again in the days to come.
Many thanks for your feedback,
Guillaume

Thank you for your answer :D

Sign up or log in to comment